]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
initrd: make udev cleanup service confict trigger and settle too
authorDimitri John Ledkov <xnox@ubuntu.com>
Fri, 13 Dec 2019 23:22:51 +0000 (23:22 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 17 Dec 2019 20:38:11 +0000 (21:38 +0100)
Otherwise, systemd-udev-trigger|settle.service that ran in the initrd may
ramain active, and never re-run again from the system root.

This is observed by forexample examining ESP with udevadm info, which in the
initrd has all the ID_* variables, and none of them in fully booted system.

units/initrd-udevadm-cleanup-db.service.in

index 5059605c27b622c52bde7a06d44272db6208ad7e..09af690986c9b5b929b1ee26624d67dcb926eba7 100644 (file)
@@ -11,8 +11,8 @@
 Description=Cleanup udevd DB
 DefaultDependencies=no
 ConditionPathExists=/etc/initrd-release
-Conflicts=systemd-udevd.service systemd-udevd-control.socket systemd-udevd-kernel.socket
-After=systemd-udevd.service systemd-udevd-control.socket systemd-udevd-kernel.socket
+Conflicts=systemd-udevd.service systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-udev-trigger.service systemd-udev-settle.service
+After=systemd-udevd.service systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-udev-trigger.service systemd-udev-settle.service
 Before=initrd-switch-root.target
 
 [Service]