Browse Source

systemd: stop udevd correctly

master
Harald Hoyer 13 years ago
parent
commit
7292a59593
  1. 2
      modules.d/98systemd/dracut-pre-pivot.service
  2. 1
      modules.d/98systemd/initrd-switch-root.service
  3. 3
      modules.d/98systemd/udevadm-cleanup-db.service

2
modules.d/98systemd/dracut-pre-pivot.service

@ -16,7 +16,7 @@ ConditionPathExists=/etc/initrd-release @@ -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

1
modules.d/98systemd/initrd-switch-root.service

@ -22,3 +22,4 @@ ExecStopPost=-/bin/rm -f /run/initramfs/switch-root.conf @@ -22,3 +22,4 @@ ExecStopPost=-/bin/rm -f /run/initramfs/switch-root.conf
StandardInput=null
StandardOutput=null
StandardError=null
KillMode=none

3
modules.d/98systemd/udevadm-cleanup-db.service

@ -10,7 +10,8 @@ Description=Cleanup udevd DB @@ -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

Loading…
Cancel
Save