[Pkg-xen-devel] backport upstream pygrub fixes to allow booting squeeze default install?

Ian Campbell ijc at hellion.org.uk
Thu Feb 18 22:16:00 UTC 2010


Hi Bastian,

I'd like to propose backporting the following changesets from upstream
xen-unstable into the xen-3 package. With these it is possible to boot a
default installation of Squeeze (using d-i) in a domU using pygrub.

20480:c2c2e67b8198 pygrub: if default entry is "saved" then use first entry.
20481:8f4e0adc2b3b pygrub: expands tabs before displaying menus.
20485:086a6a0c3f37 pygrub: factor generic Grub functionality into GrubConf base classes
20486:6e32b7a3e802 pygrub: track the title of an item as an independant field
20487:c8caa281a75a pygrub: add basic support for parsing grub2 style grub.cfg file
20585:2636e5619708 pygrub: improve grub 2 support

In addition I think the following needs to be added to
tools-pygrub-prefix.patch to allow the usual "bootloader=pygrub" syntax
to continue working (#481105).

--- xen-3.orig/tools/python/xen/xend/osdep.py	2008-05-12 12:01:59.000000000 +0100
+++ xen-3/tools/python/xen/xend/osdep.py	2008-07-20 12:53:18.000000000 +0100
@@ -18,7 +18,8 @@
 # Use is subject to license terms.
 
 import os
 import commands
+import xen.util.auxbin
 
 _scripts_dir = {
     "Linux": "/etc/xen/scripts",
@@ -92,6 +93,6 @@
 
 scripts_dir = _get(_scripts_dir, "/etc/xen/scripts")
 xend_autorestart = _get(_xend_autorestart)
-pygrub_path = _get(_pygrub_path, "/usr/bin/pygrub")
+pygrub_path = _get(_pygrub_path, xen.util.auxbin.pathTo("pygrub"))
 vif_script = _get(_vif_script, "vif-bridge")
 lookup_balloon_stat = _get(_balloon_stat, _linux_balloon_stat)

If you agree with these changes then I think I have the necessary
account on alioth to make the change, unless you would prefer to do so
yourself, I can provide the patch to the package if necessary.

Ian.
-- 
Ian Campbell

Democracy is a government where you can say what you think even if you
don't think.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20100218/dbb89a97/attachment.pgp>


More information about the Pkg-xen-devel mailing list