mirror of
https://github.com/troglobit/finit.git
synced 2026-10-15 10:29:35 +00:00
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 <troglobit@gmail.com>
This commit is contained in:
1 parent
aeff68b598
commit
0de9db68a3
1 file changed
+6
-6
+6
-6
@@ -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] <pid/udevd> udevadm settle -t 0 --
|
||||
run if:udevd cgroup.init [S] <pid/udevd> log udevadm control --reload
|
||||
run if:udevd cgroup.init :1 [S] <pid/udevd> log udevadm trigger -c add -t devices -- Requesting device events
|
||||
run if:udevd cgroup.init :2 [S] <pid/udevd> log udevadm trigger -c add -t subsystems -- Requesting subsystem events
|
||||
run if:udevd cgroup.init [S] <pid/udevd> log udevadm settle -t 5 -- Waiting for udev to finish
|
||||
run nowarn if:udevd cgroup.init [S] <pid/udevd> udevadm settle -t 0 --
|
||||
run nowarn if:udevd cgroup.init [S] <pid/udevd> log udevadm control --reload
|
||||
run nowarn if:udevd cgroup.init :1 [S] <pid/udevd> log udevadm trigger -c add -t devices -- Requesting device events
|
||||
run nowarn if:udevd cgroup.init :2 [S] <pid/udevd> log udevadm trigger -c add -t subsystems -- Requesting subsystem events
|
||||
run nowarn if:udevd cgroup.init [S] <pid/udevd> 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
|
||||
Reference in new issue
Block a user