dracut-lib.sh: emergency_shell() test for setsit --ctty option
parent
b48f5e847c
commit
6c3b8e2c17
|
|
@ -814,7 +814,7 @@ emergency_shell()
|
||||||
_ctty=/dev/$_ctty
|
_ctty=/dev/$_ctty
|
||||||
fi
|
fi
|
||||||
[ -c "$_ctty" ] || _ctty=/dev/tty1
|
[ -c "$_ctty" ] || _ctty=/dev/tty1
|
||||||
strstr "$(setsid --help 2>/dev/null)" "control" && CTTY="-c"
|
strstr "$(setsid --help 2>/dev/null)" "ctty" && CTTY="-c"
|
||||||
setsid $CTTY /bin/sh -i -l 0<$_ctty 1>$_ctty 2>&1
|
setsid $CTTY /bin/sh -i -l 0<$_ctty 1>$_ctty 2>&1
|
||||||
else
|
else
|
||||||
warn "Boot has failed. To debug this issue add \"rdshell\" to the kernel command line."
|
warn "Boot has failed. To debug this issue add \"rdshell\" to the kernel command line."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue