Control: tag -1 patch I've tested this with a custom kernel package that sets $INITRD to match the CONFIG_BLK_DEV_INITRD symbol.
Ben. --- a/debian/kernel/postinst.d/dracut +++ b/debian/kernel/postinst.d/dracut @@ -8,13 +8,12 @@ # passing the kernel version is required [ -z "${version}" ] && exit 0 +# exit if custom kernel does not need an initramfs +[ "$INITRD" = 'No' ] && exit 0 + # absolute file name of kernel image may be passed as a second argument; # create the initrd in the same directory if [ -n "$2" ]; then - if [ -n "${KERNEL_PACKAGE_VERSION}" ]; then - # exit if custom kernel does not need an initramfs - [ "$INITRD" = 'No' ] && exit 0 - fi bootdir=$(dirname "$2") fi --- END --- -- Ben Hutchings DNRC Motto: I can please only one person per day. Today is not your day. Tomorrow isn't looking good either.
signature.asc
Description: This is a digitally signed message part