[pkg-cryptsetup-devel] Bug#807600: initramfs-tools: LVM called before encrypted partition is mounted causing boot to hang

John Talbut jt at dpets.co.uk
Thu Dec 10 22:23:02 UTC 2015


Package: initramfs-tools
Version: 0.120
Severity: important

Dear Maintainer,

    * What led up to the situation?
I compiled a static kernel from the latest source in Debian Testing, 
4.2.6.  I have successfully compiled kernels many times before.

I have a boot partition and the rest of the hard disk is in an encrypted 
partition.

When I come to boot it fails to ask for the password and starts getting 
the following lines being repeated on the console:

/run/lvm/lvmetad.socket: connect failed: No such file or directory
WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
Reading all physical volumes. This may take a while...

In addition a previous kernel that I had been using also fails to boot. 
  On the other hand the latest stock modular kernel boots OK.

I am attaching a dmesg which I was able to obtain from a boot failure. 
The lvmetad lines do not appear in dmesg.

The information below refers to the system booted with the 4.2.0-1-amd64 
stock kernel.


-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root  18M Oct  1 06:13 /boot/initrd.img-4.1.0-2-amd64
-rw-r--r-- 1 root root 4.9M Oct  2 21:29 /boot/initrd.img-4.1.6-20151002
-rw-r--r-- 1 root root 4.9M Dec  6 19:40 
/boot/initrd.img-4.1.6-20151002-_4.1.6-20151002-2_amd64
-rw-r--r-- 1 root root 4.9M Oct  3 06:54 
/boot/initrd.img-4.1.6-20151002-dbg_4.1.6-20151002-1_amd64
-rw-r--r-- 1 root root 4.9M Oct  3 05:32 /boot/initrd.img-4.1.6-20151003
-rw-r--r-- 1 root root  19M Nov 25 18:43 /boot/initrd.img-4.2.0-1-amd64
-rw-r--r-- 1 root root 4.9M Dec  6 19:41 /boot/initrd.img-4.2.6-20151206
-rw-r--r-- 1 root root 4.9M Dec 10 14:59 /boot/initrd.img-4.2.6-20151209
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-4.2.0-1-amd64 root=/dev/mapper/dk-rt ro 
snd-hda-intel.index=1,0

-- resume
RESUME=/dev/mapper/dk-sw
-- /proc/filesystems
	ext3
	ext2
	ext4

