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 5350405..b0330a4 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 eae0be2..d560d6f 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