[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH rhel5 booty] 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('\tkernel %s\n' %(hvFile,))
                 f.write('\tmodule %s ro%s' %(kernelFile, realroot))
                 if self.args.get():
-- 
1.6.0.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]