FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 11-13-2009, 11:19 AM
Radek Vykydal
 
Default Add kickstart support for xen hypervisor arguments in grub. (#501438)

bootloader option --hvargs added.
---
bootloaderInfo.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/bootloaderInfo.py b/bootloaderInfo.py
index 975da29..067ed93 100644
--- a/bootloaderInfo.py
+++ b/bootloaderInfo.py
@@ -479,6 +479,7 @@ class bootloaderInfo:

def __init__(self):
self.args = KernelArguments()
+ self.hvArgs = ""
self.images = BootImages()
self.device = None
self.defaultDevice = None # XXX hack, used by kickstart
@@ -837,6 +838,8 @@ class x86BootloaderInfo(bootloaderInfo):
hvFile = "%sxen.gz-%s %s" % (cfPath,
re.sub(r'xen0?', ', version),
hvs)
+ if self.hvArgs:
+ hvFile = hvFile.rstrip() + " " + self.hvArgs
f.write(' kernel %s
' %(hvFile,))
f.write(' module %s ro%s' %(kernelFile, realroot))
if self.args.get():
--
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 11-13-2009, 11:19 AM
Radek Vykydal
 
Default Add kickstart support for xen hypervisor arguments in grub. (#501438)

bootloader option --hvargs added.
---
pykickstart/data.py | 2 +-
pykickstart/parser.py | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pykickstart/data.py b/pykickstart/data.py
index 54a989e..aab8e70 100644
--- a/pykickstart/data.py
+++ b/pykickstart/data.py
@@ -22,7 +22,7 @@ class KickstartData:
self.autostep = {"autoscreenshot": False}
self.bootloader = {"appendLine": "", "driveorder": [],
"forceLBA": False, "location": "mbr", "md5pass": "",
- "password": "", "upgrade": False}
+ "password": "", "upgrade": False, "hvArgs": ""}
self.dmraids = []
self.encrypted = False
self.mpaths = []
diff --git a/pykickstart/parser.py b/pykickstart/parser.py
index aea3285..5c93de5 100644
--- a/pykickstart/parser.py
+++ b/pykickstart/parser.py
@@ -345,6 +345,7 @@ class KickstartHandlers:
default=False)
op.add_option("--driveorder", dest="driveorder", action="callback",
callback=driveorder_cb, nargs=1, type="string")
+ op.add_option("--hvargs", dest="hvArgs")

(opts, extra) = op.parse_args(args=args)
self._setToDict(op, opts, self.ksdata.bootloader)
--
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 05:09 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org