diff --git a/lagarto-ox.nix b/lagarto-ox.nix index e1df79c..aa5ea7d 100644 --- a/lagarto-ox.nix +++ b/lagarto-ox.nix @@ -65,6 +65,7 @@ bootStage2 = pkgs.substituteAll { src = ./patches/stage-2-init.sh; shellDebug = "${pkgs.bashInteractive}/bin/bash"; + bashInteractive = "${pkgs.bashInteractive}"; shell = "${pkgs.bash}/bin/bash"; inherit (config.boot) readOnlyNixStore systemdExecutable extraSystemdUnitPaths; inherit (config.system.nixos) distroName; diff --git a/patches/stage-2-init.sh b/patches/stage-2-init.sh index d22470b..1c48d21 100755 --- a/patches/stage-2-init.sh +++ b/patches/stage-2-init.sh @@ -18,7 +18,8 @@ if [ "${IN_NIXOS_SYSTEMD_STAGE1:-}" != true ]; then set -x ;; debug2) - @shellDebug@ -i + export PATH="@bashInteractive@/bin:@systemConfig@/sw/bin:$PATH" + setsid bash -c "exec bash -l /dev/hvc0 2>/dev/hvc0" ;; esac done