From 0de9db68a32b15a567e8496147070a58208dc900 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 1 May 2023 23:53:40 +0200 Subject: [PATCH] system: don't warn if neither udev/udevadm or mdev is available The user may have their own setup of things, by default we should not cause unnecessary warnings in syslog. Signed-off-by: Joachim Wiberg --- system/hotplug.conf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/system/hotplug.conf b/system/hotplug.conf index d1e66137..94d3036f 100644 --- a/system/hotplug.conf +++ b/system/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 if:udevd cgroup.init [S] udevadm settle -t 0 -- -run if:udevd cgroup.init [S] log udevadm control --reload -run if:udevd cgroup.init :1 [S] log udevadm trigger -c add -t devices -- Requesting device events -run if:udevd cgroup.init :2 [S] log udevadm trigger -c add -t subsystems -- Requesting subsystem events -run if:udevd cgroup.init [S] log udevadm settle -t 5 -- Waiting for udev to finish +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 # If udevd is not available, try mdev -run conflict:udevd [S] mdev -s -- Populating device tree +run nowarn conflict:udevd [S] mdev -s -- Populating device tree