reassign 735496 cryptsetup stop On Wed, Jan 15, 2014 at 07:45:06PM +0000, fdupoux wrote: > Package: initramfs-tools > Version: 0.115~bpo70+1 > Severity: normal > > I am using wheezy mostyle stable and also backports packages (such as > initramfs-tools) > I have multiple volumes encrypted using dm_crypt (3 LVM Physical Volumes) > using > the same passphrase > I do not want to type the passphrase three times hence I am using the > following > option in /etc/crypttab > "luks,keyscript=decrypt_keyctl" > > The problem is update-initramfs fails because /bin/keyctl is required but it > is > not installed. > It works after I installed keyutils but I had to debug the script to figure > out > what had to be installed. > A package dependency should make sure this program is already installed to > avoid this problem. > > # cat /etc/crypttab > luks-0d020ecb-9fae-40fb-9ddf-8a75c8830d9c UUID=0d020ecb-9fae-40fb-9ddf- > 8a75c8830d9c none luks,keyscript=decrypt_keyctl > luks-182a31c7-38da-4c7f-9bf6-3568c0dbf1d4 UUID=182a31c7-38da-4c7f- > 9bf6-3568c0dbf1d4 none luks,keyscript=decrypt_keyctl > luks-d1c60f39-a178-46f9-824d-6353b97158c3 UUID=d1c60f39-a178-46f9-824d- > 6353b97158c3 none luks,keyscript=decrypt_keyctl > > # cat /etc/debian_version > 7.3 > > The main "update-initramfs" command fails: > > # update-initramfs -u -k all > update-initramfs: Generating /boot/initrd.img-3.2.0-4-amd64 > E: /usr/share/initramfs-tools/hooks/cryptkeyctl failed with return 1. > update-initramfs: failed for /boot/initrd.img-3.2.0-4-amd64 with 1. > > The internal commands which fails: > > # mkinitramfs -o /boot/initrd.img-3.2.0-4-amd64.new 3.2.0-4-amd64 > E: /usr/share/initramfs-tools/hooks/cryptkeyctl failed with return 1.
dpkg -S /usr/share/initramfs-tools/hooks/cryptkeyctl would tell, which package that files belongs too, hence reassigned. > # bash -x /usr/share/initramfs-tools/hooks/cryptkeyctl > + set -e > + PREREQ=cryptroot > + case $1 in > + . /usr/share/initramfs-tools/hook-functions > + '[' '!' -x /lib/cryptsetup/scripts/decrypt_keyctl ']' > + copy_exec /bin/keyctl > + local src target x nonoptlib > + local libname dirname > + src=/bin/keyctl > + target=/bin/keyctl > + '[' -f /bin/keyctl ']' > + return 1 > > The missing program is /bin/keyctl: > > # ls -lh /bin/keyctl > ls: cannot access /bin/keyctl: No such file or directory > > The solution is to install the missing package: > > # apt-get install keyutils > Reading package lists... Done > Building dependency tree > Reading state information... Done > The following NEW packages will be installed: > keyutils > 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. > Need to get 36.2 kB of archives. > After this operation, 86.0 kB of additional disk space will be used. > Get:1 http://ftp.uk.debian.org/debian/ wheezy/main keyutils amd64 1.5.5-3 > [36.2 > kB] > Fetched 36.2 kB in 0s (125 kB/s) > Selecting previously unselected package keyutils. > (Reading database ... 125426 files and directories currently installed.) > Unpacking keyutils (from .../keyutils_1.5.5-3_amd64.deb) ... > Processing triggers for man-db ... > Setting up keyutils (1.5.5-3) ... > > Finally it works: thanks. > # update-initramfs -u -k all > update-initramfs: Generating /boot/initrd.img-3.2.0-4-amd64 -- maks -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org