diff options
author | Tim Schlueter <schlueter.tim@linux.com> | 2019-01-13 14:23:55 -0800 |
---|---|---|
committer | Tim Schlueter <schlueter.tim@linux.com> | 2019-01-13 18:53:37 -0800 |
commit | e64e781bf1fea2f0baecedc44fd390fc5ce5ad59 (patch) | |
tree | 5427201bf90456602db35c87c716a86512ad1011 | |
parent | 47bd483d27ec13418978b24ec5951661d564ba35 (diff) |
Update initramfs after .deb install or uninstall
Also removed the unnecessary debian/bcachefs-tools.dirs file
-rw-r--r-- | debian/bcachefs-tools.dirs | 2 | ||||
-rw-r--r-- | debian/bcachefs-tools.postinst | 12 | ||||
-rw-r--r-- | debian/bcachefs-tools.postrm | 12 |
3 files changed, 24 insertions, 2 deletions
diff --git a/debian/bcachefs-tools.dirs b/debian/bcachefs-tools.dirs deleted file mode 100644 index ea98e984..00000000 --- a/debian/bcachefs-tools.dirs +++ /dev/null @@ -1,2 +0,0 @@ -sbin/ -usr/share/man/man8/ diff --git a/debian/bcachefs-tools.postinst b/debian/bcachefs-tools.postinst new file mode 100644 index 00000000..483b9619 --- /dev/null +++ b/debian/bcachefs-tools.postinst @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +case "$1" in + configure) + if which update-initramfs >/dev/null; then + update-initramfs -u + fi + ;; +esac + diff --git a/debian/bcachefs-tools.postrm b/debian/bcachefs-tools.postrm new file mode 100644 index 00000000..6b6fe8ac --- /dev/null +++ b/debian/bcachefs-tools.postrm @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +case "$1" in + remove) + if which update-initramfs >/dev/null; then + update-initramfs -u + fi + ;; +esac + |