fix a floppy device name bug in grub-install.

This commit is contained in:
okuji committed 2000-06-11 03:24:38 +00:00
1 parent 505fa5c440
commit e92b021096
2 files changed
+10 -1

No files matched your search

+1 -1
View File
@@ -73,7 +73,7 @@ convert () {
# Break the device name into the disk part and the partition part.
case "$host_os" in
linux*)
tmp_disk=`echo "$1" | sed 's%[0-9]*$%%'`
tmp_disk=`echo "$1" | sed 's%\([sh]d[a-z]\)[0-9]*$%\1%'`
tmp_part=`echo "$1" | sed "s%$tmp_disk%%"` ;;
gnu*)
tmp_disk=`echo "$1" | sed 's%s[0-9]*[a-g]?%%'`