fix a bug in grub-install.

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

View file

@ -1,3 +1,9 @@
2000-04-15 OKUJI Yoshinori <okuji@gnu.org>
* util/grub-install.in (root_device): Append `/' to ${rootdir},
since ROOTDIR may be empty. Reported by Satoshi Nagayasu
<snaga@oak.forus.or.jp>.
2000-04-15 Jochen Hoenicke <jochen@gnu.org>
* configure.in: Added --disable-reiserfs option.

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