From c8b04a65f46fc0d8286438e66a90104d28102cd0 Mon Sep 17 00:00:00 2001 From: Steve McIntyre Date: Mon, 23 Nov 2015 15:24:21 +1100 Subject: [PATCH] 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 --- debian/changelog | 7 +++++++ debian/postinst | 25 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 debian/postinst 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 -- 2.47.2