All filesystem tools packages for filesystems
that are likely to be used for / and/or /usr should call
"update-initramfs -u" in their postinst.
Signed-off-by: Steve McIntyre <steve@einval.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
+xfsprogs (4.3.0) unstable; urgency=low
+
+ * Add a postinst to update the initramfs on install/upgrade.
+ (Closes: #804255)
+
+ -- Nathan Scott <nathans@debian.org> Wed, 11 Nov 2015 09:00:55 +1100
+
xfsprogs (4.2.0) unstable; urgency=low
* New upstream release
--- /dev/null
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ configure)
+ if [ -x /usr/sbin/update-initramfs ] && [ -e /etc/initramfs-tools/initramfs.conf ]
+ then
+ update-initramfs -u
+ fi
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0