]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
rdbreak should imply rdshell. If sleeping forever say so, so the user doesn't wonder.
authorWarren Togami <wtogami@redhat.com>
Wed, 8 Jul 2009 17:51:43 +0000 (13:51 -0400)
committerWarren Togami <wtogami@redhat.com>
Wed, 8 Jul 2009 17:51:43 +0000 (13:51 -0400)
modules.d/99base/init

index 99d5d145cf4308e3e93c023263bc927586348425..5d591da35cfe9d5737158b07b60f62d66fb29cff 100755 (executable)
@@ -11,12 +11,13 @@ emergency_shell()
     echo ; echo
     echo $@
     source_all emergency
-    if getarg rdshell; then
+    if getarg rdshell || getarg rdbreak; then
         echo ; echo
         echo "Dropping to a shell. Good luck!"
         echo
         sh -i
     else
+        echo "Boot has failed, sleeping forever"
         while :; do sleep 1;done
     fi
 }