From 7c208a64bab5532235a05755d72aab78675b9ec3 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 12 Jul 2025 00:50:02 +0900 Subject: [PATCH] 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. --- units/kmod-static-nodes.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/units/kmod-static-nodes.service.in b/units/kmod-static-nodes.service.in index 70605d997e..ec8c5da910 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