Bug#591571: Bogus warning related to dm-crypt when upgrading

Martin Michlmayr tbm at cyrius.com
Tue Aug 3 23:14:59 UTC 2010


Package: grub
Version: 1.98+20100710-1

I got the following warning during the upgrade:

update-initramfs: Generating /boot/initrd.img-2.6.32-5-amd64
Running update-grub.
Generating grub.cfg ...
/usr/sbin/grub-probe: error: cannot stat `/boot/grub/locale'.
Warning:  is a crypto device, which GRUB cannot read directly.  Some necessary modules may be missing from /boot/grub/grub.cfg.  You may need to write an /etc/grub.d/01_modules script to load them.  See http://bugs.debian.org/542165 for details.
/usr/bin/grub-mkrelpath: error: failed to get canonical path of /boot/grub/locale.
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
Found linux image: /boot/vmlinuz-2.6.32-3-amd64
Found initrd image: /boot/initrd.img-2.6.32-3-amd64
done
Examining /etc/kernel/postinst.d.

There are a number of problems with this:

 - /boot/grub/locale exists (at least after the installation):
loric-alpo:/home/tbm# grub-mkrelpath /boot/grub/locale
/grub/locale

 - "Warning:  is a crypto device" doesn't display the device

 - I believe this warning does not apply to my system because /boot is
   not encrypted.  Only the root partition is on an encrypted dm-crypt
   partition, but /boo is not.

-- 
Martin Michlmayr
http://www.cyrius.com/





More information about the Pkg-grub-devel mailing list