-- lsmod
Module                  Size  Used by
arc4                   16384  2
btusb                  45056  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
iwlmvm                192512  0
mac80211              630784  1 iwlmvm
btintel                16384  1 btusb
snd_usb_audio         180224  0
snd_usbmidi_lib        32768  1 snd_usb_audio
snd_rawmidi            32768  1 snd_usbmidi_lib
snd_seq_device         16384  1 snd_rawmidi
amd_freq_sensitivity    16384  0
kvm_amd                61440  0
kvm                   495616  1 kvm_amd
bluetooth             499712  5 btbcm,btrtl,btusb,btintel
pwc                    73728  0
videobuf2_vmalloc      16384  1 pwc
videobuf2_memops       16384  1 videobuf2_vmalloc
videobuf2_core         49152  1 pwc
v4l2_common            16384  2 pwc,videobuf2_core
videodev              167936  3 pwc,v4l2_common,videobuf2_core
media                  24576  1 videodev
iwlwifi               118784  1 iwlmvm
cfg80211              532480  3 iwlwifi,mac80211,iwlmvm
amdkfd                118784  1
rfkill                 24576  3 cfg80211,bluetooth
pcspkr                 16384  0
evdev                  20480  11
serio_raw              16384  0
radeon               1499136  3
edac_mce_amd           24576  0
fam15h_power           16384  0
edac_core              57344  0
snd_hda_codec_realtek    86016  1
k10temp                16384  0
snd_hda_codec_hdmi     49152  1
snd_hda_codec_generic    73728  1 snd_hda_codec_realtek
i2c_piix4              24576  0
ttm                    94208  1 radeon
sg                     32768  0
snd_hda_intel          36864  0
drm_kms_helper        126976  1 radeon
drm                   352256  6 ttm,drm_kms_helper,radeon
fujitsu_laptop         20480  0
shpchp                 36864  0
snd_hda_codec         131072  4 
snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
snd_hda_core           65536  5 
snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
snd_hwdep              16384  2 snd_usb_audio,snd_hda_codec
snd_pcm               102400  5 
snd_usb_audio,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
snd_timer              32768  1 snd_pcm
snd                    86016  12 
snd_hda_codec_realtek,snd_usb_audio,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_rawmidi,snd_hda_codec_generic,snd_usbmidi_lib,snd_hda_codec,snd_hda_intel,snd_seq_device
i2c_algo_bit           16384  1 radeon
8250_fintek            16384  0
tpm_tis                20480  0
video                  36864  1 fujitsu_laptop
tpm                    40960  1 tpm_tis
soundcore              16384  1 snd
button                 16384  0
acpi_cpufreq           20480  0
processor              36864  3 acpi_cpufreq
thermal_sys            49152  2 video,processor
parport_pc             28672  0
ppdev                  20480  0
lp                     20480  0
parport                49152  3 lp,ppdev,parport_pc
loop                   28672  0
autofs4                40960  2
ext4                  573440  6
crc16                  16384  2 ext4,bluetooth
mbcache                20480  1 ext4
jbd2                  102400  1 ext4
algif_skcipher         20480  0
af_alg                 16384  1 algif_skcipher
sr_mod                 24576  0
cdrom                  57344  1 sr_mod
usb_storage            69632  0
dm_crypt               24576  1
dm_mod                106496  21 dm_crypt
hid_generic            16384  0
usbhid                 49152  0
hid                   114688  2 hid_generic,usbhid
sd_mod                 40960  3
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
crc32c_intel           24576  0
jitterentropy_rng      16384  0
sha256_ssse3           28672  1
sha256_generic         24576  1 sha256_ssse3
hmac                   16384  1
drbg                   24576  1
ansi_cprng             16384  0
ohci_pci               16384  0
aesni_intel           167936  2
aes_x86_64             20480  1 aesni_intel
lrw                    16384  1 aesni_intel
gf128mul               16384  1 lrw
glue_helper            16384  1 aesni_intel
ablk_helper            16384  1 aesni_intel
cryptd                 20480  3 aesni_intel,ablk_helper
ahci                   36864  2
libahci                32768  1 ahci
libata                233472  2 ahci,libahci
scsi_mod              225280  5 sg,usb_storage,libata,sd_mod,sr_mod
ohci_hcd               49152  1 ohci_pci
ehci_pci               16384  0
ehci_hcd               77824  1 ehci_pci
xhci_pci               16384  0
xhci_hcd              167936  1 xhci_pci
usbcore               233472  12 
pwc,btusb,snd_usb_audio,usb_storage,ohci_hcd,ohci_pci,snd_usbmidi_lib,ehci_hcd,ehci_pci,usbhid,xhci_hcd,xhci_pci
usb_common             16384  1 usbcore
r8169                  77824  0
mii                    16384  1 r8169

-- /etc/initramfs-tools/modules

-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
do_bootloader = no
do_initrd = yes
link_in_boot = no

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
COMPRESS=gzip
DEVICE=
NFSROOT=auto

-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no

-- /etc/crypttab
sda2_crypt UUID=48537739-1f62-4c12-8bf1-9d662d8cc74f none luks
sda2_crypt UUID=48537739-1f62-4c12-8bf1-9d662d8cc74f none luks
sda2_crypt UUID=48537739-1f62-4c12-8bf1-9d662d8cc74f none luks

-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:

/usr/share/initramfs-tools/hooks:
amd64_microcode
busybox
cryptgnupg
cryptkeyctl
cryptopenct
cryptopensc
cryptpassdev
cryptroot
dmsetup
fsck
fuse
keymap
klibc
kmod
lvm2
ntfs_3g
resume
thermal
udev


-- System Information:
Debian Release: stretch/sid
   APT prefers testing
   APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.2.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages initramfs-tools depends on:
ii  cpio         2.11+dfsg-4.1
ii  klibc-utils  2.0.4-4
ii  kmod         21-1
ii  udev         228-2

Versions of packages initramfs-tools recommends:
pn  busybox | busybox-initramfs | busybox-static  <none>

Versions of packages initramfs-tools suggests:
pn  bash-completion  <none>

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dmesg 20151209.odt
Type: application/vnd.oasis.opendocument.text
Size: 33823 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20151210/ba8a0b0e/attachment.odt>


More information about the pkg-cryptsetup-devel mailing list