mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Pass in kernel/ramdisk settings to pygrub; if specified, don't try to use
grub.conf; this allows hands-off bootloading in the absence of a grub.conf. It's also useful for specifying temporary changes etc. Signed-off-by: John Levon <john.levon@sun.com>
This commit is contained in:
1 parent
b624e752bd
commit
8c119d2ee4
2 files changed
+81
-41
No files matched your search
@@ -53,6 +53,12 @@ def bootloader(blexec, disk, quiet = False, blargs = '', kernel = '',
|
||||
child = os.fork()
|
||||
if (not child):
|
||||
args = [ blexec ]
|
||||
if kernel:
|
||||
args.append("--kernel=%s" % kernel)
|
||||
if ramdisk:
|
||||
args.append("--ramdisk=%s" % ramdisk)
|
||||
if kernel_args:
|
||||
args.append("--args=%s" % kernel_args)
|
||||
if quiet:
|
||||
args.append("-q")
|
||||
args.append("--output=%s" % fifo)
|
||||
|
||||