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
changes/82/21882/1
Mykola Malkov 8 years ago
parent 58e993cdad
commit d94ec984ca

@ -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?

Loading…
Cancel
Save