From: Darrick J. Wong Date: Tue, 27 Feb 2018 01:43:58 +0000 (-0600) Subject: debian: don't fail postinst when upgrading chroot X-Git-Tag: v4.15.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37c528caf8e50e017417fea44df57ec152aa4f7e;p=thirdparty%2Fxfsprogs-dev.git debian: don't fail postinst when upgrading chroot If we're upgrading a systemd-enabled chroot we'll fail because systemctl can't connect to a running systemd (nor should it). We don't need to issue daemon-reload inside a chroot that doesn't have a running systemd, so we can ignore the return value. Signed-off-by: Darrick J. Wong Reviewed-by: Nathan Scott Signed-off-by: Eric Sandeen --- diff --git a/debian/postinst b/debian/postinst index 11693a6eb..2ad917465 100644 --- a/debian/postinst +++ b/debian/postinst @@ -9,7 +9,7 @@ case "${1}" in update-initramfs -u fi if [ -x /bin/systemctl ]; then - /bin/systemctl daemon-reload + /bin/systemctl daemon-reload 2>&1 || true fi ;;