Add kickstart support for xen hypervisor arguments in grub. (#501438)
bootloader option --hvargs added.
---
installclass.py | 4 +++-
kickstart.py | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/installclass.py b/installclass.py
index c286a81..a1fd556 100644
--- a/installclass.py
+++ b/installclass.py
@@ -82,7 +82,7 @@ class BaseInstallClass:
pass
def setBootloader(self, id, location=None, forceLBA=0, password=None,
- md5pass=None, appendLine="", driveorder = []):
+ md5pass=None, appendLine="", driveorder = [], hvArgs=""):
if appendLine:
id.bootloader.args.set(appendLine)
id.bootloader.setForceLBA(forceLBA)
@@ -94,6 +94,8 @@ class BaseInstallClass:
id.bootloader.defaultDevice = location
else:
id.bootloader.defaultDevice = -1
+ if hvArgs:
+ id.bootloader.hvArgs = hvArgs
# XXX throw out drives specified that don't exist. anything else
# seems silly
diff --git a/kickstart.py b/kickstart.py
index 37b4246..3892aaa 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -154,7 +154,8 @@ class AnacondaKSHandlers(KickstartHandlers):
self.showSteps.append("bootloader")
self.id.instClass.setBootloader(self.id, location, dict["forceLBA"],
dict["password"], dict["md5pass"],
- dict["appendLine"], dict["driveorder"])
+ dict["appendLine"], dict["driveorder"],
+ dict["hvArgs"])
self.permanentSkipSteps.extend(["upgbootloader", "bootloader",
"bootloaderadvanced"])
--
1.6.0.6
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|