2007-04-26 01:53:07 +02:00
|
|
|
Index: xen-unstable/tools/python/xen/xend/XendBootloader.py
|
2007-02-11 11:48:10 +01:00
|
|
|
===================================================================
|
2007-04-26 01:53:07 +02:00
|
|
|
--- xen-unstable.orig/tools/python/xen/xend/XendBootloader.py
|
|
|
|
+++ xen-unstable/tools/python/xen/xend/XendBootloader.py
|
|
|
|
@@ -25,7 +25,7 @@ import pty, termios, fcntl
|
|
|
|
from xen.lowlevel import ptsname
|
2007-02-11 11:48:10 +01:00
|
|
|
|
2007-04-26 01:53:07 +02:00
|
|
|
def bootloader(blexec, disk, dom, quiet = False, blargs = '', kernel = '',
|
2007-02-11 11:48:10 +01:00
|
|
|
- ramdisk = '', kernel_args = ''):
|
|
|
|
+ ramdisk = '', kernel_args = '', dryrun = False):
|
|
|
|
"""Run the boot loader executable on the given disk and return a
|
|
|
|
config image.
|
|
|
|
@param blexec Binary to use as the boot loader
|
2007-04-26 01:53:07 +02:00
|
|
|
@@ -91,6 +91,8 @@ def bootloader(blexec, disk, dom, quiet
|
|
|
|
args.append("--args=%s" % kernel_args)
|
2007-02-11 11:48:10 +01:00
|
|
|
if quiet:
|
|
|
|
args.append("-q")
|
|
|
|
+ if dryrun:
|
|
|
|
+ args.append("--dryrun")
|
|
|
|
args.append("--output=%s" % fifo)
|
|
|
|
if blargs:
|
|
|
|
args.extend(shlex.split(blargs))
|