[pkg-cryptsetup-devel] Bug#802972: Bug#802972: cryptsetup: Waiting few minutes during boot for cryptsetup asking for password

Jonas Meurer jonas at freesources.org
Fri Dec 25 12:02:31 UTC 2015


Hi Petr,

Am 25.10.2015 um 19:30 schrieb Petr Vorel:
> I have LVM on the top cryptsetup on my system. A week ago after upgrade my initramfs
> changed and now I have to wait few minutes at the beginning of the boot before cryptsetup
> asked for password to unlock partition. There might be some problem with dist-upgrade as
> at the beginning there were just some kernels affected. After proper run of
> update-initramfs all installed kernels are affected.
> 
> I have no idea what changed. Any idea, how I can debug problem?

It seems like the delay happens during initramfs stage. You can debug
the initramfs by adding 'debug' as a kernel option during boot. After
the boot process, the initramfs debug log can be found at
/run/initramfs/initramfs.debug. See [1] for details.

[1] https://wiki.debian.org/InitramfsDebug#Saving_debug_information

Even better would be to debug the cryptroot initramfs script itself,
which is responsible for unlocking dm-crypt devices during initramfs
stage. Debugging this script is a bit more complicated. Please follow
the steps described here:

https://wiki.debian.org/CryptsetupDebug#Debug_cryptroot_initramfs_script

Cheers
 jonas

