TEST-02-systemd: add systemd-analyze verify
parent
f24d205537
commit
c75ce02775
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
cp /usr/bin/true /usr/bin/man
|
||||
|
||||
for i in \
|
||||
sysinit.target \
|
||||
basic.target \
|
||||
initrd-fs.target \
|
||||
initrd.target \
|
||||
initrd-switch-root.target \
|
||||
emergency.target \
|
||||
shutdown.target; do
|
||||
if ! systemd-analyze verify $i; then
|
||||
warn "systemd-analyze verify $i failed"
|
||||
poweroff
|
||||
fi
|
||||
done
|
||||
|
|
@ -88,6 +88,7 @@ test_setup() {
|
|||
. $basedir/dracut-init.sh
|
||||
inst_multiple poweroff shutdown
|
||||
inst_hook shutdown-emergency 000 ./hard-off.sh
|
||||
inst_hook pre-pivot 000 ./systemd-analyze.sh
|
||||
inst_hook emergency 000 ./hard-off.sh
|
||||
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue