From d94ec984ca1bb322bd5e943b02a20411738b2e49 Mon Sep 17 00:00:00 2001 From: Mykola Malkov Date: Wed, 13 Jun 2018 15:24:39 +0200 Subject: [PATCH] TT#37257 Add '|| true' to 'systemctl status' command If the systemd status is 'degraded' the exit code of the command is not 0 so script is interrupted due to '-e' option. Change-Id: I147da71569dc527004d598c48338fc04dd2ada92 --- templates/scripts/includes/deployment.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/scripts/includes/deployment.sh b/templates/scripts/includes/deployment.sh index e03c806..631dfce 100755 --- a/templates/scripts/includes/deployment.sh +++ b/templates/scripts/includes/deployment.sh @@ -2140,7 +2140,7 @@ dmsetup remove_all || true if ! blockdev --rereadpt "/dev/${DISK}" ; then echo "Something on disk /dev/${DISK} (mountpoint $TARGET) seems to be still active, debugging output follows:" - systemctl status + systemctl status || true fi # party time! who brings the whiskey?