debian/initramfs-tools.postinst
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | # Regenerate initramfs whenever we go to dpkg state `installed' |
| 6 | if [ "$1" != triggered ]; then |
| 7 | # this activates the trigger, if triggers are working |
| 8 | update-initramfs -u |
| 9 | else |
| 10 | # force it to actually happen |
| 11 | DPKG_MAINTSCRIPT_PACKAGE='' update-initramfs -u |
| 12 | fi |
| 13 | |
| 14 | #DEBHELPER# |