diff --git a/modules/system/boot/stage-2-init.sh b/modules/system/boot/stage-2-init.sh index fdc8a0161ea5..5bee0380003c 100644 --- a/modules/system/boot/stage-2-init.sh +++ b/modules/system/boot/stage-2-init.sh @@ -182,7 +182,7 @@ if [ -n "$debug2" ]; then done echo "Debug shell called from @out@" - setsid @shell@ < /dev/$console >/dev/$console 2>/dev/$console + setsid @shellDebug@ < /dev/$console >/dev/$console 2>/dev/$console fi diff --git a/modules/system/boot/stage-2.nix b/modules/system/boot/stage-2.nix index db867ab8a28c..35b1aead1b03 100644 --- a/modules/system/boot/stage-2.nix +++ b/modules/system/boot/stage-2.nix @@ -49,7 +49,7 @@ let bootStage2 = pkgs.substituteAll { src = ./stage-2-init.sh; - shell = "${pkgs.bashInteractive}/bin/bash"; + shellDebug = "${pkgs.bashInteractive}/bin/bash"; isExecutable = true; inherit kernel; inherit (config.boot) devShmSize runSize;