From: Yu Watanabe Date: Fri, 11 Jul 2025 15:50:02 +0000 (+0900) Subject: units: check if kmod command exists X-Git-Tag: v258-rc1~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c208a64bab5532235a05755d72aab78675b9ec3;p=thirdparty%2Fsystemd.git 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. --- diff --git a/units/kmod-static-nodes.service.in b/units/kmod-static-nodes.service.in index 70605d997e0..ec8c5da910c 100644 --- a/units/kmod-static-nodes.service.in +++ b/units/kmod-static-nodes.service.in @@ -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