Package: grub Release: 0.91 The grub-install script relies on /etc/mtab being correct in order to discover the root filesystem.
This is no good if /etc/mtab is not current. This is my immediate problem. Nor can it rely on /proc being mounted. I'm trying to run it chroot(). Here's what happens: + bootdir=/boot/boot + grubdir=/boot/boot/grub + device_map=/boot/boot/grub/device.map + test -f //sbin/grub + : + test -f //usr/lib/grub/i386-pc/stage1 + : + test -f //usr/lib/grub/i386-pc/stage2 + : + test -d /boot/boot + test -d /boot/boot/grub + test no = yes + test -f /boot/boot/grub/device.map + : ++ convert /dev/hda ++ test -e /dev/hda ++ : +++ sed -e 's%\([sh]d[a-z]\)[0-9]*$%\1%' -e 's%\(fd[0-9]*\)$%\1%' -e 's%/part[0-9]*$%/disc%' -e 's%\(c' +++ echo /dev/hda ++ tmp_disk=/dev/hda +++ echo /dev/hda +++ sed -e 's%.*/[sh]d[a-z]\([0-9]*\)$%\1%' -e 's%.*/fd[0-9]*$%%' -e 's%.*/floppy/[0-9]*$%%' -e 's%.*/' ++ tmp_part= +++ grep -v '^#' /boot/boot/grub/device.map +++ grep '/dev/hda *$' +++ sed 's%.*\(([hf]d[0-9][a-g0-9,]*)\).*%\1%' ++ tmp_drive=(hd0) ++ test 'x(hd0)' = x ++ test x '!=' x ++ echo '(hd0)' + install_drive=(hd0) + test 'x(hd0)' = x ++ df /boot/ ++ grep /dev/ ++ sed 's%.*\(/dev/[^ ]*\).*%\1%' + root_device= ++ df /boot/boot ++ grep /dev/ ++ sed 's%.*\(/dev/[^ ]*\).*%\1%' + bootdir_device= + test x '!=' x ++ convert '' ++ test -e '' ++ echo ': Not found or not a block device.' : Not found or not a block device. ++ exit 1 + root_drive= + test x = x + exit 1 The actual commandline is: /sbin/grub-install --debug --root-directory=/boot /dev/hda fwiw I'm playing round with Debian/Woody. -- Cheers John Summerfield Microsoft's most solid OS: http://www.geocities.com/rcwoolley/ Join the "Linux Support by Small Businesses" list at http://mail.computerdatasafe.com.au/mailman/listinfo/lssb _______________________________________________ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub