[pkg-cryptsetup-devel] Bug#720515: initramfs hook stumbles upon doublequotes in UUID spec

Eduard Bloch blade at debian.org
Thu Aug 22 21:22:27 UTC 2013


Package: cryptsetup
Version: 2:1.6.1-1
Severity: normal


Repro:

Call blkid

Copy and paste the UUID="xxxxx" string into /etc/crypttab 
Update initramfs (update-initramfs -u)

Result: boot failure. Initramfs says "Beginning waiting for crypto
devices..." and a bunch of event messages appear but the password prompt
does not appear.

Solution: Remove doublequotes from the mentioned example. Totally
reproducible here, after removing the quotes (to be UUID=xxxx in
crypttab) and updateing initrd, it works normal.

The ugly side is that there is simply no warning mentioning this
problem, and that's the first time I see something failing in such a
way. mount accepts double quotes just fine.

Regards,
Eduard.

-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.10.0 root=UUID=5df203d7-fe19-44e6-87e9-3228b863f54a ro resume=/dev/sda2 reboot=acpi no_console_suspend init=/bin/systemd

-- /etc/crypttab
# <target name>	<source device>		<key file>	<options>
#xroot /dev/sdb2 none luks,discard
xroot UUID=4047a384-74d1-465d-9e1b-536f40ed73d2 none luks,discard

