]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd/dracut-pre-pivot.sh: stop old udev services
authorHarald Hoyer <harald@redhat.com>
Wed, 20 Jun 2012 23:04:15 +0000 (01:04 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 20 Jun 2012 23:11:44 +0000 (01:11 +0200)
modules.d/98systemd/dracut-pre-pivot.sh

index eb7e93246394b500b9487f91a1fcd07b741c6b87..668521053bd82a54458f50a0b28a45a42542cd2b 100755 (executable)
@@ -34,7 +34,11 @@ done
 echo "NEWROOT=\"$NEWROOT\"" >> /run/initramfs/switch-root.conf
 
 udevadm control --stop-exec-queue
-systemctl stop systemd-udev.service
+
+for i in systemd-udev.service udev.service; do
+    systemctl is-active $i >/dev/null 2>&1 && systemctl stop $i
+done
+
 udevadm info --cleanup-db
 
 # remove helper symlink