forked from mirrors/nixpkgs
Making the stage2 interpreter bash non-interactive, while keeping the
interactive shell with bash interactive. Suggested by Eelco. svn path=/nixos/trunk/; revision=33005
This commit is contained in:
parent
1a48572b75
commit
ee163c2c80
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue