mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
0129395173
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.
11 lines
217 B
Bash
Executable File
11 lines
217 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
set -eux
|
|
set -o pipefail
|
|
|
|
if journalctl -b -t systemd --grep '(?<!loop.|diskseq-.)\.device: Changed plugged -> dead'; then
|
|
exit 1
|
|
fi
|
|
|
|
touch /testok
|