Browse Source

TEST-04-FULL-SYSTEMD: change error reporting

master
Harald Hoyer 5 years ago
parent
commit
b3d40a4390
  1. 22
      test/TEST-04-FULL-SYSTEMD/test-init.sh

22
test/TEST-04-FULL-SYSTEMD/test-init.sh

@ -110,27 +110,23 @@ ismounted() { @@ -110,27 +110,23 @@ ismounted() {

systemctl --failed --no-legend --no-pager > /failed

if ismounted /usr && [ ! -s /failed ]; then
echo "dracut-root-block-success" | dd oflag=direct,dsync of=/dev/sdc
fi

if ! ismounted /usr; then
echo "**************************FAILED**************************"
echo "/usr not mounted!!"
cat /proc/mounts
echo "**************************FAILED**************************"
fi

journalctl --full --no-pager -o short-monotonic
else
if [ -s /failed ]; then
echo "**************************FAILED**************************"
cat /failed
echo "**************************FAILED**************************"

if [ -s /failed ]; then
echo "**************************FAILED**************************"
cat /failed
echo "**************************FAILED**************************"
else
echo "dracut-root-block-success" | dd oflag=direct,dsync of=/dev/sdc
echo "All OK"
fi
fi

ls -al /run/systemd/system

export TERM=linux
export PS1='initramfs-test:\w\$ '
[ -f /etc/mtab ] || ln -sfn /proc/mounts /etc/mtab

Loading…
Cancel
Save