2020-07-31 17:02:33 +01:00
|
|
|
From 561b0cc9a1faed5729d6f701304a65c2968394ec Mon Sep 17 00:00:00 2001
|
2020-03-07 21:46:14 +00:00
|
|
|
From: Florian Klink <flokli@flokli.de>
|
|
|
|
Date: Sat, 7 Mar 2020 22:40:27 +0100
|
2020-04-30 00:03:18 +01:00
|
|
|
Subject: [PATCH 17/18] kmod-static-nodes.service: Update ConditionFileNotEmpty
|
2020-03-07 21:46:14 +00:00
|
|
|
|
|
|
|
On NixOS, kernel modules of the currently booted systems are located at
|
|
|
|
/run/booted-system/kernel-modules/lib/modules/%v/, not /lib/modules/%v/.
|
|
|
|
---
|
|
|
|
units/kmod-static-nodes.service.in | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/units/kmod-static-nodes.service.in b/units/kmod-static-nodes.service.in
|
|
|
|
index 0971edf9ec..87105a87b9 100644
|
|
|
|
--- a/units/kmod-static-nodes.service.in
|
|
|
|
+++ b/units/kmod-static-nodes.service.in
|
|
|
|
@@ -12,7 +12,7 @@ Description=Create list of static device nodes for the current kernel
|
|
|
|
DefaultDependencies=no
|
|
|
|
Before=sysinit.target systemd-tmpfiles-setup-dev.service
|
|
|
|
ConditionCapability=CAP_SYS_MODULE
|
|
|
|
-ConditionFileNotEmpty=/lib/modules/%v/modules.devname
|
|
|
|
+ConditionFileNotEmpty=/run/booted-system/kernel-modules/lib/modules/%v/modules.devname
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
--
|
2020-07-31 17:02:33 +01:00
|
|
|
2.27.0
|
2020-03-07 21:46:14 +00:00
|
|
|
|