test: slacken plugged -> dead test

This test is for if devices transition from plugged -> dead -> plugged
on boot, but it is normal to see loop devices transition plugged -> dead
on first boot when systemd-repart adds the root partition.
This commit is contained in:
Richard Maw
2023-12-05 18:09:18 +00:00
parent 8f764b32ea
commit 0129395173

View File

@@ -3,7 +3,7 @@
set -eux
set -o pipefail
if journalctl -b -t systemd --grep '\.device: Changed plugged -> dead'; then
if journalctl -b -t systemd --grep '(?<!loop.|diskseq-.)\.device: Changed plugged -> dead'; then
exit 1
fi