]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test: check for /usr/lib/systemd/system for systemd enabled rootfs
authorJo Zzsi <jozzsicsataban@gmail.com>
Sat, 11 Jan 2025 13:24:14 +0000 (08:24 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Sat, 11 Jan 2025 14:30:28 +0000 (09:30 -0500)
Follow-up to bc2b6b0

test/modules.d/80test-root/test-init.sh

index ad472959acdddada2eff50f334f8f8d76a036f6d..6ede043fc2459158404b1e4151f44d917f99189c 100755 (executable)
@@ -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