mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 23:13:56 +00:00
28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
From ac9f97341e6fe3fb4b5fe22e72f43312ef5b1ca4 Mon Sep 17 00:00:00 2001
|
|
From: Florian Klink <flokli@flokli.de>
|
|
Date: Sat, 7 Mar 2020 22:40:27 +0100
|
|
Subject: [PATCH 15/18] kmod-static-nodes.service: Update ConditionFileNotEmpty
|
|
|
|
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 777e82d16b..b6abc2bba0 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
|
|
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
|
|
--
|
|
2.36.1
|
|
|