2022-04-15 01:41:22 +00:00
|
|
|
From df0fec7ac2f33bcca60ba9a2396af33397ba42cc Mon Sep 17 00:00:00 2001
|
2020-04-24 23:36:52 +00:00
|
|
|
From: Florian Klink <flokli@flokli.de>
|
|
|
|
Date: Sat, 7 Mar 2020 22:40:27 +0100
|
2022-01-13 20:06:32 +00:00
|
|
|
Subject: [PATCH 16/19] kmod-static-nodes.service: Update ConditionFileNotEmpty
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-15 01:41:22 +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/.
|
2020-04-24 23:36:52 +00:00
|
|
|
---
|
2022-04-15 01:41:22 +00:00
|
|
|
units/kmod-static-nodes.service.in | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
diff --git a/units/kmod-static-nodes.service.in b/units/kmod-static-nodes.service.in
|
2022-04-15 01:41:22 +00:00
|
|
|
index 777e82d16b..b6abc2bba0 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/units/kmod-static-nodes.service.in
|
|
|
|
+++ b/units/kmod-static-nodes.service.in
|
2022-04-15 01:41:22 +00:00
|
|
|
@@ -12,7 +12,7 @@ Description=Create List of Static Device Nodes
|
2020-04-24 23:36:52 +00:00
|
|
|
DefaultDependencies=no
|
|
|
|
Before=sysinit.target systemd-tmpfiles-setup-dev.service
|
|
|
|
ConditionCapability=CAP_SYS_MODULE
|
|
|
|
-ConditionFileNotEmpty=/lib/modules/%v/modules.devname
|
2022-04-15 01:41:22 +00:00
|
|
|
+ConditionFileNotEmpty=/run/booted-system/kernel-modules/lib/modules/%v/modules.devname
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
--
|
2022-04-15 01:41:22 +00:00
|
|
|
2.34.0
|
2020-04-24 23:36:52 +00:00
|
|
|
|