1 diff -Naur grub-0.97.org/util/grub-install.in grub-0.97/util/grub-install.in
2 --- grub-0.97.org/util/grub-install.in 2004-07-24 20:57:31.000000000 +0200
3 +++ grub-0.97/util/grub-install.in 2009-08-14 20:01:20.000000000 +0200
5 # Break the device name into the disk part and the partition part.
8 - tmp_disk=`echo "$1" | sed -e 's%\([sh]d[a-z]\)[0-9]*$%\1%' \
9 + tmp_disk=`echo "$1" | sed -e 's%\([vsh]d[a-z]\)[0-9]*$%\1%' \
10 -e 's%\(d[0-9]*\)p[0-9]*$%\1%' \
11 -e 's%\(fd[0-9]*\)$%\1%' \
12 -e 's%/part[0-9]*$%/disc%' \
13 -e 's%\(c[0-7]d[0-9]*\).*$%\1%'`
14 - tmp_part=`echo "$1" | sed -e 's%.*/[sh]d[a-z]\([0-9]*\)$%\1%' \
15 + tmp_part=`echo "$1" | sed -e 's%.*/[vsh]d[a-z]\([0-9]*\)$%\1%' \
17 -e 's%.*/fd[0-9]*$%%' \
18 -e 's%.*/floppy/[0-9]*$%%' \
20 if test -f "$device_map"; then
24 + tmp_disk=`echo "$install_device" | grep "/dev/vd"`
25 + if test "x$tmp_disk" = x; then
27 # Create a safe temporary file.
28 test -n "$mklog" && log_file=`$mklog`
36 + echo "Create fake device.map for vitio device $1" 1>&2
37 + echo "(hd0) $1" > $device_map
41 # Make sure that there is no duplicated entry.