summary refs log tree commit diff
path: root/pkgs/os-specific/linux/systemd/0003-Fix-NixOS-containers.patch
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/0003-Fix-NixOS-containers.patch
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/0003-Fix-NixOS-containers.patch')
-rw-r--r--pkgs/os-specific/linux/systemd/0003-Fix-NixOS-containers.patch9
1 files changed, 3 insertions, 6 deletions
diff --git a/pkgs/os-specific/linux/systemd/0003-Fix-NixOS-containers.patch b/pkgs/os-specific/linux/systemd/0003-Fix-NixOS-containers.patch
index 6db68f5e011..a669350dbed 100644
--- a/pkgs/os-specific/linux/systemd/0003-Fix-NixOS-containers.patch
+++ b/pkgs/os-specific/linux/systemd/0003-Fix-NixOS-containers.patch
@@ -1,7 +1,7 @@
-From eb3ff76f95bfe248f517e029ea1b152f4983370a Mon Sep 17 00:00:00 2001
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
 From: Eelco Dolstra <eelco.dolstra@logicblox.com>
 Date: Wed, 16 Apr 2014 10:59:28 +0200
-Subject: [PATCH 03/18] Fix NixOS containers
+Subject: [PATCH] Fix NixOS containers
 
 In NixOS containers, the init script is bind-mounted into the
 container, so checking early whether it exists will fail.
@@ -10,7 +10,7 @@ container, so checking early whether it exists will fail.
  1 file changed, 2 insertions(+)
 
 diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
-index c5fd978395..0fa415f5b5 100644
+index 4ce80bba70..bb149192bd 100644
 --- a/src/nspawn/nspawn.c
 +++ b/src/nspawn/nspawn.c
 @@ -5651,6 +5651,7 @@ static int run(int argc, char *argv[]) {
@@ -29,6 +29,3 @@ index c5fd978395..0fa415f5b5 100644
                  }
  
          } else {
--- 
-2.36.1
-