Bug#797955: initramfs-tools: initramfs fails to activate swap on encrypted LVM2 partition; fails boot
Package: initramfs-tools
Version: 0.120
Severity: critical
Justification: breaks the whole system
All my partitions (except /boot) are on encrypted LVM2 partitions.
When booting, initramfs asks for the passwords to unlock the /root & /usr
partitions, which are mounted successfully. It then fails to ask for the swap
partition password, instead looping a few minutes, posting messages that it is
waiting for all volumes to become available and "/run/lvm/lvmetad.socket:
connect failed". Disabling lvmetad did not help.
Workaround:
Eventually, it dropped to a shell, which allowed me to run cryptsetup for the
swap partition. After that, I exited the shell, and the system booted
successfully.
My setup:
/etc/crypttab:
==========
boulez-_home__crypt UUID=70967099-611f-4082-aad4-3d3e9966fad6 /etc/secretkey
luks
boulez-_root__crypt UUID=b8806964-812e-4239-8914-60b1c33c0491 none luks
boulez-_swap__crypt UUID=d7b4dcc6-3d5d-408b-a5cf-60af0fe9260f none luks
boulez-_usr__crypt UUID=386fb30f-389d-4feb-9c59-352628c0de6b none luks
boulez-_var__crypt UUID=97d4e051-a1b8-4ecc-9dd3-5a69eeed4686 /etc/secretkey
luks
==========
/etc/fstab:
==========
proc /proc proc defaults
0 0
/dev/mapper/boulez-_root__crypt / ext4
noatime,errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=b3cbbc88-4911-42aa-ba25-dce6a6222ae7 /boot ext3 noatime
0 2
/dev/mapper/boulez-_home__crypt /home ext4 noatime
0 2
/dev/mapper/boulez-_usr__crypt /usr ext4 noatime
0 2
/dev/mapper/boulez-_var__crypt /var ext4 noatime
0 2
/dev/mapper/boulez-_swap__crypt none swap sw
0 0
==========
-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 19M Aug 17 16:54 /boot/initrd.img-4.0.0-1-amd64
-rw-r--r-- 1 root root 19M Sep 3 22:41 /boot/initrd.img-4.1.0-2-amd64
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-4.1.0-2-amd64 root=/dev/mapper/boulez-_root__crypt ro quiet atkbd.reset
-- resume
RESUME=/dev/mapper/boulez-_swap__crypt
-- /proc/filesystems
btrfs
ext3
ext2
ext4
fuseblk
-- lsmod
Module Size Used by
rfcomm 61440 14
fuse 86016 3
ctr 16384 2
ccm 20480 2
ipt_MASQUERADE 16384 1
nf_nat_masquerade_ipv4 16384 1 ipt_MASQUERADE
iptable_nat 16384 1
nf_nat_ipv4 16384 1 iptable_nat
xt_addrtype 16384 2
br_netfilter 24576 0
nf_nat 20480 2 nf_nat_ipv4,nf_nat_masquerade_ipv4
bridge 102400 1 br_netfilter
stp 16384 1 bridge
llc 16384 2 stp,bridge
dm_thin_pool 61440 1
dm_persistent_data 53248 1 dm_thin_pool
dm_bio_prison 16384 1 dm_thin_pool
libcrc32c 16384 1 dm_persistent_data
cpufreq_stats 16384 0
cpufreq_conservative 16384 0
cpufreq_userspace 16384 0
cpufreq_powersave 16384 0
bnep 20480 2
binfmt_misc 20480 1
pci_stub 16384 1
vboxpci 24576 0
vboxnetadp 28672 0
vboxnetflt 28672 0
vboxdrv 385024 3 vboxnetadp,vboxnetflt,vboxpci
ip6t_REJECT 16384 2
nf_reject_ipv6 16384 1 ip6t_REJECT
nf_log_ipv6 16384 3
nf_conntrack_ipv6 20480 1
nf_defrag_ipv6 36864 1 nf_conntrack_ipv6
ip6table_filter 16384 1
ip6_tables 28672 1 ip6table_filter
ipt_REJECT 16384 2
nf_reject_ipv4 16384 1 ipt_REJECT
xt_limit 16384 2
nf_log_ipv4 16384 3
nf_log_common 16384 2 nf_log_ipv4,nf_log_ipv6
xt_LOG 16384 6
xt_tcpudp 16384 32
nf_conntrack_ipv4 20480 3
nf_defrag_ipv4 16384 1 nf_conntrack_ipv4
xt_conntrack 16384 3
nf_conntrack 94208 6 nf_nat,nf_nat_ipv4,xt_conntrack,nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_conntrack_ipv6
iptable_filter 16384 1
ip_tables 28672 2 iptable_filter,iptable_nat
x_tables 28672 12 ip6table_filter,ip_tables,xt_tcpudp,ipt_MASQUERADE,xt_limit,xt_conntrack,xt_LOG,iptable_filter,ipt_REJECT,ip6_tables,xt_addrtype,ip6t_REJECT
qmi_wwan 24576 0
cdc_wdm 20480 2 qmi_wwan
usbnet 36864 1 qmi_wwan
mii 16384 1 usbnet
qcserial 20480 0
usb_wwan 20480 1 qcserial
uvcvideo 86016 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_core 40960 1 uvcvideo
v4l2_common 16384 1 videobuf2_core
videodev 131072 3 uvcvideo,v4l2_common,videobuf2_core
media 20480 2 uvcvideo,videodev
usbserial 40960 2 qcserial,usb_wwan
btusb 45056 0
btbcm 16384 1 btusb
btintel 16384 1 btusb
bluetooth 438272 34 bnep,btbcm,btusb,rfcomm,btintel
usblp 20480 0
joydev 20480 0
i915 1028096 7
iTCO_wdt 16384 0
iTCO_vendor_support 16384 1 iTCO_wdt
intel_powerclamp 16384 0
snd_hda_codec_hdmi 53248 1
snd_hda_codec_conexant 24576 1
snd_hda_codec_generic 65536 1 snd_hda_codec_conexant
coretemp 16384 0
snd_hda_intel 28672 3
arc4 16384 2
iwldvm 135168 0
mac80211 569344 1 iwldvm
snd_hda_controller 28672 1 snd_hda_intel
snd_hda_codec 94208 5 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hda_core 24576 5 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_codec_generic,snd_hda_codec,snd_hda_controller
snd_hwdep 16384 1 snd_hda_codec
iwlwifi 110592 1 iwldvm
snd_pcm 90112 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
cfg80211 458752 3 iwlwifi,mac80211,iwldvm
evdev 24576 30
kvm 425984 0
drm_kms_helper 102400 1 i915
drm 278528 4 i915,drm_kms_helper
i2c_algo_bit 16384 1 i915
mei_me 24576 0
sg 32768 0
snd_timer 28672 1 snd_pcm
psmouse 114688 0
lpc_ich 24576 0
serio_raw 16384 0
mfd_core 16384 1 lpc_ich
pcspkr 16384 0
intel_ips 20480 0
wmi 20480 0
mei 73728 1 mei_me
tpm_tis 20480 0
shpchp 32768 0
i2c_i801 20480 0
thinkpad_acpi 69632 1
nvram 16384 1 thinkpad_acpi
snd 69632 15 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,thinkpad_acpi
soundcore 16384 1 snd
rfkill 20480 6 cfg80211,thinkpad_acpi,bluetooth
tpm 32768 1 tpm_tis
battery 16384 0
acpi_cpufreq 20480 1
video 20480 1 i915
ac 16384 0
processor 28672 1 acpi_cpufreq
button 16384 1 i915
loop 28672 4
parport_pc 28672 0
ppdev 20480 0
lp 20480 0
parport 36864 3 lp,ppdev,parport_pc
autofs4 36864 2
ext4 499712 5
crc16 16384 2 ext4,bluetooth
mbcache 20480 1 ext4
jbd2 90112 1 ext4
btrfs 917504 0
xor 24576 1 btrfs
raid6_pq 106496 1 btrfs
ohci_hcd 45056 0
uhci_hcd 45056 0
sha256_ssse3 28672 8
sha256_generic 24576 1 sha256_ssse3
algif_skcipher 20480 0
af_alg 16384 1 algif_skcipher
uas 24576 0
usb_storage 61440 1 uas
dm_mirror 24576 0
dm_region_hash 20480 1 dm_mirror
dm_log 20480 2 dm_region_hash,dm_mirror
dm_snapshot 36864 0
dm_bufio 24576 2 dm_persistent_data,dm_snapshot
cbc 16384 0
dm_crypt 28672 5
dm_mod 98304 34 dm_log,dm_persistent_data,dm_mirror,dm_bufio,dm_crypt,dm_thin_pool,dm_snapshot
hid_generic 16384 0
usbhid 49152 0
hid 110592 2 hid_generic,usbhid
sr_mod 24576 0
cdrom 49152 1 sr_mod
sd_mod 40960 3
crct10dif_pclmul 16384 0
crc32_pclmul 16384 0
crc32c_intel 24576 2
ghash_clmulni_intel 16384 0
aesni_intel 172032 18
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 8 ghash_clmulni_intel,aesni_intel,ablk_helper
ahci 36864 2
libahci 28672 1 ahci
libata 200704 2 ahci,libahci
scsi_mod 200704 6 sg,uas,usb_storage,libata,sd_mod,sr_mod
ehci_pci 16384 0
ehci_hcd 77824 1 ehci_pci
e1000e 217088 0
usbcore 200704 17 uas,btusb,usblp,uhci_hcd,uvcvideo,qcserial,usb_storage,usbserial,ohci_hcd,ehci_hcd,ehci_pci,qmi_wwan,usbhid,usbnet,usb_wwan,cdc_wdm
ptp 20480 1 e1000e
usb_common 16384 1 usbcore
thermal 20480 0
pps_core 20480 1 ptp
thermal_sys 36864 4 video,intel_powerclamp,thermal,processor
-- /etc/initramfs-tools/modules
dm_crypt
dm_mod
crypto_blkcipher
cbc
dm_snapshot
dm_mirror
dm_log
-- /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
boulez-_home__crypt UUID=70967099-611f-4082-aad4-3d3e9966fad6 /etc/secretkey luks
boulez-_root__crypt UUID=b8806964-812e-4239-8914-60b1c33c0491 none luks
boulez-_swap__crypt UUID=d7b4dcc6-3d5d-408b-a5cf-60af0fe9260f none luks
boulez-_usr__crypt UUID=386fb30f-389d-4feb-9c59-352628c0de6b none luks
boulez-_var__crypt UUID=97d4e051-a1b8-4ecc-9dd3-5a69eeed4686 /etc/secretkey luks
-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:
/usr/share/initramfs-tools/hooks:
btrfs
busybox
cryptgnupg
cryptkeyctl
cryptopenct
cryptopensc
cryptpassdev
cryptroot
dmsetup
fsck
fuse
iscan_data
keymap
klibc
kmod
lvm2
ntfs_3g
resume
thermal
udev
zz-busybox
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.1.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages initramfs-tools depends on:
ii busybox-static [busybox] 1:1.22.0-15
ii cpio 2.11+dfsg-4.1
ii klibc-utils 2.0.4-2.1
ii kmod 21-1
ii module-init-tools 21-1
ii udev 225-1
Versions of packages initramfs-tools recommends:
ii busybox-static [busybox] 1:1.22.0-15
Versions of packages initramfs-tools suggests:
ii bash-completion 1:2.1-4.2
-- no debconf information
Reply to: