[pkg-cryptsetup-devel] Bug#801563: cryptsetup: if I do not enter unlocking password during initialization at a time, systemd can not boot

Jayson Willson jaysonwillson245 at gmail.com
Mon Oct 12 05:42:48 UTC 2015


Package: cryptsetup
Version: 2:1.6.6-5
Severity: important

I have Debian 8.2, systemd 215-17, cryptsetup 1.6.6-5 and the following
partitioning structure:
NAME                       MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                          8:0    0 111,8G  0 disk
├─sda1                       8:1    0   200M  0 part  /boot/efi
├─sda2                       8:2    0    60G  0 part
│ └─local--vg-debian--root 254:0    0    30G  0 lvm   /
├─sda3                       8:3    0   300M  0 part
├─sda4                       8:4    0   100M  0 part
├─sda5                       8:5    0   128M  0 part
└─sda6                       8:6    0  51,1G  0 part
sdb                          8:16   0   1,8T  0 disk
└─sdb1                       8:17   0   1,5T  0 part
  └─local--vg-home         254:1    0  1000G  0 lvm
    └─home_decrypt         254:2    0  1000G  0 crypt /home

I.e. I have root and /home inside lvm, and /home is encrypted.
Here is my crypttab:

home_decrypt /dev/local-vg/home none luks

During boot time I am prompted for password to decrypt /home, and if it takes
me too long time to enter it (for example, if I go afk), systemd says:
"Welcome to emergency mode! After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" to try again to
boot into default mode."
But after it I am not prompted for root login/pass, but instead I am prompted
for "/home" decryption password.
If I enter it, initialization continues, but systemd only reaches targets
"System initialization" and "Basic System". These stages complete successfully
(no errors), but I can not login, because there is no prompt for login. Ctrl+C,
Ctrl+D do not help, there is nothing on other ttys. Thus there is only one way
for me: reboot.



-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 root=/dev/mapper/local--vg-debian--root ro quiet

-- /etc/crypttab
home_decrypt /dev/local-vg/home none luks

-- /etc/fstab
/dev/local-vg/debian-root / ext4 defaults,relatime,discard 0 1
/dev/mapper/home_decrypt /home ext4 defaults,relatime 0 0
/dev/sda1 /boot/efi vfat defaults 0 0

