diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-03-09 09:19:10 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-03-09 09:19:10 +0000 |
commit | 178897b9f259c07bd8b64ce3bc0737e1c070c821 (patch) | |
tree | e6bce1f518173d26f731a0339fb68bc6f713e127 /tools/pygrub | |
parent | 7402207f8c91eaae51dd9cbc2115040f9053579e (diff) | |
download | xen-178897b9f259c07bd8b64ce3bc0737e1c070c821.tar.gz xen-178897b9f259c07bd8b64ce3bc0737e1c070c821.tar.bz2 xen-178897b9f259c07bd8b64ce3bc0737e1c070c821.zip |
pygrub: Enable domU boot without xen specific arg
This patch makes domUs bring up without xen specific args to guest
kernels. A domU should be bootable without args parameter because
tools/examples/xmexample1 doesn't have one.
Signed-off-by: INAKOSHI Hiroya <inakoshi.hiroya@jp.fujitsu.com>
Diffstat (limited to 'tools/pygrub')
-rw-r--r-- | tools/pygrub/src/pygrub | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub index e4482afeb5..0bd4578b9e 100644 --- a/tools/pygrub/src/pygrub +++ b/tools/pygrub/src/pygrub @@ -605,7 +605,7 @@ if __name__ == "__main__": isconfig = False # what was passed in - incfg = { "kernel": None, "ramdisk": None, "args": None } + incfg = { "kernel": None, "ramdisk": None, "args": "" } # what grub or sniffing chose chosencfg = { "kernel": None, "ramdisk": None, "args": None } # what to boot @@ -641,7 +641,7 @@ if __name__ == "__main__": # debug if isconfig: - chosencfg = run_grub(file, entry) + chosencfg = run_grub(file, entry, fs, incfg["args"]) print " kernel: %s" % chosencfg["kernel"] if img.initrd: print " initrd: %s" % chosencfg["ramdisk"] |