package: dropbear
hi!
initramfs-tools uses a conf-hooks.d/ directory for mkinitramfs ('compiletime')
configuration, so to be sure to read the whole/correct config we need to source
the files in there too, additionally to initramfs.conf.
regards,
Chris
diff -pruN ../a/dropbear-0.52/debian/dropbear.postinst ./dropbear-0.52/debian/dropbear.postinst
--- ../a/dropbear-0.52/debian/dropbear.postinst 2010-03-25 11:42:21.000000000 +0100
+++ ./dropbear-0.52/debian/dropbear.postinst 2010-03-26 13:17:12.000000000 +0100
@@ -63,9 +63,13 @@ fi
# cryptroot support ([email protected])
# if dropbear is to be installed to initramfs, we have to update initramfs.
-if test -r /etc/initramfs-tools/initramfs.conf &&
+if ( test -r /etc/initramfs-tools/initramfs.conf || test -r /usr/share/initramfs-tools/conf-hooks.d/* ) &&
test -x /usr/sbin/update-initramfs; then
- . /etc/initramfs-tools/initramfs.conf
+ for i in /etc/initramfs-tools/initramfs.conf /usr/share/initramfs-tools/conf-hooks.d/*; do
+ if [ -e "${i}" ]; then
+ . "${i}"
+ fi
+ done
if test "${DROPBEAR}" = "y" || test -r "/etc/crypttab"; then
# here we could read the configured network-config, and use it for
# default values for prompting the user for the initramfs-network-