fix a floppy device name bug in grub-install.

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

View file

@ -1,3 +1,12 @@
2000-06-11 OKUJI Yoshinori <okuji@gnu.org>
* util/grub-install.in (convert): When $host_os is linux*, use
the expression 's%\([sh]d[a-z]\)[0-9]*$%\1%' instead of
's%[0-9]*$%%', to get rid of the partition part. This fixes the
bug "/dev/fd0" -> "/dev/fd". (But don't you think the naming is
quite inconsistent with hard disks? Why not /dev/fd[a-z]?)
Report by Pavel Roskin.
2000-06-08 OKUJI Yoshinori <okuji@gnu.org>
* docs/tutorial.texi (Network): The body is moved to ...

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]?%%'`