[pkg-cryptsetup-devel] Bug#755074: cryptsetup: Also, cryptsetup's boot-time script fails to mount a LUKS home filesystem

Kalle Sandström ksandstr at gmail.com
Wed Aug 27 12:05:24 UTC 2014


Package: cryptsetup
Version: 2:1.6.6-1
Followup-For: Bug #755074

Dear Maintainer,

In addition to the bug reported above, which I can confirm, cryptsetup's
boot-time scripts fail to mount the encrypted /home filesystem, defined below.
Instead a /dev/mapper/pigdog0-home_crypt_unformatted is left behind, and later
scripts (obviously) fail to fsck and mount /home from its correct device node.

The problem appeared with a recent (within the last two months) upgrade from
testing. The affected system is being kept systemd-free, if that matters.

Included fstab was redacted to omit encryption-related but non-cryptsetup
information.


-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.16.1+ root=/dev/mapper/pigdog0-root ro i915.i915_enable_rc6=7 i915.lvds_downclock=1 pcie_aspm=force cgroup_disable=memory zcache zcache.compressor=lz4 zswap.enabled=1 zswap.compressor=lz4 intel_pstate=disable quiet

-- /etc/crypttab
pigdog0-home_crypt /dev/mapper/pigdog0-home none luks,discard

swap0 /dev/mapper/pigdog0-swap0 /dev/urandom swap,discard,size=128
swap1 /dev/mapper/pigdog1-swap1 /dev/urandom swap,size=128

-- /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/mapper/pigdog0-root /               ext4    relatime,acl,discard,errors=remount-ro 0       1
UUID=ee743e23-fc63-49d2-a2ec-8125b264ca4f /boot	ext2	defaults	0	2
#UUID=764e5bd8-1ecc-4a8d-9e8f-17e130e5df0c /boot	ext2	defaults	0	2
/dev/mapper/pigdog0-home_crypt /home           ext4    relatime,acl,discard        0       2
/dev/mapper/pigdog0-usr /usr            ext4    relatime,acl,discard        0       2
/dev/mapper/pigdog0-local /usr/local      ext4    relatime,acl,discard        0       2
/dev/mapper/pigdog0-var /var            ext4    relatime,acl,discard        0       2
/dev/mapper/pigdog1-######	/######	ext4	defaults,acl,relatime	0	2

#/dev/pigdog0/ia32-testing	/srv/chroot/ia32-testing	ext4	defaults,acl,relatime,discard	0	2

/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/sdc1	/media/usbkey	vfat	user,flush,noauto,nosuid,nodev	0	0
/dev/mmcblk0p1	/media/sd	vfat	user,flush,noauto,nosuid,nodev	0	0

/dev/mapper/swap0 none            swap    sw,pri=1              0       0
/dev/mapper/swap1 none            swap    sw,pri=-1              0       0


#none	/tmp	tmpfs	defaults	0	0
none	/sys/kernel/debug	debugfs		defaults	0	0

/######.sh#/######/pigdog	/mnt/######	fuse	noauto,nosuid,nodev,rw	0	0

