deb-pkg: Inhibit initramfs builders if CONFIG_BLK_DEV_INITRD is not set
authorBen Hutchings <ben@decadent.org.uk>
Fri, 15 Nov 2013 03:03:25 +0000 (03:03 +0000)
committerMichal Marek <mmarek@suse.cz>
Mon, 18 Nov 2013 13:35:49 +0000 (14:35 +0100)
commit1c8ddae09f4c102b97c9086cc70347e89468a547
tree5348eebcb5b7dd6a3de8bdc639836daa88423910
parent6cf3a6eff77273a55b996a5a43f342b150cfba09
deb-pkg: Inhibit initramfs builders if CONFIG_BLK_DEV_INITRD is not set

The kernel postinst hook for initramfs-tools will build an initramfs
on installation unless $INITRD is set to 'No'.  make-kpkg generates a
postinst script that sets this variable appropriately, but we don't.
Set it based on CONFIG_BLK_DEV_INITRD.

This should also work with dracut when <http://bugs.debian.org/729622>
is fixed.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/package/builddeb