From: Harald Hoyer Date: Tue, 17 Jul 2012 16:04:44 +0000 (+0200) Subject: systemd: stop udevd correctly X-Git-Tag: 021~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7292a59593b4ea8c9a661578f567520ba88cf754;p=thirdparty%2Fdracut.git systemd: stop udevd correctly --- diff --git a/modules.d/98systemd/dracut-pre-pivot.service b/modules.d/98systemd/dracut-pre-pivot.service index 61257cf0c..317b4769c 100644 --- a/modules.d/98systemd/dracut-pre-pivot.service +++ b/modules.d/98systemd/dracut-pre-pivot.service @@ -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 diff --git a/modules.d/98systemd/initrd-switch-root.service b/modules.d/98systemd/initrd-switch-root.service index 7d1a648f9..b443eabfc 100644 --- a/modules.d/98systemd/initrd-switch-root.service +++ b/modules.d/98systemd/initrd-switch-root.service @@ -22,3 +22,4 @@ ExecStopPost=-/bin/rm -f /run/initramfs/switch-root.conf StandardInput=null StandardOutput=null StandardError=null +KillMode=none diff --git a/modules.d/98systemd/udevadm-cleanup-db.service b/modules.d/98systemd/udevadm-cleanup-db.service index 368a0dd4d..7e479461c 100644 --- a/modules.d/98systemd/udevadm-cleanup-db.service +++ b/modules.d/98systemd/udevadm-cleanup-db.service @@ -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