On Saturday 09 December 2000 02:02, OKUJI Yoshinori wrote:
> That's a bug in grub-install. Since it is a shell script, you can
> modify it by a normal text editor. If you fix the bug, send the patch
> to this list. I guess you have the skill. ;)

I'm not that experienced so this was a tough one for me! But I succeeded to 
install grub on a floppy disk. See attached patch for "grub-install".

-- 
Leendert Meyer 
E-mail : [EMAIL PROTECTED]
ICQ    : 38341890

SuSE Linux 7.0 (i386) - Kernel 2.4.0-test9
--- /usr/local/src/cvs/grub/util/grub-install   Fri Dec  8 14:58:05 2000
+++ grub-install        Sat Dec  9 03:36:53 2000
@@ -80,6 +80,10 @@
                                  -e 's%/part[0-9]*$%/disc%'`
        tmp_part=`echo "$1" | sed -e 's%.*/[sh]d[a-z]\([0-9]*\)$%\1%' \
                                  -e 's%.*/\(disc\|part\([0-9]*\)\)$%\2%'`
+                                 
+       # floppy drives don't have partitions:
+       tmp_part=`echo "$tmp_part" | sed -e 's%.*/fd[0-9]*%%'`
+
        ;;
     gnu*)
        tmp_disk=`echo "$1" | sed 's%\([sh]d[0-9]*\).*%\1%'`

Reply via email to