mirror of
https://github.com/systemd/systemd.git
synced 2025-02-23 13:57:33 +03:00
units: skip modprobe@.service if the unit appears to be already loaded
Possible alternative to #14819. For me, setting RemainAfterExit=yes would be OK, but if people think that it might cause issues, then this could be a reasonable alternative that still let's us skip the invocation of the separate binary.
This commit is contained in:
parent
ff12a7954c
commit
9cbf1e58f9
@ -13,6 +13,7 @@ DefaultDependencies=no
|
|||||||
Before=sysinit.target
|
Before=sysinit.target
|
||||||
Documentation=man:modprobe(8)
|
Documentation=man:modprobe(8)
|
||||||
ConditionCapability=CAP_SYS_MODULE
|
ConditionCapability=CAP_SYS_MODULE
|
||||||
|
ConditionPathExists=!/sys/module/%I
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user