fix a bug in grub-install.

This commit is contained in:
okuji committed 2000-04-15 14:00:33 +00:00
1 parent 32f9590f2a
commit 31f1004b74
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -210,7 +210,7 @@ fi
# Get the root drive.
# For now, this uses the program `df' to get the device name, but is
# this really portable?
root_device=`df ${rootdir} | grep /dev/ | sed 's%.*\(/dev/[a-z0-9]*\).*%\1%'`
root_device=`df ${rootdir}/ | grep /dev/ | sed 's%.*\(/dev/[a-z0-9]*\).*%\1%'`
root_drive=`convert "$root_device"`
if test "x$root_drive" = x; then
exit 1