Bug#456776: grub: Please support installation Xen virtual block devices

Ian Campbell ijc at hellion.org.uk
Mon Dec 17 21:02:31 UTC 2007


Package: grub
Version: 0.97-29
Severity: normal
Tags: patch

The grub package does not currently support installation in a Xen
guest domain because it does not understand the Xen virtual block devices
(/dev/xvd[a-z]).

This support is mainly useful because it allows the Debian installer to
work in a Xen guest without Xen specific workarounds.

It might also be useful for someone who wanted to switch between
a guest between para-virtual and fully-virtualised (HVM) operation.

Patches for grub-install and grub itself (for device.map generation) are
attached.

Thanks,
Ian.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-3-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- no debconf information
-------------- next part --------------
--- a/util/grub-install.in	2007-06-26 07:10:40.000000000 +0100
+++ b/util/grub-install.in	2007-12-15 12:50:16.000000000 +0000
@@ -144,13 +144,13 @@
 	case $1 in
 		/dev/md*)  set -- `getraid_mdadm $1`
 	esac
-	tmp_disk=`echo "$1" | sed -e 's%\([sh]d[a-z]\)[0-9]*$%\1%' \
+	tmp_disk=`echo "$1" | sed -e 's%\(\(s\|h\|xv\)d[a-z]\)[0-9]*$%\1%' \
 				  -e 's%\(d[0-9]*\)p[0-9]*$%\1%' \
 				  -e 's%\(fd[0-9]*\)$%\1%' \
 				  -e 's%/part[0-9]*$%/disc%' \
 				  -e 's%\(c[0-7]d[0-9]*\).*$%\1%' \
 				  -e 's%\(e[0-9]\.[0-9]*\).*$%\1%'`
-	tmp_part=`echo "$1" | sed -e 's%.*/[sh]d[a-z]\([0-9]*\)$%\1%' \
+	tmp_part=`echo "$1" | sed -e 's%.*/\(s\|h\|xv\)d[a-z]\([0-9]*\)$%\2%' \
 				  -e 's%.*d[0-9]*p%%' \
 				  -e 's%.*/fd[0-9]*$%%' \
 				  -e 's%.*/floppy/[0-9]*$%%' \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grub-xvd_drives.diff
Type: text/x-c
Size: 1024 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20071217/864818df/attachment.bin 


More information about the Pkg-grub-devel mailing list