]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
debian: update initramfs in postinst
authorSteve McIntyre <steve@einval.com>
Mon, 23 Nov 2015 04:24:21 +0000 (15:24 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 23 Nov 2015 04:24:21 +0000 (15:24 +1100)
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>
debian/changelog
debian/postinst [new file with mode: 0644]

index 801e1160a841acc227691a1d1590283e840ddec2..48fb82bec8a9f030246cca9027261c3dec1d677a 100644 (file)
@@ -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 <nathans@debian.org>  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 (file)
index 0000000..d11c8d9
--- /dev/null
@@ -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