Bug#594472: grub-pc: scary messages and very long boot time after upgrade
Andreas von Heydwolff
106624.446 at compuserve.com
Tue Sep 14 19:28:17 UTC 2010
After upgrading mdadm I had
[snip]
>> Generating udev events for MD arrays...done.
>> Verarbeite Trigger für man-db ...
>> Verarbeite Trigger für initramfs-tools ...
>> update-initramfs: Generating /boot/initrd.img-2.6.32-5-amd64
>> cryptsetup: WARNING: invalid line in /etc/crypttab -
>> cryptsetup: WARNING: invalid line in /etc/crypttab -
On 2010-09-12 21:43, Darren wrote:
> initramfs of ..-amd64 did not get updated. I could not see the
> crypttab error message.
>
> For me it helped to run a separate
> # update-initramfs
>
> after the upgrade.
>
> If that does not help, how does your /etc/crypttab look like?
Thanks, Darren. Well, I deleted the old initramfs and upon creating a
new one had the same result but with a few more perhaps relevant messages:
# update-initramfs -c -v -k 2.6.32-5-amd64
update-initramfs: Generating /boot/initrd.img-2.6.32-5-amd64
Adding module /lib/modules/2.6.32-5-amd64/kernel/fs/nls/nls_base.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/usb/core/usbcore.ko
[many lines about added modules omitted, continuing here with:]
Adding module
/lib/modules/2.6.32-5-amd64/kernel/drivers/usb/storage/ums-isd200.ko
Adding binary /etc/initramfs-tools/conf.d/resume
Adding binary /sbin/modprobe
Adding library /lib/libc.so.6
Adding library /lib64/ld-linux-x86-64.so.2
Adding binary /sbin/rmmod
Calling hook busybox
Adding binary /bin/busybox
Adding library /lib/libm.so.6
Calling hook cryptroot
cryptsetup: WARNING: invalid line in /etc/crypttab -
Copying module directory kernel/arch/x86/crypto
Adding module
/lib/modules/2.6.32-5-amd64/kernel/arch/x86/crypto/crc32c-intel.ko
Adding module
/lib/modules/2.6.32-5-amd64/kernel/arch/x86/crypto/salsa20-x86_64.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/crypto/aes_generic.ko
[lots of crypto modules omitted here, continuing with the rest:]
Adding module /lib/modules/2.6.32-5-amd64/kernel/crypto/tcrypt.ko
cryptsetup: WARNING: invalid line in /etc/crypttab -
Copying module directory kernel/arch/x86/crypto
Copying module directory kernel/crypto
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-mod.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-crypt.ko
Adding binary /sbin/cryptsetup
Adding library /lib/libpopt.so.0
Adding library /lib/libdevmapper.so.1.02.1
Adding library /lib/libuuid.so.1
Adding library /lib/libselinux.so.1
Adding library /lib/libudev.so.0
Adding library /lib/libdl.so.2
Adding binary /sbin/dmsetup
Adding binary /lib/cryptsetup/askpass
Calling hook keymapAdding module
/lib/modules/2.6.32-5-amd64/kernel/crypto/async_tx/async_raid6_recov.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/crypto/arc4.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/crypto/tcrypt.ko
cryptsetup: WARNING: invalid line in /etc/crypttab -
Copying module directory kernel/arch/x86/crypto
Copying module directory kernel/crypto
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-mod.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-crypt.ko
Adding binary /sbin/cryptsetup
Adding library /lib/libpopt.so.0
Adding library /lib/libdevmapper.so.1.02.1
Adding library /lib/libuuid.so.1
Adding library /lib/libselinux.so.1
Adding library /lib/libudev.so.0
Adding library /lib/libdl.so.2
Adding binary /sbin/dmsetup
Adding binary /lib/cryptsetup/askpass
Calling hook keymap
Adding binary /bin/loadkeys
Calling hook klibc
Calling hook lvm2
Adding binary /sbin/lvm
Adding library /lib/libreadline.so.5
Adding library /lib/libncurses.so.5
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-snapshot.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-log.ko
Adding module
/lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-region-hash.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-mirror.ko
Calling hook mdadm
Adding binary /sbin/mdadm
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/md-mod.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/linear.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/multipath.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid0.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid1.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid456.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid10.ko
Calling hook thermal
Adding module
/lib/modules/2.6.32-5-amd64/kernel/drivers/thermal/thermal_sys.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/acpi/fan.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/acpi/thermal.ko
Calling hook udev
Adding binary /sbin/udevd
Adding binary /sbin/udevadm
Adding binary /lib/udev/firmware.agent
Adding binary /lib/udev/ata_id
Adding binary /lib/udev/edd_id
Adding binary /lib/udev/path_id
Adding binary /lib/udev/scsi_id
Adding binary /lib/udev/usb_id
Adding binary /sbin/blkid
Adding library /lib/libblkid.so.1
Calling hook cryptpassdev
Calling hook cryptopensc
Calling hook cryptopenct
Calling hook cryptgnupg
Calling hook dmsetup
Building cpio /boot/initrd.img-2.6.32-5-amd64.new initramfs
Adding binary /bin/loadkeys
Calling hook klibc
Calling hook lvm2
Adding binary /sbin/lvm
Adding library /lib/libreadline.so.5
Adding library /lib/libncurses.so.5
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-snapshot.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-log.ko
Adding module
/lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-region-hash.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-mirror.ko
Calling hook mdadm
Adding binary /sbin/mdadm
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/md-mod.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/linear.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/multipath.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid0.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid1.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid456.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid10.ko
Calling hook thermal
Adding module
/lib/modules/2.6.32-5-amd64/kernel/drivers/thermal/thermal_sys.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/acpi/fan.ko
Adding module /lib/modules/2.6.32-5-amd64/kernel/drivers/acpi/thermal.ko
Calling hook udev
Adding binary /sbin/udevd
Adding binary /sbin/udevadm
Adding binary /lib/udev/firmware.agent
Adding binary /lib/udev/ata_id
Adding binary /lib/udev/edd_id
Adding binary /lib/udev/path_id
Adding binary /lib/udev/scsi_id
Adding binary /lib/udev/usb_id
Adding binary /sbin/blkid
Adding library /lib/libblkid.so.1
Calling hook cryptpassdev
Calling hook cryptopensc
Calling hook cryptopenct
Calling hook cryptgnupg
Calling hook dmsetup
Building cpio /boot/initrd.img-2.6.32-5-amd64.new initramfs
[output ended here]
My /etc/crypttab reads
md1_crypt UUID=3a10eb55-2dd8-4846-97e5-74649abf234f none luks
md2_crypt UUID=e78a6bea-cafb-41a7-89e9-03e999b38d6c none luks
... which is correct as far as the UUIDs are concerned; here's the
output from after having started the system manually:
# blkid | grep crypt
/dev/md1: UUID="3a10eb55-2dd8-4846-97e5-74649abf234f" TYPE="crypto_LUKS"
/dev/md2: UUID="e78a6bea-cafb-41a7-89e9-03e999b38d6c" TYPE="crypto_LUKS"
/dev/mapper/md1_crypt: UUID="c1Evvw-vx3Z-fBwD-WRyh-hI0n-Y864-wtPZ3o"
TYPE="LVM2_member"
/dev/mapper/md2_crypt: UUID="etVfXJ-7VYM-XcmT-ltfp-WDsW-TICB-UaX9E2"
TYPE="LVM2_member"
Perhaps it boils down to some bug where "Calling hook cryptroot" is
being issued? The format of crypttab seems to be correct, isn't it?
The initramfs system does not find the encrypted RAID1 device that
contains the vg with root, and when I unlock the device manually and
start the vg the pv gets mapped to /dev/dm-0 and /dev/dm-11 a second
time when booting resumes after unlocking the volume group that contains
/ as can be seen here:
# pvscan
Found duplicate PV c1Evvwvx3ZfBwDWRyhhI0nY864wtPZ3o: using /dev/dm-11
not /dev/dm-0
PV /dev/dm-12 VG vg-md2dm1 lvm2 [197,43 GiB / 17,43 GiB free]
PV /dev/dm-11 VG vg-md1dm0 lvm2 [32,59 GiB / 1,31 GiB free]
Total: 2 [230,02 GiB] / in use: 2 [230,02 GiB] / in no VG: 0 [0 ]
Is the initramfs perhaps not initially looking for UUIDs?
Greetings,
Andreas
More information about the Pkg-grub-devel
mailing list