summary refs log tree commit diff
path: root/pkgs/os-specific/linux/systemd/default.nix
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2022-06-30 12:54:47 +0300
committerK900 <me@0upti.me>2022-07-22 10:01:21 +0300
commitc9183d37385787ae2afd5a7550d119c7bb9b1fe6 (patch)
tree50bee48720539afbc15aa885fefe76cf8ed28350 /pkgs/os-specific/linux/systemd/default.nix
parentf3bfbd3dc2f65ada79ccd5876604889127cb416f (diff)
downloadnixpkgs-c9183d37385787ae2afd5a7550d119c7bb9b1fe6.tar
nixpkgs-c9183d37385787ae2afd5a7550d119c7bb9b1fe6.tar.gz
nixpkgs-c9183d37385787ae2afd5a7550d119c7bb9b1fe6.tar.bz2
nixpkgs-c9183d37385787ae2afd5a7550d119c7bb9b1fe6.tar.lz
nixpkgs-c9183d37385787ae2afd5a7550d119c7bb9b1fe6.tar.xz
nixpkgs-c9183d37385787ae2afd5a7550d119c7bb9b1fe6.tar.zst
nixpkgs-c9183d37385787ae2afd5a7550d119c7bb9b1fe6.zip
nixos/systemd: make sure all the device nodes are created in stage1
The ConditionFileNotEmpty override patch wasn't correct for stage1, which
does have the modules in /lib. So, remove the patch and set
the right path with overrides in the final system.

Also, make sure systemd-tmpfiles-setup-dev is pulled in to create
all the necessary symlinks.
Diffstat (limited to 'pkgs/os-specific/linux/systemd/default.nix')
-rw-r--r--pkgs/os-specific/linux/systemd/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix
index 48baed6615e..34a6e759a31 100644
--- a/pkgs/os-specific/linux/systemd/default.nix
+++ b/pkgs/os-specific/linux/systemd/default.nix
@@ -149,7 +149,8 @@ stdenv.mkDerivation {
 
   # On major changes, or when otherwise required, you *must* reformat the patches,
   # `git am path/to/00*.patch` them into a systemd worktree, rebase to the more recent
-  # systemd version, and export the patches again via `git -c format.signoff=false format-patch v${version}`.
+  # systemd version, and export the patches again via
+  # `git -c format.signoff=false format-patch v${version} --no-numbered --zero-commit --no-signature`.
   # Use `find . -name "*.patch" | sort` to get an up-to-date listing of all patches
   patches = [
     ./0001-Start-device-units-for-uninitialised-encrypted-devic.patch
@@ -166,10 +167,9 @@ stdenv.mkDerivation {
     ./0012-add-rootprefix-to-lookup-dir-paths.patch
     ./0013-systemd-shutdown-execute-scripts-in-etc-systemd-syst.patch
     ./0014-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch
-    ./0015-kmod-static-nodes.service-Update-ConditionFileNotEmp.patch
-    ./0016-path-util.h-add-placeholder-for-DEFAULT_PATH_NORMAL.patch
-    ./0017-pkg-config-derive-prefix-from-prefix.patch
-    ./0018-inherit-systemd-environment-when-calling-generators.patch
+    ./0015-path-util.h-add-placeholder-for-DEFAULT_PATH_NORMAL.patch
+    ./0016-pkg-config-derive-prefix-from-prefix.patch
+    ./0017-inherit-systemd-environment-when-calling-generators.patch
   ] ++ lib.optional stdenv.hostPlatform.isMusl (
     let
       oe-core = fetchzip {