[PATCH rhel5 booty] Add kickstart support for xen hypervisor arguments in grub. (#501438)

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

 



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

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

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux