grub-install script contains probrem.  I got latest version from cvs.

# grub-install /dev/hda
/dev/hda2
/dev/hda7
/dev/hda8
/dev/hda6
/dev/hda9
/dev/hda1: Not found.
# 

At first, variable $rootdir is empty like below.

32:grub_shell=${sbindir}/grub
33:log_file=/tmp/grub-install.log.$$
34:rootdir=

but if it is empty, 'df' command will not work as expected
in grub-install.

% echo `df | grep /dev/ | sed 's%.*\(/dev/[a-z0-9]*\).*%\1%'`
/dev/hda2 /dev/hda7 /dev/hda8 /dev/hda6 /dev/hda9 /dev/hda1
% echo `df / | grep /dev/ | sed 's%.*\(/dev/[a-z0-9]*\).*%\1%'`
/dev/hda2
% 

It makes probrem in grub-install script, line 213.
$root_device should have ONLY one device file name.

210:# Get the root drive.
211:# For now, this uses the program `df' to get the device name, but is
212:# this really portable?
213:root_device=`df ${rootdir} | grep /dev/ | sed 's%.*\(/dev/[a-z0-9]*\).*%\1%'`
214:root_drive=`convert "$root_device"`

grub-install is working fine on other system?

--
NAGAYASU Satoshi <[EMAIL PROTECTED]>

Reply via email to