]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-lib.sh: force hide plymouth in shutdown emergency shell
authorHarald Hoyer <harald@redhat.com>
Fri, 18 Jan 2013 10:00:00 +0000 (11:00 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 22 Jan 2013 14:31:19 +0000 (15:31 +0100)
modules.d/99base/dracut-lib.sh

index 127ae429af619d3c4dd6fd87ad8c2d9670763ec8..83ac68f664ab0d9167cfb587b9ca4d67cd99d0db 100755 (executable)
@@ -897,6 +897,11 @@ emergency_shell()
         shift 2
     elif [ "$1" = "--shutdown" ]; then
         _rdshell_name=$2; action="Shutdown"; hook="shutdown-emergency"
+        if [ -x /bin/plymouth ]; then
+            /bin/plymouth --hide-splash
+        elif [ -x /oldroot/bin/plymouth ]; then
+            /oldroot/bin/plymouth --hide-splash
+        fi
         shift 2
     fi