mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
units: check if kmod command exists
We already check existences of quotaon in quotaon@.service and quotacheck in systemd-quotacheck@.service. Let's also check if kmod command exists. Closes #38179.
This commit is contained in:
committed by
Lennart Poettering
parent
f22187bd7e
commit
7c208a64ba
@@ -13,6 +13,7 @@ DefaultDependencies=no
|
||||
Before=sysinit.target systemd-tmpfiles-setup-dev-early.service
|
||||
ConditionCapability=CAP_SYS_MODULE
|
||||
ConditionFileNotEmpty=/lib/modules/%v/modules.devname
|
||||
ConditionPathExists={{KMOD}}
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
||||
Reference in New Issue
Block a user