diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-07-30 09:22:24 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-07-30 09:22:24 +0100 |
commit | cacc71b1730ef62500480671014c1e64300e0871 (patch) | |
tree | 8bf3f0c41c05602a2d1368258a8e1faf8450b63c | |
parent | 70a3fcfc59839bf8f79469c0b49e4c7e31ad2c99 (diff) | |
download | xen-cacc71b1730ef62500480671014c1e64300e0871.tar.gz xen-cacc71b1730ef62500480671014c1e64300e0871.tar.bz2 xen-cacc71b1730ef62500480671014c1e64300e0871.zip |
xm: Enable a bootloader when using XM via Xen-API
This enables the usage of a bootloader, i.e., pygrub, when starting a
domain using xm in Xen-API mode.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
-rw-r--r-- | tools/python/xen/xm/xenapi_create.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/python/xen/xm/xenapi_create.py b/tools/python/xen/xm/xenapi_create.py index df104bf72e..7d834f37a1 100644 --- a/tools/python/xen/xm/xenapi_create.py +++ b/tools/python/xen/xm/xenapi_create.py @@ -389,7 +389,7 @@ class xenapi_create: "device": vbd.attributes["device"].value, "bootable": - vbd.attributes["bootable"].value == "True", + vbd.attributes["bootable"].value == "1", "mode": vbd.attributes["mode"].value, "type": @@ -597,13 +597,15 @@ class sxp2xml: pv = document.createElement("pv") pv.attributes["kernel"] \ = get_child_by_name(image, "kernel", "") - pv.attributes["bootloader"] = "" + pv.attributes["bootloader"] \ + = get_child_by_name(config, "bootloader", "") pv.attributes["ramdisk"] \ = get_child_by_name(image, "ramdisk", "") pv.attributes["args"] \ = "root=" + get_child_by_name(image, "root", "") \ + " " + get_child_by_name(image, "args", "") - pv.attributes["bootloader_args"] = "" + pv.attributes["bootloader_args"] \ + = get_child_by_name(config, "bootloader_args","") vm.appendChild(pv) elif image[0] == "hvm": |