revise the fix for floppy device handling in grub-install.

This commit is contained in:
okuji committed 2000-12-13 17:15:30 +00:00
1 parent b1cdb09358
commit fb01925bdf
3 files changed
+9 -2

No files matched your search

+2 -2
View File
@@ -77,11 +77,11 @@ convert () {
case "$host_os" in
linux*)
tmp_disk=`echo "$1" | sed -e 's%\([sh]d[a-z]\)[0-9]*$%\1%' \
-e 's%\(fd[0-9]*\)$%\1%' \
-e 's%/part[0-9]*$%/disc%'`
tmp_part=`echo "$1" | sed -e 's%.*/[sh]d[a-z]\([0-9]*\)$%\1%' \
-e 's%.*/fd[0-9]*$%%' \
-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%'`