From ea473fac72d16c5fb9a159cad8cf96a21becea7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20He=C3=9F?= Date: Sun, 3 Apr 2022 11:12:00 +0100 Subject: [PATCH] nixos/stage-2-init: Don't clear environment This breaks NixOS Containers because systemd needs some env variables from the outside. --- nixos/modules/system/boot/stage-2-init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/stage-2-init.sh b/nixos/modules/system/boot/stage-2-init.sh index 9a9d35c08db9..82ebbb71198a 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@ "$@"