mirror of
https://github.com/systemd/systemd.git
synced 2024-11-24 02:33:36 +08:00
units: add the modules-load cmdline parameters to the unit conditions
For 'modules-load=' and 'rd.modules-load=' to be effective, systemd-modules-load.service must be started. It is currently conditional on the existence of config files. Add the presence of the cmdline parameters to the triggering conditions.
This commit is contained in:
parent
b2fc39a683
commit
22cfbae09d
@ -18,6 +18,8 @@ ConditionDirectoryNotEmpty=|/usr/lib/modules-load.d
|
||||
ConditionDirectoryNotEmpty=|/usr/local/lib/modules-load.d
|
||||
ConditionDirectoryNotEmpty=|/etc/modules-load.d
|
||||
ConditionDirectoryNotEmpty=|/run/modules-load.d
|
||||
ConditionKernelCommandLine=|modules-load
|
||||
ConditionKernelCommandLine=|rd.modules-load
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
Loading…
Reference in New Issue
Block a user