nixos-enter: specify absolute path to bash

Not doing so makes it impossible to use nixos-enter from a non-NixOS
distro

obadz 80ea3454 7af0aa84

+2 -2
+2 -2
nixos/modules/installer/tools/nixos-enter.sh
··· 15 15 fi 16 16 17 17 mountPoint=/mnt 18 - command=("bash" "--login") 19 18 system=/nix/var/nix/profiles/system 19 + command=($system/sw/bin/bash "--login") 20 20 21 21 while [ "$#" -gt 0 ]; do 22 22 i="$1"; shift 1 ··· 32 32 exit 1 33 33 ;; 34 34 --command|-c) 35 - command=("bash" "-c" "$1") 35 + command=($system/sw/bin/bash "-c" "$1") 36 36 shift 1 37 37 ;; 38 38 --)