Merge pull request #6327 from hvdijk/master
stage-1-init: fix PID 1 shell
This commit is contained in:
commit
970d57a598
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ EOF
|
|||
read reply
|
||||
|
||||
if [ -n "$allowShell" -a "$reply" = f ]; then
|
||||
exec setsid @shell@ -c "@shell@ < /dev/$console >/dev/$console 2>/dev/$console"
|
||||
exec setsid @shell@ -c "exec @shell@ < /dev/$console >/dev/$console 2>/dev/$console"
|
||||
elif [ -n "$allowShell" -a "$reply" = i ]; then
|
||||
echo "Starting interactive shell..."
|
||||
setsid @shell@ -c "@shell@ < /dev/$console >/dev/$console 2>/dev/$console" || fail
|
||||
|
|
Loading…
Reference in a new issue