Bug#486916: [initramfs-tools] cryptroot hook brings askpass without creating first a dest directory
Package: initramfs-tools
Version: 0.92b
Severity: minor
Tags: patch
>From /usr/share/initramfs-tools/hooks/cryptroot:
# Prepare the initramfs
copy_exec /sbin/cryptsetup /sbin
copy_exec /sbin/dmsetup /sbin
copy_exec /lib/cryptsetup/askpass /lib/cryptsetup
But without care of /lib/cryptsetup directory being
present or not, the askpass is now copied into the
initrd under the name /lib/cryptsetup
An easy fix:
mkdir -p $DESTDIR/lib/cryptsetup
copy_exec /lib/cryptsetup/askpass /lib/cryptsetup
Or even shorter as copy_exec has already some magic:
copy_exec /lib/cryptsetup/askpass
--- System information. ---
Architecture: i386
Kernel: Linux 2.6.25-2-686
Debian Release: lenny/sid
990 testing www.debian-multimedia.org
990 testing security.debian.org
990 testing ftp.kulnet.kuleuven.ac.be
500 unstable www.emdebian.org
500 unstable www.debian-multimedia.org
500 unstable sidux.net
500 unstable ftp.kulnet.kuleuven.ac.be
500 unstable debian.jones.dk
500 stable security.debian.org
1 experimental ftp.kulnet.kuleuven.ac.be
--- Package information. ---
Depends (Version) | Installed
==================================-+-=============
klibc-utils (>= 1.5.9-1) | 1.5.9-2
cpio | 2.9-13
module-init-tools | 3.4-1
udev (>= 0.086-1) | 0.114-2
findutils (>= 4.2.24) | 4.4.0-2
Reply to: