Update initramfs after .deb install or uninstall
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) {
+++ /dev/null
-sbin/
-usr/share/man/man8/
--- /dev/null
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ configure)
+ if which update-initramfs >/dev/null; then
+ update-initramfs -u
+ fi
+ ;;
+esac
+
--- /dev/null
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ remove)
+ if which update-initramfs >/dev/null; then
+ update-initramfs -u
+ fi
+ ;;
+esac
+