From e64e781bf1fea2f0baecedc44fd390fc5ce5ad59 Mon Sep 17 00:00:00 2001 From: Tim Schlueter Date: Sun, 13 Jan 2019 14:23:55 -0800 Subject: [PATCH 1/2] Update initramfs after .deb install or uninstall Also removed the unnecessary debian/bcachefs-tools.dirs file --- debian/bcachefs-tools.dirs | 2 -- debian/bcachefs-tools.postinst | 12 ++++++++++++ debian/bcachefs-tools.postrm | 12 ++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) delete mode 100644 debian/bcachefs-tools.dirs create mode 100644 debian/bcachefs-tools.postinst create mode 100644 debian/bcachefs-tools.postrm 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 + From 287db5472d67b27c28abad33200c27cebc06ca20 Mon Sep 17 00:00:00 2001 From: Tim Schlueter Date: Sun, 13 Jan 2019 14:25:10 -0800 Subject: [PATCH 2/2] Fix format -g to create a disk group --- cmd_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {