]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
unit: also prioritize input devices when triggering devices
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 26 Oct 2022 05:00:47 +0000 (14:00 +0900)
committerLennart Poettering <lennart@poettering.net>
Wed, 26 Oct 2022 08:49:09 +0000 (10:49 +0200)
As in most cases, tty device without input devices is meaningless.

This also swaps the priority of tty and net:
- input devices are often connected under USB bus, hence may take
  slightly much time to be initialized. As, described in the above,
  in most cases it is allowed that tty devices are initialized just
  before input devices,
- network configuration usually requires much time, e.g. DHCP or RA,
  hence it is better that network interfaces initialized. Then,
  network services can start DHCP client or friends earlier.

Fixes #24026.

units/systemd-udev-trigger.service

index 0175a148584535e8c8b25088b840bfbae2b52a9c..cb1e4f9fea55765ea0f23fd48b18a454f3264893 100644 (file)
@@ -19,4 +19,4 @@ ConditionPathIsReadWrite=/sys
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart=-udevadm trigger --type=all --action=add --prioritized-subsystem=module,block,tpmrm,tty,net
+ExecStart=-udevadm trigger --type=all --action=add --prioritized-subsystem=module,block,tpmrm,net,tty,input