summary refs log tree commit diff
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2022-04-03 11:12:00 +0100
committerJanne Heß <janne@hess.ooo>2022-04-03 11:12:00 +0100
commitea473fac72d16c5fb9a159cad8cf96a21becea7c (patch)
tree60f1cabb714b502c19ba52bca50466eee1963257
parentf056f4b9bcfedd0eb2d39ea3f42ffb4e796e9d9c (diff)
downloadnixpkgs-ea473fac72d16c5fb9a159cad8cf96a21becea7c.tar
nixpkgs-ea473fac72d16c5fb9a159cad8cf96a21becea7c.tar.gz
nixpkgs-ea473fac72d16c5fb9a159cad8cf96a21becea7c.tar.bz2
nixpkgs-ea473fac72d16c5fb9a159cad8cf96a21becea7c.tar.lz
nixpkgs-ea473fac72d16c5fb9a159cad8cf96a21becea7c.tar.xz
nixpkgs-ea473fac72d16c5fb9a159cad8cf96a21becea7c.tar.zst
nixpkgs-ea473fac72d16c5fb9a159cad8cf96a21becea7c.zip
nixos/stage-2-init: Don't clear environment
This breaks NixOS Containers because systemd needs some env variables
from the outside.
-rwxr-xr-xnixos/modules/system/boot/stage-2-init.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/stage-2-init.sh b/nixos/modules/system/boot/stage-2-init.sh
index 9a9d35c08db..82ebbb71198 100755
--- a/nixos/modules/system/boot/stage-2-init.sh
+++ b/nixos/modules/system/boot/stage-2-init.sh
@@ -169,4 +169,4 @@ exec {logOutFd}>&- {logErrFd}>&-
 
 # Start systemd in a clean environment.
 echo "starting systemd..."
-exec env - @systemdExecutable@ "$@"
+exec @systemdExecutable@ "$@"