diff --git a/cmd_format.c b/cmd_format.c index bf175581..cffb8dc1 100644 --- a/cmd_format.c +++ b/cmd_format.c @@ -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) { 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 +