From 33cee0ba5ffbf13fc4307af08fa617ecae14be34 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 4 Oct 2023 13:54:58 +0200 Subject: [PATCH] system: fix lost udevadm calls due to overloading The system/10-hotplug.conf needs to index its calls to udevadm for all calls to udevadm, not just the trigger calls. Otherwise the first udevadm is overloaded with all subseequent (unindexed) udevamd stanzas. Also, make sure all udevadm calls to settle/reload are hidden. Fix #372 Signed-off-by: Joachim Wiberg --- system/10-hotplug.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/system/10-hotplug.conf b/system/10-hotplug.conf index 94d3036f..844f44d8 100644 --- a/system/10-hotplug.conf +++ b/system/10-hotplug.conf @@ -7,11 +7,11 @@ service nowarn [S12345789] cgroup.system name:udevd pid:udevd log /lib/systemd/s service nowarn [S12345789] cgroup.system name:udevd pid:udevd log udevd -- Device event managing daemon # Wait for udevd to start, then wait a couple of seconds for it to become ready -run nowarn if:udevd cgroup.init [S] udevadm settle -t 0 -- -run nowarn if:udevd cgroup.init [S] log udevadm control --reload -run nowarn if:udevd cgroup.init :1 [S] log udevadm trigger -c add -t devices -- Requesting device events -run nowarn if:udevd cgroup.init :2 [S] log udevadm trigger -c add -t subsystems -- Requesting subsystem events -run nowarn if:udevd cgroup.init [S] log udevadm settle -t 5 -- Waiting for udev to finish +run nowarn if:udevd cgroup.init :1 [S] log udevadm settle -t 0 -- +run nowarn if:udevd cgroup.init :2 [S] log udevadm control --reload -- +run nowarn if:udevd cgroup.init :3 [S] log udevadm trigger -c add -t devices -- Requesting device events +run nowarn if:udevd cgroup.init :4 [S] log udevadm trigger -c add -t subsystems -- Requesting subsystem events +run nowarn if:udevd cgroup.init :5 [S] log udevadm settle -t 5 -- Waiting for udev to finish # If udevd is not available, try mdev run nowarn conflict:udevd [S] mdev -s -- Populating device tree