mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-03 00:00:07 +03:00
Merge pull request #15 from modelrockettier/update-initramfs
Update initramfs after .deb install or uninstall
This commit is contained in:
commit
b199b91cb4
@ -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) {
|
||||
|
2
debian/bcachefs-tools.dirs
vendored
2
debian/bcachefs-tools.dirs
vendored
@ -1,2 +0,0 @@
|
||||
sbin/
|
||||
usr/share/man/man8/
|
12
debian/bcachefs-tools.postinst
vendored
Normal file
12
debian/bcachefs-tools.postinst
vendored
Normal 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
12
debian/bcachefs-tools.postrm
vendored
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user