]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
plymouth gensplash: check for console_init before calling it
authorHarald Hoyer <harald@redhat.com>
Tue, 29 Mar 2011 14:38:11 +0000 (16:38 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 29 Mar 2011 14:38:11 +0000 (16:38 +0200)
Thanks Jon Ander Hernandez!

modules.d/50gensplash/gensplash-pretrigger.sh
modules.d/50plymouth/plymouth-pretrigger.sh

index 5350405d53a0e8bf8cfda9fa231e8afb977c66ba..b0330a4761fb5628cc7c3c7b2afb2da62d5aa15a 100755 (executable)
@@ -9,7 +9,7 @@ if getargbool 1 rd.splash -n rd_NO_SPLASH; then
 
     info "Starting Gentoo Splash"
 
-    /lib/udev/console_init tty0
+    [ -x /lib/udev/console_init ] && /lib/udev/console_init tty0
     CDROOT=0
     . /lib/gensplash-lib.sh
     splash init
index eae0be23c9921e6a93a4c8c5be725a6c9b63f2a3..d560d6f01512dd76f5f2d3e9cc722c15b21485e2 100755 (executable)
@@ -19,6 +19,6 @@ if getargbool 1 rd.plymouth -n rd_NO_PLYMOUTH; then
     info "Starting plymouth daemon"
     [ -x /bin/plymouthd ] && /bin/plymouthd --attach-to-session
     >/run/initramfs/plymouth
-    /lib/udev/console_init tty0
+    [ -x /lib/udev/console_init ] && /lib/udev/console_init tty0
     /bin/plymouth --show-splash 2>&1 | vinfo
 fi