xen/xen-bootloader-dryrun.diff

23 lines
987 B
Diff
Raw Normal View History

Index: xen-unstable/tools/python/xen/xend/XendBootloader.py
===================================================================
--- 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
def bootloader(blexec, disk, dom, quiet = False, blargs = '', kernel = '',
- 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
@@ -91,6 +91,8 @@ def bootloader(blexec, disk, dom, quiet
args.append("--args=%s" % kernel_args)
if quiet:
args.append("-q")
+ if dryrun:
+ args.append("--dryrun")
args.append("--output=%s" % fifo)
if blargs:
args.extend(shlex.split(blargs))