Bug#561289:
dan@dan-desktop:~/linux$ cat /etc/kernel/postinst.d/initramfs-tools
#!/bin/sh
# passing the kernel version is required
[ -z "$1" ] && exit 0
# kernel-package passes an extra arg; hack to not run under kernel-package
[ -z "$2" ] || exit 0
# we're good - create initramfs. update runs do_bootloader
update-initramfs -c -t -k "$1"
dan@dan-desktop:~/linux$ cat /etc/kernel/postrm.d/initramfs-tools
#!/bin/sh
# passing the kernel version is required
[ -z "$1" ] && exit 0
# kernel-package passes an extra arg; hack to not run under kernel-package
#[ -z "$2" ] || exit 0
# delete initramfs
update-initramfs -d -k "$1"
-----------------------
Why do you use so strange hack? Kernel-package works with initramfs-tools perfectly.
Reply to: