Bug#507501: grub-common: silent fail when devices.map is wrong (patch)
Adrian Bridgett
adrian at smop.co.uk
Sun Feb 1 11:56:31 UTC 2009
Okay, so numpty here clearly forgot to attach the patch :-(
Fortunately #501306 does half of it.
I think it might be worth fixing this automatically - ATM the message
can be lost in the noise (it's a huge improvement though!).
Why not take a backup copy of device.map, run grub-mkdevicemap
automatically and print an appropriate message?
bishop:/etc/puppet# update-grub
Searching for GRUB installation directory ... found: /boot/grub
warning: grub-probe can't find drive for /dev/vda1.
Please check /boot/grub/device.map, you might have to regenerate it
with grub-mkdevicemap.
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found:
/boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.26-1-amd64
Updating /boot/grub/menu.lst ... done
bishop:/etc/puppet# echo $?
0
Adrian
--
Email: adrian at smop.co.uk -*- GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution -*- www.debian.org
More information about the Pkg-grub-devel
mailing list