-- lsmod
Module                  Size  Used by
xt_multiport           12518  1 
iptable_filter         12536  1 
ip_tables              26011  1 iptable_filter
x_tables               27111  3 ip_tables,xt_multiport,iptable_filter
cfg80211              405538  0 
rfkill                 18867  1 cfg80211
dm_crypt               22595  1 
algif_skcipher         13008  0 
af_alg                 12988  1 algif_skcipher
joydev                 17063  0 
hid_logitech_dj        17192  0 
hid_generic            12393  0 
snd_usb_audio         135354  3 
usbhid                 44460  0 
snd_usbmidi_lib        23388  1 snd_usb_audio
snd_rawmidi            26806  1 snd_usbmidi_lib
snd_seq_device         13132  1 snd_rawmidi
snd_hda_codec_hdmi     45118  2 
nls_utf8               12456  1 
nls_cp437              16553  1 
vfat                   17135  1 
fat                    61986  1 vfat
x86_pkg_temp_thermal    12951  0 
intel_powerclamp       17159  0 
intel_rapl             17356  0 
coretemp               12820  0 
kvm_intel             139116  0 
kvm                   388635  1 kvm_intel
crc32_pclmul           12915  0 
ghash_clmulni_intel    12978  0 
aesni_intel           151423  2 
evdev                  17445  11 
snd_hda_codec_realtek    67127  1 
snd_hda_codec_generic    63181  1 snd_hda_codec_realtek
aes_x86_64             16719  1 aesni_intel
lrw                    12757  1 aesni_intel
efi_pstore             12805  1 
nouveau              1122419  3 
mei_me                 17941  0 
gf128mul               12970  1 lrw
glue_helper            12695  1 aesni_intel
mei                    74977  1 mei_me
ablk_helper            12572  1 aesni_intel
i915                  837138  4 
cryptd                 14516  4 ghash_clmulni_intel,aesni_intel,ablk_helper
mxm_wmi                12515  1 nouveau
ttm                    77862  1 nouveau
psmouse                99249  0 
pcspkr                 12595  0 
drm_kms_helper         49210  2 i915,nouveau
snd_hda_intel          26327  3 
serio_raw              12849  0 
efivars                17257  1 efi_pstore
snd_hda_controller     26646  1 snd_hda_intel
drm                   249955  8 ttm,i915,drm_kms_helper,nouveau
snd_hda_codec         104463  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep              13148  2 snd_usb_audio,snd_hda_codec
i2c_algo_bit           12751  2 i915,nouveau
shpchp                 31121  0 
snd_soc_rt5640         82832  0 
snd_soc_rl6231         12442  1 snd_soc_rt5640
snd_soc_core          147254  1 snd_soc_rt5640
snd_compress           17197  1 snd_soc_core
snd_soc_sst_acpi       12559  0 
snd_pcm                88662  8 snd_soc_rt5640,snd_usb_audio,snd_soc_core,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
battery                13356  0 
snd_timer              26614  2 snd_pcm
snd                    65244  24 snd_hda_codec_realtek,snd_usb_audio,snd_soc_core,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,snd_compress
soundcore              13026  2 snd,snd_hda_codec
regmap_i2c             12783  1 snd_soc_rt5640
wmi                    17339  2 mxm_wmi,nouveau
video                  18096  2 i915,nouveau
i2c_designware_platform    12645  0 
i2c_designware_core    12813  1 i2c_designware_platform
processor              28221  0 
acpi_pad               21165  0 
button                 12944  2 i915,nouveau
fuse                   83350  3 
autofs4                35529  2 
ext4                  473802  2 
crc16                  12343  1 ext4
mbcache                17171  1 ext4
jbd2                   82413  1 ext4
dm_mod                 89405  9 dm_crypt
sg                     29973  0 
sd_mod                 44356  5 
crc_t10dif             12431  1 sd_mod
crct10dif_generic      12581  0 
ahci                   33291  3 
libahci                27158  1 ahci
crct10dif_pclmul       13387  1 
crct10dif_common       12356  3 crct10dif_pclmul,crct10dif_generic,crc_t10dif
crc32c_intel           21809  0 
ehci_pci               12512  0 
libata                177457  2 ahci,libahci
xhci_hcd              148881  0 
ehci_hcd               69837  1 ehci_pci
scsi_mod              191405  3 sg,libata,sd_mod
e1000e                212128  0 
usbcore               195340  6 snd_usb_audio,snd_usbmidi_lib,ehci_hcd,ehci_pci,usbhid,xhci_hcd
ptp                    17692  1 e1000e
pps_core               17225  1 ptp
usb_common             12440  1 usbcore
fan                    12681  0 
thermal                17559  0 
thermal_sys            27642  6 fan,video,intel_powerclamp,thermal,processor,x86_pkg_temp_thermal
sdhci_acpi             12810  0 
sdhci                  35153  1 sdhci_acpi
mmc_core              102374  2 sdhci,sdhci_acpi
i2c_hid                17410  0 
hid                   102264  4 i2c_hid,hid_generic,usbhid,hid_logitech_dj
i2c_core               46012  9 drm,i915,snd_soc_rt5640,i2c_hid,i2c_designware_platform,regmap_i2c,drm_kms_helper,i2c_algo_bit,nouveau


-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

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

Versions of packages cryptsetup depends on:
ii  cryptsetup-bin         2:1.6.6-5
ii  debconf [debconf-2.0]  1.5.56
ii  dmsetup                2:1.02.90-2.2
ii  libc6                  2.19-18+deb8u1

Versions of packages cryptsetup recommends:
ii  busybox                                 1:1.22.0-9+deb8u1
ii  console-setup                           1.123
ii  initramfs-tools [linux-initramfs-tool]  0.120
ii  kbd                                     1.15.5-2

Versions of packages cryptsetup suggests:
ii  dosfstools              3.0.27-1
pn  keyutils                <none>
ii  liblocale-gettext-perl  1.05-8+b1

-- debconf information:
  cryptsetup/prerm_active_mappings: true



More information about the pkg-cryptsetup-devel mailing list