]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
unit: ignore exit code of "udevadm trigger"
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 18 Feb 2021 21:20:29 +0000 (06:20 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 20 Feb 2021 19:40:23 +0000 (04:40 +0900)
Suggested at https://github.com/systemd/systemd/pull/18559#issuecomment-781626226.

Some drivers may be broken and return unexpected errors on triggering
events. That should be logged but should not boot-up to be affected.

units/systemd-udev-trigger.service

index 8b2d88e1859e13463e56deeca4176cbec4bdedda..3d0f7b4f203fcb1d4df6474d78f643df1c8344cb 100644 (file)
@@ -19,5 +19,5 @@ ConditionPathIsReadWrite=/sys
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart=udevadm trigger --type=subsystems --action=add
-ExecStart=udevadm trigger --type=devices --action=add
+ExecStart=-udevadm trigger --type=subsystems --action=add
+ExecStart=-udevadm trigger --type=devices --action=add