Merge pull request #15 from modelrockettier/update-initramfs

Update initramfs after .deb install or uninstall
This commit is contained in:
koverstreet 2019-01-13 22:09:43 -05:00 committed by GitHub
commit b199b91cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 3 deletions

View File

@ -122,7 +122,7 @@ int cmd_format(int argc, char *argv[])
struct bch_opts fs_opts = bch2_parse_opts(fs_opt_strs);
while ((opt = getopt_long(argc, argv,
"-L:U:fqh",
"-L:U:g:fqh",
format_opts,
NULL)) != -1)
switch (opt) {

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