[pkg-cryptsetup-devel] Bug#732451: cryptsetup can't find blkid binary when launched in a dropbear shell

Colin Wetherbee cww at alumni.cmu.edu
Wed Dec 18 08:11:30 UTC 2013


Package: cryptsetup
Version: 2:1.4.3-4
Severity: normal

Dear Maintainer,

In order to decrypt partitions on boot via SSH, I installed dropbear and
busybox, following the instructions at the following URL.

http://blog.nguyenvq.com/blog/2011/09/13/remote-unlocking-luks-encrypted-lvm-using-dropbear-ssh-in-ubuntu/

After launching the 'cryptsetup' script from within the shell provided by
dropbear SSH, I received the following error message, and the boot partition
was not mounted:

    -sh: blkid: not found

The 'cryptsetup' script calls 'blkid' without a full directory
qualifier, but if I change the script to reference '/sbin/blkid'
specifically, the instructions work as expected, and my boot partition is
mounted properly.

My recommendation is to provide an absolute path for the location of the
'blkid' binary in the 'cryptsetup' script.

Please note the information provided below is from Debian testing (as of
2013-12-18) 64-bit, running in a VirtualBox VM.

Thanks.

Colin Wetherbee

-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.2.0-4-amd64 root=/dev/mapper/enctest-root ro initrd=/install/initrd.gz quiet

-- /etc/crypttab
sda5_crypt UUID=28f66d54-dbd6-42b9-b502-520e83d62aad none luks

-- /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>
/dev/mapper/enctest-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
UUID=c3d0b197-f8d1-4a16-91be-6136e1a305a0 /boot           ext2    defaults        0       2
/dev/mapper/enctest-swap_1 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0

-- lsmod
Module                  Size  Used by
ppdev                  12763  0 
bnep                   17567  2 
lp                     17149  0 
rfcomm                 33700  0 
bluetooth             119455  10 rfcomm,bnep
rfkill                 19012  2 bluetooth
uinput                 17440  1 
nfsd                  216170  2 
nfs                   308313  0 
nfs_acl                12511  2 nfs,nfsd
auth_rpcgss            37143  2 nfs,nfsd
fscache                36739  1 nfs
lockd                  67306  2 nfs,nfsd
sunrpc                173730  6 lockd,auth_rpcgss,nfs_acl,nfs,nfsd
ext2                   59231  1 
loop                   22641  0 
snd_intel8x0           30903  0 
snd_ac97_codec        106942  1 snd_intel8x0
snd_pcm                68083  2 snd_ac97_codec,snd_intel8x0
snd_page_alloc         13003  2 snd_pcm,snd_intel8x0
parport_pc             22364  0 
snd_timer              22917  1 snd_pcm
parport                31858  3 parport_pc,lp,ppdev
i2c_piix4              12536  0 
psmouse                69265  0 
ac                     12624  0 
i2c_core               23876  1 i2c_piix4
evdev                  17562  4 
joydev                 17266  0 
pcspkr                 12579  0 
serio_raw              12931  0 
battery                13146  0 
power_supply           13475  2 battery,ac
snd                    52889  4 snd_timer,snd_pcm,snd_ac97_codec,snd_intel8x0
soundcore              13065  1 snd
processor              28157  0 
button                 12937  0 
ac97_bus               12510  1 snd_ac97_codec
thermal_sys            18040  1 processor
ext4                  350763  1 
crc16                  12343  2 ext4,bluetooth
jbd2                   62115  1 ext4
mbcache                13114  2 ext4,ext2
cryptd                 14517  0 
aes_x86_64             16843  12 
aes_generic            33026  1 aes_x86_64
xts                    12645  6 
gf128mul               13048  1 xts
uhci_hcd               26865  0 
dm_crypt               22586  1 
dm_mod                 63645  10 dm_crypt
usbhid                 36418  0 
hid                    81328  1 usbhid
sg                     25874  0 
sr_mod                 21899  0 
sd_mod                 36136  3 
cdrom                  35401  1 sr_mod
crc_t10dif             12348  1 sd_mod
ata_generic            12479  0 
ahci                   24997  2 
ohci_hcd               26563  0 
libahci                22860  1 ahci
ehci_hcd               40215  0 
ata_piix               29535  0 
usbcore               128741  5 ehci_hcd,ohci_hcd,usbhid,uhci_hcd
e1000                  86156  0 
usb_common             12354  1 usbcore
libata                140630  4 ata_piix,libahci,ahci,ata_generic
scsi_mod              162269  4 libata,sd_mod,sr_mod,sg


-- System Information:
Debian Release: 7.2
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

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

Versions of packages cryptsetup depends on:
ii  cryptsetup-bin         2:1.4.3-4
ii  debconf [debconf-2.0]  1.5.49
ii  dmsetup                2:1.02.74-8
ii  libc6                  2.17-97

Versions of packages cryptsetup recommends:
ii  busybox                                 1:1.21.0-1
ii  console-setup                           1.88
ii  initramfs-tools [linux-initramfs-tool]  0.109.1
pn  kbd                                     <none>

Versions of packages cryptsetup suggests:
pn  dosfstools              <none>
ii  liblocale-gettext-perl  1.05-7+b1

-- debconf information:
  cryptsetup/prerm_active_mappings: true



More information about the pkg-cryptsetup-devel mailing list