mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user