Update initramfs after .deb install or uninstall

Also removed the unnecessary debian/bcachefs-tools.dirs file
This commit is contained in:
Tim Schlueter 2019-01-13 14:23:55 -08:00
parent 47bd483d27
commit e64e781bf1
3 changed files with 24 additions and 2 deletions

View File

@ -1,2 +0,0 @@
sbin/
usr/share/man/man8/

12
debian/bcachefs-tools.postinst vendored Normal file
View File

@ -0,0 +1,12 @@
#!/bin/sh
set -e
case "$1" in
configure)
if which update-initramfs >/dev/null; then
update-initramfs -u
fi
;;
esac

12
debian/bcachefs-tools.postrm vendored Normal file
View File

@ -0,0 +1,12 @@
#!/bin/sh
set -e
case "$1" in
remove)
if which update-initramfs >/dev/null; then
update-initramfs -u
fi
;;
esac