about summary refs log tree commit diff
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2018-09-18 21:47:14 +0200
committerxeji <36407913+xeji@users.noreply.github.com>2018-09-18 21:47:14 +0200
commit5664e64a015354e8b5e3c0cc4e9e7fac0db5f3dc (patch)
tree5f66828c23f47609a3b2c938a732d9d8c2ee621a
parent8228c787b4faace67679dc0541bca5f907daebf9 (diff)
downloadnixlib-5664e64a015354e8b5e3c0cc4e9e7fac0db5f3dc.tar
nixlib-5664e64a015354e8b5e3c0cc4e9e7fac0db5f3dc.tar.gz
nixlib-5664e64a015354e8b5e3c0cc4e9e7fac0db5f3dc.tar.bz2
nixlib-5664e64a015354e8b5e3c0cc4e9e7fac0db5f3dc.tar.lz
nixlib-5664e64a015354e8b5e3c0cc4e9e7fac0db5f3dc.tar.xz
nixlib-5664e64a015354e8b5e3c0cc4e9e7fac0db5f3dc.tar.zst
nixlib-5664e64a015354e8b5e3c0cc4e9e7fac0db5f3dc.zip
nixos/activation: Switch from bash to sh to avoid reading users bash config (#46851)
This fixes #46750. This should also work with non-POSIX shells like in #46042.
-rw-r--r--nixos/modules/system/activation/top-level.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix
index 9797ef641e4f..254e9266e89e 100644
--- a/nixos/modules/system/activation/top-level.nix
+++ b/nixos/modules/system/activation/top-level.nix
@@ -115,7 +115,7 @@ let
 
       inherit (pkgs) utillinux coreutils;
       systemd = config.systemd.package;
-      inherit (pkgs.stdenv) shell;
+      shell = "${pkgs.bash}/bin/sh";
 
       inherit children;
       kernelParams = config.boot.kernelParams;