[pkg-cryptsetup-devel] Bug#722509: cryptsetup: crypttab/cryptdisks_start does not recognize tcrypt and tcrypt-system. Reports bad variable name

Claudio Moretti flyingstar16 at gmail.com
Wed Sep 11 21:27:12 UTC 2013


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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear Maintainer,

I am trying to unlock and mount, at boot time, a truecrypt (AES)
partition.

Since cryptsetup v1.6.0, support was added for unlocking truecrypt
(normal and system-encrypted) partitions and, using cryptsetup from CLI,
I am able to unlock said partition.

My entry in /etc/crypttab reads

> truecrypt /dev/sda /etc/tcrypt.key tcrypt-system

And should unlock the disk. Instead, I am receiving this error (manually
generated invoking 'cryptdisks_start truecrypt' from root)

> [....] Starting crypto disk.../usr/sbin/cryptdisks_start: 1: export:
> CRYPTTAB_OPTION_tcrypt-system: bad variable name

Installing cryptsetup v1.7.0-git from directly compiled sources did not
solve the problem.

A current, possible workaround is to invoke cryptsetup from
/etc/rc.local followed by mount -a (if there are the correspondent fstab
entries) or by a series of 'mount' commands, specific to the unlocked
disk.

This should not be necessary, though; can this error be fixed?

(Also, unrelated, cryptsetup 1.6.2 is available, so this could be fixed
when updating; 1.6.1 has some issues with handling truecrypt devices,
which, to my understanding, were fixed in 1.6.2)

Tnanks,

Claudio Moretti


- -- Package-specific info:
- -- /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.10-2-amd64 root=UUID=9ca591a4-1e0d-4057-a9d0-cbbbdc4b9dfb ro quiet

- -- /etc/crypttab
sda3_crypt UUID=c98d85cc-213c-4f21-ba91-71c90f3d2ae5 none luks
sda4_crypt UUID=59e0cb59-3bfd-44ec-9077-b0d953f927e3 /etc/sda4.key luks
truecrypt /dev/sda /etc/tcrypt.key tcrypt-system

- -- /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/sda3_crypt /               ext4    errors=remount-ro,acl,user_xattr 0       1
# /boot was on /dev/sda2 during installation
UUID=feacb7ce-366e-45bf-9c7d-3490f89a8957 /boot           ext2    defaults        0       2
# Home filesystem
/dev/mapper/sda4_crypt	/home	ext4	defaults	0	2
# Windows 7
#/dev/mapper/truecrypt	/media/disk	ntfs-3g	rw,uid=1000	0	0
# Windows 7 folders
#/media/disk/Users/Claudio/Videos/ /home/claudio/Videos/ none bind 0     0
#/media/disk/Users/Claudio/Music/ /home/claudio/Music/ none bind 0     0
#/media/disk/Users/Claudio/Desktop/Uni/ /home/claudio/Desktop/Uni/ none bind 0     0
# Others
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
#/dev/sdb1       /media/usb0     auto    rw,user,noauto  0       0
#/dev/sdc1       /media/usb1     auto    rw,user,noauto  0       0
#/dev/sdc2       /media/usb2     auto    rw,user,noauto  0       0

