From: Harald Hoyer Date: Tue, 3 Apr 2012 07:29:06 +0000 (+0200) Subject: dracut-lib.sh: emergency_shell() test for setsit --ctty option X-Git-Tag: 018~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6c3b8e2c1742f6b76e458f88759e7b8674bc401c;p=thirdparty%2Fdracut.git dracut-lib.sh: emergency_shell() test for setsit --ctty option --- diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index 6f506b6c9..ad29451b5 100755 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -814,7 +814,7 @@ emergency_shell() _ctty=/dev/$_ctty fi [ -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 else warn "Boot has failed. To debug this issue add \"rdshell\" to the kernel command line."