-- lsmod
Module                  Size  Used by
sha256_generic         16804  6 
algif_skcipher         17051  0 
af_alg                 12988  1 algif_skcipher
ctr                    12927  1 
ccm                    17534  1 
bnep                   17306  2 
snd_hrtimer            12604  1 
snd_seq                48841  1 
snd_seq_device         13132  1 snd_seq
cpufreq_userspace      12525  0 
cpufreq_conservative    14184  0 
cpufreq_powersave      12454  0 
cpufreq_stats          12782  0 
autofs4                27337  2 
binfmt_misc            12853  1 
pktcdvd                30855  0 
cdrom                  31102  1 pktcdvd
uinput                 17372  1 
rpcsec_gss_krb5        26051  0 
nfsd                  233580  2 
auth_rpcgss            46925  2 nfsd,rpcsec_gss_krb5
oid_registry           12419  1 auth_rpcgss
nfs_acl                12511  1 nfsd
nfs                   171079  0 
lockd                  66687  2 nfs,nfsd
fscache                45304  1 nfs
sunrpc                199722  8 nfs,nfsd,rpcsec_gss_krb5,auth_rpcgss,lockd,nfs_acl
uvcvideo               74806  0 
videobuf2_vmalloc      12816  1 uvcvideo
videobuf2_memops       12519  1 videobuf2_vmalloc
videobuf2_core         31328  1 uvcvideo
v4l2_common            12906  1 videobuf2_core
ecb                    12737  0 
videodev              118075  3 uvcvideo,v4l2_common,videobuf2_core
btusb                  25625  0 
bluetooth             271066  6 bnep,btusb
6lowpan_iphc           16588  1 bluetooth
ext2                   66512  1 
bbswitch               12878  0 
hdaps                  13623  0 
tp_smapi               23525  0 
thinkpad_ec            12813  2 hdaps,tp_smapi
loop                   26563  0 
firewire_sbp2          21744  0 
firewire_core          56665  1 firewire_sbp2
crc_itu_t              12347  1 firewire_core
fuse                   83350  3 
parport_pc             26300  0 
ppdev                  12686  0 
lp                     17074  0 
parport                35749  3 lp,ppdev,parport_pc
dm_crypt               22551  4 
iTCO_wdt               12831  0 
iTCO_vendor_support    12649  1 iTCO_wdt
joydev                 17063  0 
snd_hda_codec_conexant    17739  1 
snd_hda_codec_generic    58996  2 snd_hda_codec_conexant
x86_pkg_temp_thermal    12951  0 
intel_powerclamp       13062  0 
coretemp               12820  0 
kvm_intel             134977  0 
arc4                   12536  2 
kvm                   384054  1 kvm_intel
crc32_pclmul           12915  0 
crc32c_intel           21809  0 
ghash_clmulni_intel    12978  0 
iwldvm                126931  0 
aesni_intel           151423  13 
microcode              25726  0 
mac80211              482054  1 iwldvm
psmouse                90410  0 
iwlwifi                92061  1 iwldvm
sdhci_pci              18000  0 
sdhci                  30944  1 sdhci_pci
sg                     25836  0 
mmc_core               90044  2 sdhci,sdhci_pci
pcspkr                 12595  0 
xhci_hcd              116022  0 
cfg80211              421394  3 iwlwifi,mac80211,iwldvm
lpc_ich                20768  0 
i2c_i801               16965  0 
mfd_core               12601  1 lpc_ich
wmi                    17339  0 
i915                  820128  2 
snd_hda_intel          26327  1 
snd_hda_controller     26457  1 snd_hda_intel
i2c_algo_bit           12744  1 i915
ehci_pci               12472  0 
snd_hda_codec         100360  4 snd_hda_codec_conexant,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep              13148  1 snd_hda_codec
thinkpad_acpi          65023  2 
ehci_hcd               48510  1 ehci_pci
drm_kms_helper         41023  1 i915
tpm_tis                17134  0 
nvram                  13034  1 thinkpad_acpi
snd_pcm                84507  3 snd_hda_codec,snd_hda_intel,snd_hda_controller
tpm                    27371  1 tpm_tis
battery                13356  0 
ac                     12715  0 
rfkill                 18867  5 cfg80211,thinkpad_acpi,bluetooth
e1000e                166341  0 
snd_timer              26614  3 snd_hrtimer,snd_pcm,snd_seq
drm                   241661  4 i915,drm_kms_helper
usbcore               170611  5 btusb,uvcvideo,ehci_hcd,ehci_pci,xhci_hcd
snd                    61148  15 snd_hwdep,snd_timer,snd_hda_codec_conexant,snd_pcm,snd_seq,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,thinkpad_acpi,snd_seq_device
ptp                    17692  1 e1000e
soundcore              13031  2 snd,snd_hda_codec
pps_core               13129  1 ptp
usb_common             12440  1 usbcore
acpi_cpufreq           13055  1 
shpchp                 31114  0 
evdev                  21544  23 
processor              28021  1 acpi_cpufreq
ext4                  469198  7 
crc16                  12343  2 ext4,bluetooth
mbcache                17171  2 ext2,ext4
jbd2                   82417  1 ext4
dm_mod                 85292  41 dm_crypt
md_mod                103617  0 
sd_mod                 44356  5 
crc_t10dif             12431  1 sd_mod
crct10dif_generic      12581  0 
ahci                   25099  4 
crct10dif_pclmul       13387  1 
crct10dif_common       12356  3 crct10dif_pclmul,crct10dif_generic,crc_t10dif
libahci                27158  1 ahci
libata                164746  2 ahci,libahci
scsi_mod              174758  4 sg,libata,sd_mod,firewire_sbp2
thermal                17559  0 


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

Kernel: Linux 3.16.1+ (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cryptsetup depends on:
ii  cryptsetup-bin         2:1.6.6-1
ii  debconf [debconf-2.0]  1.5.53
ii  dmsetup                2:1.02.88-1
ii  libc6                  2.19-9

Versions of packages cryptsetup recommends:
ii  busybox                                 1:1.22.0-8
ii  console-setup                           1.111
ii  initramfs-tools [linux-initramfs-tool]  0.115
ii  kbd                                     1.15.5-1

Versions of packages cryptsetup suggests:
ii  dosfstools              3.0.26-3
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