diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-02-26 19:43:58 -0600 |
---|---|---|
committer | Eric Sandeen <sandeen@redhat.com> | 2018-02-26 19:43:58 -0600 |
commit | 37c528caf8e50e017417fea44df57ec152aa4f7e (patch) | |
tree | e3e6bd1b3e728a4f36695a44eb5936a815d3ad95 | |
parent | 638c642d509e7fcfc2f5ead699b080a48280575e (diff) | |
download | xfsprogs-dev-37c528caf8e50e017417fea44df57ec152aa4f7e.tar.gz |
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 <darrick.wong@oracle.com>
Reviewed-by: Nathan Scott <nathans@debian.org>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r-- | debian/postinst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/postinst b/debian/postinst index 11693a6eb0..2ad9174658 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 ;; |