]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-lib.sh: emergency_shell() test for setsit --ctty option
authorHarald Hoyer <harald@redhat.com>
Tue, 3 Apr 2012 07:29:06 +0000 (09:29 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 3 Apr 2012 07:30:26 +0000 (09:30 +0200)
modules.d/99base/dracut-lib.sh

index 6f506b6c9225ec73e4cf6fa5fc7c05975af740be..ad29451b5c90af13d42415b59709a0ee43341280 100755 (executable)
@@ -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."