From: Jo Zzsi Date: Sat, 11 Jan 2025 13:24:14 +0000 (-0500) Subject: test: check for /usr/lib/systemd/system for systemd enabled rootfs X-Git-Tag: 106~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e356a8186bca5459860d2bdec4e91df04ea475b;p=thirdparty%2Fdracut-ng.git test: check for /usr/lib/systemd/system for systemd enabled rootfs Follow-up to bc2b6b0 --- diff --git a/test/modules.d/80test-root/test-init.sh b/test/modules.d/80test-root/test-init.sh index ad472959a..6ede043fc 100755 --- a/test/modules.d/80test-root/test-init.sh +++ b/test/modules.d/80test-root/test-init.sh @@ -30,7 +30,7 @@ fi echo "made it to the rootfs!" echo "Powering down." -if [ -f /usr/lib/systemctl ]; then +if [ -d /usr/lib/systemd/system ]; then # graceful poweroff systemctl poweroff else