added support for native devfs device names into grub-install.

This commit is contained in:
okuji committed 2000-10-14 17:04:45 +00:00
1 parent f6a7cd3d17
commit 0f8fdcc8b2
3 files changed
+12 -2

No files matched your search

+5 -2
View File
@@ -74,8 +74,11 @@ convert () {
# Break the device name into the disk part and the partition part.
case "$host_os" in
linux*)
tmp_disk=`echo "$1" | sed 's%\([sh]d[a-z]\)[0-9]*$%\1%'`
tmp_part=`echo "$1" | sed "s%$tmp_disk%%"` ;;
tmp_disk=`echo "$1" | sed -e 's%\([sh]d[a-z]\)[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%.*/\(disc\|part\([0-9]*\)\)$%\2%'`
;;
gnu*)
tmp_disk=`echo "$1" | sed 's%\([sh]d[0-9]*\).*%\1%'`
tmp_part=`echo "$1" | sed "s%$tmp_disk%%"` ;;