From 01995578ed23276cd9ce6f1dddd913a5c11d12b9 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 20 May 2016 13:37:20 -0400 Subject: [PATCH] debian: only try to execute update-initramfs if it exists Signed-off-by: Theodore Ts'o --- debian/e2fsprogs.postinst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/e2fsprogs.postinst b/debian/e2fsprogs.postinst index 132925581..00ac363df 100644 --- a/debian/e2fsprogs.postinst +++ b/debian/e2fsprogs.postinst @@ -3,7 +3,10 @@ # Abort on error. set -e -update-initramfs -u +if [ -x /usr/sbin/update-initramfs -a \ + -e /etc/initramfs-tools/initramfs.conf ]; then + update-initramfs -u +fi #DEBHELPER# -- 2.39.2