1 |
From 50d859d8aafae7718c5e249d6c445845983752b6 Mon Sep 17 00:00:00 2001 |
2 |
From: Radek Vykydal <rvykydal@redhat.com> |
3 |
Date: Fri, 13 Nov 2009 13:02:01 +0100 |
4 |
Subject: [PATCH] Add kickstart support for xen hypervisor arguments in grub. (#501438) |
5 |
|
6 |
bootloader option --hvargs added. |
7 |
--- |
8 |
bootloaderInfo.py | 3 +++ |
9 |
1 files changed, 3 insertions(+), 0 deletions(-) |
10 |
|
11 |
diff --git a/bootloaderInfo.py b/bootloaderInfo.py |
12 |
index 2718b2e..ff98ff5 100644 |
13 |
--- a/bootloaderInfo.py |
14 |
+++ b/bootloaderInfo.py |
15 |
@@ -479,6 +479,7 @@ class bootloaderInfo: |
16 |
|
17 |
def __init__(self): |
18 |
self.args = KernelArguments() |
19 |
+ self.hvArgs = "" |
20 |
self.images = BootImages() |
21 |
self.device = None |
22 |
self.defaultDevice = None # XXX hack, used by kickstart |
23 |
@@ -837,6 +838,8 @@ class x86BootloaderInfo(bootloaderInfo): |
24 |
hvFile = "%sxen.gz-%s %s" % (cfPath, |
25 |
re.sub(r'xen0?', '', version), |
26 |
hvs) |
27 |
+ if self.hvArgs: |
28 |
+ hvFile = hvFile.rstrip() + " " + self.hvArgs |
29 |
f.write('\tkernel %s\n' %(hvFile,)) |
30 |
f.write('\tmodule %s ro%s' %(kernelFile, realroot)) |
31 |
if self.args.get(): |
32 |
-- |
33 |
1.6.0.6 |
34 |
|