> NOTE: These cmdline are from debug (normal boot doesn't have "single break=mount").
> I don't have software raid, although I have mdadm installed.
> 
> 
> Kind regards,
> Petr
> 
> -- Package-specific info:
> -- /proc/cmdline
> BOOT_IMAGE=/vmlinuz-4.3.0-rc5-amd64 root=/dev/mapper/t61-root ro single break=mount
> 
> -- /etc/crypttab
> sda2_crypt UUID=c524108a-b40f-49b4-8223-23e3441a7409 none luks
> 
> -- /etc/fstab
> # <file system> <mount point>   <type>  <options>       <dump>  <pass>
> proc            /proc           proc    defaults        0       0
> /dev/mapper/t61-root /          ext4    relatime,errors=remount-ro,commit=60 0       1
> 
> UUID=411fe373-ec79-45f7-90f2-e50be400c71d /boot           ext4    defaults        0       2
> 
> tmpfs     /tmp tmpfs     nodev,nosuid,size=512M,mode=1777    0    0
> 
> /dev/mapper/t61-home /home      ext4    defaults,relatime,commit=15        0       2
> 
> /dev/mapper/t61-swap none       swap    sw              0       0
> 
> /dev/sr0        /media/cdrom    udf,iso9660 user,noauto     0       0
> 
> 
> -- lsmod
> Module                  Size  Used by
> btusb                  45056  0
> btrtl                  16384  1 btusb
> btbcm                  16384  1 btusb
> btintel                16384  1 btusb
> bluetooth             503808  4 btbcm,btrtl,btusb,btintel
> iTCO_wdt               16384  0
> iTCO_vendor_support    16384  1 iTCO_wdt
> snd_hda_codec_analog    16384  1
> snd_hda_codec_generic    73728  1 snd_hda_codec_analog
> coretemp               16384  0
> psmouse               118784  0
> pcspkr                 16384  0
> serio_raw              16384  0
> i2c_i801               20480  0
> r852                   20480  0
> sg                     32768  0
> sm_common              20480  1 r852
> lpc_ich                24576  0
> mfd_core               16384  1 lpc_ich
> pcmcia                 61440  0
> arc4                   16384  2
> nand                   65536  2 r852,sm_common
> nand_ecc               16384  1 nand
> nand_bch               16384  1 nand
> bch                    20480  1 nand_bch
> nand_ids               16384  1 nand
> mtd                    53248  2 nand,sm_common
> r592                   20480  0
> snd_hda_intel          36864  0
> snd_hda_codec         131072  3 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec_analog
> memstick               20480  1 r592
> snd_hda_core           65536  4 snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_hda_codec_analog
> yenta_socket           45056  0
> snd_hwdep              16384  1 snd_hda_codec
> pcmcia_rsrc            20480  1 yenta_socket
> snd_pcm_oss            49152  0
> snd_mixer_oss          24576  1 snd_pcm_oss
> snd_pcm               102400  4 snd_pcm_oss,snd_hda_codec,snd_hda_intel,snd_hda_core
> snd_timer              32768  1 snd_pcm
> iwl4965                98304  0
> iwlegacy               73728  1 iwl4965
> pcmcia_core            24576  3 pcmcia,pcmcia_rsrc,yenta_socket
> mac80211              618496  2 iwl4965,iwlegacy
> thinkpad_acpi          77824  0
> nvram                  16384  1 thinkpad_acpi
> snd                    86016  10 snd_pcm_oss,snd_hwdep,snd_timer,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,thinkpad_acpi,snd_mixer_oss,snd_hda_codec_analog
> cfg80211              532480  3 iwl4965,iwlegacy,mac80211
> battery                16384  0
> ac                     16384  0
> tpm_tis                20480  0
> tpm                    40960  1 tpm_tis
> soundcore              16384  1 snd
> rfkill                 24576  4 cfg80211,thinkpad_acpi,bluetooth
> 8250_fintek            16384  0
> shpchp                 36864  0
> acpi_cpufreq           20480  1
> processor              36864  3 acpi_cpufreq
> evdev                  20480  14
> nouveau              1462272  1
> mxm_wmi                16384  1 nouveau
> wmi                    16384  2 mxm_wmi,nouveau
> video                  32768  2 thinkpad_acpi,nouveau
> button                 16384  1 nouveau
> ttm                    94208  1 nouveau
> drm_kms_helper        131072  1 nouveau
> drm                   348160  4 ttm,drm_kms_helper,nouveau
> i2c_algo_bit           16384  1 nouveau
> kvm_intel             163840  0
> kvm                   499712  1 kvm_intel
> loop                   28672  0
> firewire_sbp2          24576  0
> parport_pc             28672  0
> ppdev                  20480  0
> lp                     20480  0
> parport                49152  3 lp,ppdev,parport_pc
> autofs4                40960  2
> ext4                  552960  3
> mbcache                20480  1 ext4
> jbd2                  106496  1 ext4
> crc16                  16384  2 ext4,bluetooth
> crc32c_generic         16384  1
> btrfs                 933888  0
> ecb                    16384  0
> hmac                   16384  1
> drbg                   24576  1
> ansi_cprng             16384  0
> cbc                    16384  1
> algif_skcipher         20480  0
> af_alg                 16384  1 algif_skcipher
> ohci_hcd               49152  0
> sha512_ssse3           45056  0
> raid456                94208  0
> async_raid6_recov      20480  1 raid456
> async_memcpy           16384  2 raid456,async_raid6_recov
> async_pq               16384  2 raid456,async_raid6_recov
> async_xor              16384  3 async_pq,raid456,async_raid6_recov
> async_tx               16384  5 async_pq,raid456,async_xor,async_memcpy,async_raid6_recov
> xor                    24576  2 btrfs,async_xor
> raid6_pq              102400  4 async_pq,raid456,btrfs,async_raid6_recov
> raid1                  36864  0
> md_mod                131072  2 raid456,raid1
> sha512_generic         16384  1 sha512_ssse3
> sha256_generic         24576  3
> xts                    16384  0
> gf128mul               16384  1 xts
> aes_x86_64             20480  2
> dm_crypt               24576  1
> dm_mod                106496  12 dm_crypt
> hid_generic            16384  0
> usbhid                 49152  0
> hid                   114688  2 hid_generic,usbhid
> sr_mod                 24576  0
> cdrom                  57344  1 sr_mod
> sd_mod                 40960  3
> ata_generic            16384  0
> ata_piix               36864  2
> firewire_ohci          40960  0
> libata                233472  2 ata_generic,ata_piix
> scsi_mod              229376  5 sg,libata,sd_mod,sr_mod,firewire_sbp2
> sdhci_pci              24576  0
> sdhci                  40960  1 sdhci_pci
> firewire_core          61440  2 firewire_ohci,firewire_sbp2
> mmc_core              122880  2 sdhci,sdhci_pci
> crc_itu_t              16384  1 firewire_core
> thermal                20480  0
> uhci_hcd               45056  0
> ehci_pci               16384  0
> ehci_hcd               77824  1 ehci_pci
> usbcore               237568  6 btusb,uhci_hcd,ohci_hcd,ehci_hcd,ehci_pci,usbhid
> usb_common             16384  1 usbcore
> e1000e                229376  0
> ptp                    20480  1 e1000e
> pps_core               16384  1 ptp
> 
> 
> -- System Information:
> Debian Release: stretch/sid
>   APT prefers unstable
>   APT policy: (900, 'unstable'), (500, 'stable'), (500, 'oldstable'), (100, 'testing'), (50, 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 4.3.0-rc5-amd64 (SMP w/2 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=cs_CZ.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.57
> ii  dmsetup                2:1.02.104-1
> ii  libc6                  2.19-22
> 
> Versions of packages cryptsetup recommends:
> ii  busybox                                 1:1.22.0-15
> ii  console-setup                           1.133
> ii  initramfs-tools [linux-initramfs-tool]  0.120
> ii  kbd                                     1.15.5-2
> 
> Versions of packages cryptsetup suggests:
> ii  dosfstools              3.0.28-2
> ii  keyutils                1.5.9-8
> ii  liblocale-gettext-perl  1.07-1
> 
> -- debconf information:
>   cryptsetup/prerm_active_mappings: true
> 
> _______________________________________________
> pkg-cryptsetup-devel mailing list
> pkg-cryptsetup-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-cryptsetup-devel
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20151225/6416b72e/attachment.sig>


More information about the pkg-cryptsetup-devel mailing list