that wasn't the patch, doh!

here it is!

On Sat, Jul 21, 2001 at 02:10:16PM +1000, Jason Thomas wrote:
> attached is a patch to grub-install.in which converts the device to grub
> syntax.

-- 
Jason Thomas                           Phone:  +61 2 6257 7111
System Administrator  -  UID 0         Fax:    +61 2 6257 7311
tSA Consulting Group Pty. Ltd.         Mobile: 0418 29 66 81
1 Hall Street Lyneham ACT 2602         http://www.topic.com.au/
--- grub-install.in.orig        Sat Jul 21 14:05:42 2001
+++ grub-install.in     Sat Jul 21 14:06:15 2001
@@ -83,6 +83,14 @@
                                  -e 's%.*/fd[0-9]*$%%' \
                                  -e 's%.*/floppy/[0-9]*$%%' \
                                  -e 's%.*/\(disc\|part\([0-9]*\)\)$%\2%'`
+        if echo $1 | grep "c[0-7]d[0-9]*p*" > /dev/null ; then
+            # we have a DAC960 raid device there partitions start from 0
+            tmp_disk=`echo "$1" | sed -e 's%\(c[0-7]d[0-9]*\).*$%\1%'`
+            tmp_part=`echo "$1" | sed -e 's%.*c[0-7]d[0-9]*p*%%'`
+            if test "x$tmp_part" != x ; then
+                tmp_part=`expr $tmp_part + 1`
+            fi
+        fi
        ;;
     gnu*)
        tmp_disk=`echo "$1" | sed 's%\([sh]d[0-9]*\).*%\1%'`

PGP signature

Reply via email to