- -- lsmod
Module                  Size  Used by
blowfish_generic       12464  0 
blowfish_x86_64        21132  0 
blowfish_common        16487  2 blowfish_generic,blowfish_x86_64
ecb                    12737  0 
des_generic            20851  0 
cast5_generic          20813  0 
cast_common            12313  1 cast5_generic
cbc                    12696  0 
twofish_generic        16569  0 
twofish_avx_x86_64     46079  0 
twofish_x86_64_3way    25556  1 twofish_avx_x86_64
twofish_x86_64         12541  2 twofish_avx_x86_64,twofish_x86_64_3way
twofish_common         20585  4 twofish_generic,twofish_avx_x86_64,twofish_x86_64_3way,twofish_x86_64
serpent_avx_x86_64     46241  0 
serpent_sse2_x86_64    50185  0 
serpent_generic        25044  2 serpent_sse2_x86_64,serpent_avx_x86_64
xts                    12722  2 serpent_sse2_x86_64,twofish_x86_64_3way
algif_skcipher         13118  0 
af_alg                 12988  1 algif_skcipher
ip6table_filter        12540  0 
ip6_tables             22050  1 ip6table_filter
iptable_filter         12536  0 
ip_tables              22036  1 iptable_filter
ebtable_nat            12580  0 
ebtables               26253  1 ebtable_nat
x_tables               19041  5 ip6table_filter,ip_tables,iptable_filter,ebtables,ip6_tables
parport_pc             22409  0 
bnep                   17535  2 
ppdev                  12763  0 
rfcomm                 33471  0 
lp                     13025  0 
parport                31901  3 lp,ppdev,parport_pc
bluetooth             170002  10 bnep,rfcomm
cpufreq_userspace      12576  0 
cpufreq_stats          12866  0 
cpufreq_conservative    14184  0 
cpufreq_powersave      12454  0 
bbswitch               12866  0 
binfmt_misc            12925  1 
uinput                 17439  1 
ext2                   59601  1 
loop                   22869  0 
fuse                   67503  3 
snd_hda_codec_hdmi     31720  1 
snd_hda_codec_realtek    32712  1 
iTCO_wdt               12831  0 
iTCO_vendor_support    12704  1 iTCO_wdt
joydev                 17278  0 
uvcvideo               66788  0 
videobuf2_vmalloc      12848  1 uvcvideo
videobuf2_memops       12519  1 videobuf2_vmalloc
videobuf2_core         31098  1 uvcvideo
videodev               92407  2 uvcvideo,videobuf2_core
arc4                   12543  2 
snd_hda_intel          35718  3 
coretemp               12898  0 
snd_hda_codec         122850  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
kvm_intel             123583  0 
media                  18240  2 uvcvideo,videodev
lpc_ich                16757  0 
iwldvm                111931  0 
snd_hwdep              13189  1 snd_hda_codec
kvm                   301458  1 kvm_intel
snd_pcm_oss            41175  0 
snd_mixer_oss          18034  1 snd_pcm_oss
snd_pcm                68525  4 snd_pcm_oss,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
i915                  494628  3 
snd_page_alloc         13018  2 snd_pcm,snd_hda_intel
snd_seq_midi           12848  0 
mac80211              358182  1 iwldvm
dell_wmi               12477  0 
cdc_ether              12564  0 
snd_seq_midi_event     13316  1 snd_seq_midi
sparse_keymap          12760  1 dell_wmi
drm_kms_helper         31837  1 i915
snd_rawmidi            23040  1 snd_seq_midi
drm                   211856  4 i915,drm_kms_helper
i2c_algo_bit           12841  1 i915
mei_me                 13568  0 
mfd_core               12601  1 lpc_ich
i2c_i801               17045  0 
i2c_core               24353  6 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,videodev
snd_seq                45186  2 snd_seq_midi_event,snd_seq_midi
iwlwifi                73295  1 iwldvm
cfg80211              319971  3 iwlwifi,mac80211,iwldvm
snd_seq_device         13176  3 snd_seq,snd_rawmidi,snd_seq_midi
usbnet                 22817  1 cdc_ether
pcspkr                 12632  0 
dell_laptop            16779  0 
psmouse                74832  0 
serio_raw              12940  0 
mperf                  12453  0 
processor              28526  0 
mei                    45886  1 mei_me
wmi                    13243  1 dell_wmi
rfkill                 19242  4 cfg80211,bluetooth
snd_timer              22773  2 snd_pcm,snd_seq
snd                    53068  18 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
mii                    12675  1 usbnet
dcdbas                 13307  1 dell_laptop
evdev                  17611  24 
cdc_wdm                17511  0 
cdc_acm                22246  0 
ac                     12668  0 
video                  17792  1 i915
battery                13101  0 
soundcore              13026  1 snd
microcode              30413  0 
button                 12944  1 i915
ext4                  381419  2 
crc16                  12343  2 ext4,bluetooth
jbd2                   76205  1 ext4
mbcache                13082  2 ext2,ext4
sha256_generic         16804  4 
dm_crypt               18457  3 
dm_mod                 64008  7 dm_crypt
hid_generic            12393  0 
usbhid                 40964  0 
hid                    81894  2 hid_generic,usbhid
sg                     26095  0 
sr_mod                 21988  0 
sd_mod                 40541  5 
cdrom                  35212  1 sr_mod
crc_t10dif             12348  1 sd_mod
crc32c_intel           21850  0 
ghash_clmulni_intel    13062  0 
ahci                   25148  4 
libahci                23136  1 ahci
aesni_intel            50895  8 
aes_x86_64             16719  1 aesni_intel
ablk_helper            12572  4 serpent_sse2_x86_64,aesni_intel,serpent_avx_x86_64,twofish_avx_x86_64
cryptd                 14560  6 ghash_clmulni_intel,aesni_intel,ablk_helper
lrw                    12871  5 serpent_sse2_x86_64,aesni_intel,serpent_avx_x86_64,twofish_avx_x86_64,twofish_x86_64_3way
gf128mul               13047  2 lrw,xts
glue_helper            12768  5 serpent_sse2_x86_64,aesni_intel,serpent_avx_x86_64,twofish_avx_x86_64,twofish_x86_64_3way
xhci_hcd               78280  0 
libata                141969  2 ahci,libahci
ehci_pci               12472  0 
scsi_mod              158249  4 sg,libata,sd_mod,sr_mod
ehci_hcd               40590  1 ehci_pci
r8168                 243606  0 
usbcore               134993  9 uvcvideo,ehci_hcd,ehci_pci,usbhid,usbnet,cdc_acm,cdc_wdm,xhci_hcd,cdc_ether
usb_common             12440  1 usbcore
thermal                17468  0 
thermal_sys            23137  3 video,thermal,processor


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

Kernel: Linux 3.10-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

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

Versions of packages cryptsetup recommends:
ii  busybox                                 1:1.20.0-9
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+b2

- -- debconf information:
  cryptsetup/prerm_active_mappings: true

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iEYEARECAAYFAlIw4C0ACgkQZ0Gi6TDJB+ceZQCdEDMbhQP4NJt0UjfVgn0xVeKJ
nVIAoLpTZ+4cL13UWFUh1zntTzS4iuqM
=dHzC
-----END PGP SIGNATURE-----



More information about the pkg-cryptsetup-devel mailing list