WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xm: Enable a bootloader when using XM via

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xm: Enable a bootloader when using XM via Xen-API
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 30 Jul 2008 08:40:13 -0700
Delivery-date: Wed, 30 Jul 2008 08:40:22 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1217406144 -3600
# Node ID 4160bc28f0fbaa51321226c33f50732796942bc6
# Parent  b613bf4c42891b3a795aaf9f1f7ca543debd8189
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@xxxxxxxxxx>
---
 tools/python/xen/xm/xenapi_create.py |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff -r b613bf4c4289 -r 4160bc28f0fb tools/python/xen/xm/xenapi_create.py
--- a/tools/python/xen/xm/xenapi_create.py      Wed Jul 30 09:20:42 2008 +0100
+++ b/tools/python/xen/xm/xenapi_create.py      Wed Jul 30 09:22:24 2008 +0100
@@ -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":

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xm: Enable a bootloader when using XM via Xen-API, Xen patchbot-unstable <=