bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grub-install: focus error messages on what the user did wrong


From: Ben Armstrong
Subject: grub-install: focus error messages on what the user did wrong
Date: Wed, 29 Aug 2001 12:23:22 -0300
User-agent: Mutt/1.3.18i

The user would be greatly aided in finding the real problem when
grub-install fails if more care were taken to determine what the user
actually did wrong and issue an appropriate error message.

In particular, one user asking for help on irc on channel #hurd
(irc.openprojects.net) complained that when he specified:

grub-install --root-directory=/boot '(hd0)'

He got this error message:

Probing devices to guess BIOS drives. This may take a long time.
/dev/hda1 does not have any corresponding BIOS drive.

But on close examination of the grub-install script, I discovered that
it greps install.map.  The non-sensical --root-directory he specified
was causing grub-install to look in the wrong directory for install.map.

There should therefore be a file existence check on device.map and
an appropriate error message issued if it is missing, e.g.

Cannot find /boot/boot/grub/device.map.  Wrong --root-directory specified?

Thanks,
Ben Armstrong
-- 
    nSLUG       http://www.nslug.ns.ca      address@hidden
    Debian      http://www.debian.org       address@hidden
[ pgp key fingerprint = 7F DA 09 4B BA 2C 0D E0  1B B1 31 ED C6 A9 39 4F ]
[ gpg key fingerprint = 395C F3A4 35D3 D247 1387  2D9E 5A94 F3CA 0B27 13C8 ]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]