From: Steve McIntyre Date: Mon, 23 Nov 2015 04:24:21 +0000 (+1100) Subject: debian: update initramfs in postinst X-Git-Tag: v4.3.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8b04a65f46fc0d8286438e66a90104d28102cd0;p=thirdparty%2Fxfsprogs-dev.git debian: update initramfs in postinst 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 Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/debian/changelog b/debian/changelog index 801e1160a..48fb82bec 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +xfsprogs (4.3.0) unstable; urgency=low + + * Add a postinst to update the initramfs on install/upgrade. + (Closes: #804255) + + -- Nathan Scott Wed, 11 Nov 2015 09:00:55 +1100 + xfsprogs (4.2.0) unstable; urgency=low * New upstream release diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 000000000..d11c8d94a --- /dev/null +++ b/debian/postinst @@ -0,0 +1,25 @@ +#!/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