fix a floppy device name bug in grub-install.
This commit is contained in:
parent
505fa5c440
commit
e92b021096
2 changed files with 10 additions and 1 deletions
|
@ -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>
|
2000-06-08 OKUJI Yoshinori <okuji@gnu.org>
|
||||||
|
|
||||||
* docs/tutorial.texi (Network): The body is moved to ...
|
* docs/tutorial.texi (Network): The body is moved to ...
|
||||||
|
|
|
@ -73,7 +73,7 @@ convert () {
|
||||||
# Break the device name into the disk part and the partition part.
|
# Break the device name into the disk part and the partition part.
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
linux*)
|
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%%"` ;;
|
tmp_part=`echo "$1" | sed "s%$tmp_disk%%"` ;;
|
||||||
gnu*)
|
gnu*)
|
||||||
tmp_disk=`echo "$1" | sed 's%s[0-9]*[a-g]?%%'`
|
tmp_disk=`echo "$1" | sed 's%s[0-9]*[a-g]?%%'`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue