forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemd: update paths kmod-static-nodes.service
These kernel modules actually are available on a location in NixOS, so let's update the path to the NixOS-specific one instead of just patching it out.
- Loading branch information
Showing
3 changed files
with
30 additions
and
25 deletions.
There are no files selected for viewing
24 changes: 0 additions & 24 deletions
24
.../os-specific/linux/systemd/0005-kmod-static-nodes.service-Don-t-require-lib-modules.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
pkgs/os-specific/linux/systemd/kmod-static-nodes.service-Update-ConditionFileNotEmpty.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 7db89c2236158461c99fe5c5da7ddb7feab825cf Mon Sep 17 00:00:00 2001 | ||
From: Florian Klink <flokli@flokli.de> | ||
Date: Sat, 7 Mar 2020 22:40:27 +0100 | ||
Subject: [PATCH] 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 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 | ||
-- | ||
2.25.1 | ||
|