-- lsmod
Module                  Size  Used by
snd_hrtimer            12604  1 
cpufreq_powersave      12454  0 
pci_stub               12429  1 
cpufreq_conservative    14160  0 
cpufreq_userspace      12576  0 
vboxpci                19094  0 
cpufreq_stats          12866  0 
nfsd                  187504  1 
binfmt_misc            12882  1 
auth_rpcgss            38888  1 nfsd
oid_registry           12419  1 auth_rpcgss
nfs_acl                12511  1 nfsd
lockd                  55453  1 nfsd
uinput                 17453  1 
sunrpc                150589  4 nfsd,auth_rpcgss,lockd,nfs_acl
ib_iser                31830  0 
libiscsi               36000  1 ib_iser
scsi_transport_iscsi    47796  3 ib_iser,libiscsi
rdma_cm                31823  1 ib_iser
ib_addr                12958  1 rdma_cm
iw_cm                  13134  1 rdma_cm
ib_cm                  31303  1 rdma_cm
ib_sa                  27141  2 rdma_cm,ib_cm
ib_mad                 36359  2 ib_cm,ib_sa
ib_core                48280  6 rdma_cm,ib_cm,ib_sa,iw_cm,ib_mad,ib_iser
joydev                 17107  0 
snd_hda_codec_hdmi     31788  1 
snd_hda_codec_realtek    36763  1 
k10temp                12664  0 
pcspkr                 12595  0 
serio_raw              12894  0 
i2c_piix4              12623  0 
snd_hda_intel          30764  0 
snd_hda_codec         113698  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep              13189  1 snd_hda_codec
wmi                    13243  0 
button                 12944  0 
vhost_net              27520  0 
tun                    22447  1 vhost_net
macvtap                17638  1 vhost_net
w83627ehf              35519  0 
macvlan                17942  1 macvtap
hwmon_vid              12388  1 w83627ehf
vboxnetadp             25443  0 
vboxnetflt             23697  0 
kvm_amd                47428  0 
vboxdrv               213151  3 vboxnetadp,vboxnetflt,vboxpci
kvm                   222006  1 kvm_amd
k8temp                 12711  0 
nf_conntrack_irc       12427  0 
nf_conntrack_ftp       12651  0 
nf_conntrack           58815  2 nf_conntrack_ftp,nf_conntrack_irc
acpi_cpufreq           13158  0 
mperf                  12411  1 acpi_cpufreq
processor              28326  1 acpi_cpufreq
thermal_sys            23094  1 processor
snd_pcm_oss            36968  0 
snd_pcm                68365  4 snd_pcm_oss,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc         13018  2 snd_pcm,snd_hda_intel
snd_mixer_oss          18037  1 snd_pcm_oss
snd_seq_midi           12848  0 
snd_seq_midi_event     13316  1 snd_seq_midi
snd_rawmidi            22870  1 snd_seq_midi
snd_seq                45013  3 snd_seq_midi_event,snd_seq_midi
snd_timer              22596  3 snd_hrtimer,snd_pcm,snd_seq
snd_seq_device         13176  3 snd_seq,snd_rawmidi,snd_seq_midi
snd                    52903  13 snd_hda_codec_realtek,snd_pcm_oss,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_mixer_oss
soundcore              13026  1 snd
evdev                  17485  35 
psmouse                74711  0 
fuse                   66995  7 
ecryptfs               72595  0 
loop                   22830  0 
autofs4                27613  2 
ext4                  272633  2 
crc16                  12343  1 ext4
jbd2                   57084  1 ext4
mbcache                13082  1 ext4
xts                    12679  1 
gf128mul               13047  1 xts
dm_crypt               18355  1 
md_mod                 92201  0 
hid_microsoft          12634  0 
sd_mod                 40550  6 
crc_t10dif             12348  1 sd_mod
dm_mirror              17734  0 
dm_region_hash         13455  1 dm_mirror
dm_log                 13520  2 dm_region_hash,dm_mirror
dm_mod                 63799  5 dm_log,dm_mirror,dm_crypt
hid_generic            12393  0 
uhci_hcd               26854  0 
xhci_hcd               78101  0 
radeonfb               61185  0 
fb_ddc                 12349  1 radeonfb
sg                     26001  0 
sr_mod                 21988  0 
cdrom                  35173  1 sr_mod
ata_generic            12490  0 
usbhid                 40811  0 
hid                    81782  3 hid_generic,hid_microsoft,usbhid
usb_storage            47977  0 
radeon                680990  2 
firewire_ohci          31757  0 
drm_kms_helper         31839  1 radeon
ahci                   25096  5 
pata_atiixp            12838  0 
firewire_core          48789  1 firewire_ohci
libahci                23013  1 ahci
crc_itu_t              12347  1 firewire_core
ttm                    54095  1 radeon
microcode              25941  0 
drm                   198660  4 ttm,drm_kms_helper,radeon
i2c_algo_bit           12841  2 radeonfb,radeon
i2c_core               24316  7 drm,i2c_piix4,drm_kms_helper,radeonfb,i2c_algo_bit,fb_ddc,radeon
r8169                  52781  0 
mii                    12675  1 r8169
libata                141743  4 ahci,libahci,ata_generic,pata_atiixp
ehci_pci               12472  0 
ohci_hcd               26433  0 
scsi_mod              132512  8 sg,scsi_transport_iscsi,usb_storage,libata,sd_mod,sr_mod,ib_iser,libiscsi
ehci_hcd               40412  1 ehci_pci
usbcore               134370  7 uhci_hcd,usb_storage,ohci_hcd,ehci_hcd,ehci_pci,usbhid,xhci_hcd
usb_common             12440  1 usbcore


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10.0 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cryptsetup depends on:
ii  cryptsetup-bin         2:1.6.1-1
ii  debconf [debconf-2.0]  1.5.50
ii  dmsetup                2:1.02.77-5
ii  libc6                  2.17-92
ii  sysv-rc                2.88dsf-43

Versions of packages cryptsetup recommends:
ii  busybox                                 1:1.20.0-8.1
ii  console-setup                           1.95
ii  initramfs-tools [linux-initramfs-tool]  0.113
ii  kbd                                     1.15.5-1

Versions of packages cryptsetup suggests:
ii  dosfstools              3.0.16-2
ii  liblocale-gettext-perl  1.05-7+b1

-- debconf information excluded

-- 
* Greek0 schaut sich mal die #-hp an, wie man fortues submittet..
<HE> Getty: Garnicht. Und das ist gut so.
* Greek0 schenkt HE eine Broschüre: "Nickname-Completion für Anfänger"



More information about the pkg-cryptsetup-devel mailing list