Small correction to get the right zz-fail file (needs to escape $), please run:
$ sudo tee /etc/kernel/postinst.d/zz-fail <<EOF
#!/bin/sh -e
# Avoid running multiple times
if [ -n "\$DEB_MAINT_PARAMS" ]; then
eval set -- "\$DEB_MAINT_PARAMS"
if [ -z "\$1" ] || [ "\$1" != "configure" ]; then
exit 0
fi
fi
Small correction to get the right zz-fail file (needs to escape $), please run:
$ sudo tee /etc/kernel/ postinst. d/zz-fail <<EOF
#!/bin/sh -e
# Avoid running multiple times MAINT_PARAMS" ]; then MAINT_PARAMS"
if [ -n "\$DEB_
eval set -- "\$DEB_
if [ -z "\$1" ] || [ "\$1" != "configure" ]; then
exit 0
fi
fi
exit 1
EOF