]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd: stop udevd correctly
authorHarald Hoyer <harald@redhat.com>
Tue, 17 Jul 2012 16:04:44 +0000 (18:04 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 17 Jul 2012 16:04:44 +0000 (18:04 +0200)
modules.d/98systemd/dracut-pre-pivot.service
modules.d/98systemd/initrd-switch-root.service
modules.d/98systemd/udevadm-cleanup-db.service

index 61257cf0c16b75e750e01dcad1cea1230888c7ae..317b4769cb06bda25aab861bf714aa2b58a383af 100644 (file)
@@ -16,7 +16,7 @@ ConditionPathExists=/etc/initrd-release
 [Service]
 Type=oneshot
 ExecStart=-/bin/dracut-pre-pivot
-ExecStopPost=-/usr/bin/systemctl isolate initrd-switch-root.target
+ExecStopPost=-/usr/bin/systemctl --no-block isolate initrd-switch-root.target
 StandardInput=null
 StandardOutput=syslog
 StandardError=syslog+console
index 7d1a648f9c92e400d8eee0f15fba86f19a841133..b443eabfc628de87b2e255ce3030154d19335c1a 100644 (file)
@@ -22,3 +22,4 @@ ExecStopPost=-/bin/rm -f /run/initramfs/switch-root.conf
 StandardInput=null
 StandardOutput=null
 StandardError=null
+KillMode=none
index 368a0dd4d6488f547f87383d6c0b32bd316e87a7..7e479461cf58f2a86c6bbc85ad1e10d3d79a299c 100644 (file)
@@ -10,7 +10,8 @@ Description=Cleanup udevd DB
 DefaultDependencies=no
 ConditionPathExists=/etc/initrd-release
 Conflicts=systemd-udevd.service systemd-udevd-control.socket systemd-udevd-kernel.socket
-Before=initrd-switch-root.service
+After=systemd-udevd.service systemd-udevd-control.socket systemd-udevd-kernel.socket
+Before=initrd-switch-root.target
 
 [Service]
 Type=oneshot