Package: cryptsetup Version: 2:1.7.2-4 Severity: serious Justification: upgrade fails
When cryptsetup is upgraded at the same time than the kernel and when the kernel is configured before cryptsetup, the kernel fails to configure with this error: Paramétrage de linux-image-4.7.0-1-amd64 (4.7.6-1) ... /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-4.7.0-1-amd64 /usr/share/initramfs-tools/hooks/cryptroot: 663: .: Can't open /etc/cryptsetup-initramfs/conf-hook E: /usr/share/initramfs-tools/hooks/cryptroot failed with return 2. update-initramfs: failed for /boot/initrd.img-4.7.0-1-amd64 with 2. run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2 The problem is that /etc/cryptsetup-initramfs/conf-hook is a conffile and it is thus put into place only during the configuration of the package and not an unpack time. You should thus improve /usr/share/initramfs-tools/hooks/cryptroot to tolerate the lack of /etc/cryptsetup-initramfs/conf-hook. Thank you! -- Package-specific info: -- System Information: Debian Release: stretch/sid Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages cryptsetup depends on: ii cryptsetup-bin 2:1.7.2-4 ii debconf [debconf-2.0] 1.5.59 ii dmsetup 2:1.02.133-1 ii libc6 2.24-3 Versions of packages cryptsetup recommends: ii busybox 1:1.22.0-19 ii console-setup 1.151 ii initramfs-tools [linux-initramfs-tool] 0.125 ii kbd 2.0.3-2 Versions of packages cryptsetup suggests: ii dosfstools 4.0-2 pn keyutils <none> ii liblocale-gettext-perl 1.07-3+b1 -- debconf information excluded