|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [RFC] bootloader improvements - pygrub-default
# HG changeset patch
# User john.levon@xxxxxxx
# Date 1163095795 28800
# Node ID 7c80aaffe16f5e4037d10660d262ed7b22894b01
# Parent 6750c8c56b5f139c2b227472d8b9e1f9555fdb6f
Make bootloader = "default" use pygrub. This avoids the need to know
the pygrub path, which differs between OS's.
Signed-off-by: John Levon <john.levon@xxxxxxx>
diff --git a/tools/python/xen/xm/create.py b/tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py
+++ b/tools/python/xen/xm/create.py
@@ -951,7 +951,8 @@ def preprocess_vnc(vals):
vals.extra = vnc + ' ' + vals.extra
def preprocess(vals):
- if not vals.kernel and not vals.bootloader:
+ if ((not vals.kernel and not vals.bootloader) or
+ vals.bootloader == "default"):
vals.bootloader = osdep.pygrub_path
preprocess_disk(vals)
preprocess_pci(vals)
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|