Blame 0057-plymouth-do-not-start-plymouth-via-dracut-for-system.patch

Harald Hoyer 12f6cc
From c9a81c1f911792f68ce1921f192e7e930f312535 Mon Sep 17 00:00:00 2001
Harald Hoyer 12f6cc
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 12f6cc
Date: Thu, 26 Jul 2012 18:59:36 +0200
Harald Hoyer 12f6cc
Subject: [PATCH] plymouth: do not start plymouth via dracut for systemd in
Harald Hoyer 12f6cc
 the initramfs
Harald Hoyer 12f6cc
Harald Hoyer 12f6cc
---
Harald Hoyer 12f6cc
 modules.d/50plymouth/module-setup.sh        | 4 ----
Harald Hoyer 12f6cc
 modules.d/50plymouth/plymouth-newroot.sh    | 2 +-
Harald Hoyer 12f6cc
 modules.d/50plymouth/plymouth-pretrigger.sh | 2 +-
Harald Hoyer 12f6cc
 3 files changed, 2 insertions(+), 6 deletions(-)
Harald Hoyer 12f6cc
Harald Hoyer 12f6cc
diff --git a/modules.d/50plymouth/module-setup.sh b/modules.d/50plymouth/module-setup.sh
Harald Hoyer 12f6cc
index 14d9e59..10aa0da 100755
Harald Hoyer 12f6cc
--- a/modules.d/50plymouth/module-setup.sh
Harald Hoyer 12f6cc
+++ b/modules.d/50plymouth/module-setup.sh
Harald Hoyer 12f6cc
@@ -76,9 +76,5 @@ install() {
Harald Hoyer 12f6cc
     inst_hook pre-trigger 10 "$moddir"/plymouth-pretrigger.sh
Harald Hoyer 12f6cc
     inst_hook emergency 50 "$moddir"/plymouth-emergency.sh
Harald Hoyer 12f6cc
     dracut_install readlink
Harald Hoyer 12f6cc
-
Harald Hoyer 12f6cc
-    if [[ -x $systemdutildir/systemd ]]; then
Harald Hoyer 12f6cc
-        dracut_install -o $systemdsystemunitdir/plymouth-quit-wait.service
Harald Hoyer 12f6cc
-    fi
Harald Hoyer 12f6cc
 }
Harald Hoyer 12f6cc
 
Harald Hoyer 12f6cc
diff --git a/modules.d/50plymouth/plymouth-newroot.sh b/modules.d/50plymouth/plymouth-newroot.sh
Harald Hoyer 12f6cc
index e03e98d..ffbabf1 100755
Harald Hoyer 12f6cc
--- a/modules.d/50plymouth/plymouth-newroot.sh
Harald Hoyer 12f6cc
+++ b/modules.d/50plymouth/plymouth-newroot.sh
Harald Hoyer 12f6cc
@@ -2,6 +2,6 @@
Harald Hoyer 12f6cc
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer 12f6cc
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer 12f6cc
 
Harald Hoyer 12f6cc
-if [ -x /bin/plymouth ]; then
Harald Hoyer 12f6cc
+if [ -x /bin/plymouth ! -x /lib/systemd/systemd ]; then
Harald Hoyer 12f6cc
     /bin/plymouth --newroot=$NEWROOT
Harald Hoyer 12f6cc
 fi
Harald Hoyer 12f6cc
diff --git a/modules.d/50plymouth/plymouth-pretrigger.sh b/modules.d/50plymouth/plymouth-pretrigger.sh
Harald Hoyer 12f6cc
index ddb8ddb..c52cf83 100755
Harald Hoyer 12f6cc
--- a/modules.d/50plymouth/plymouth-pretrigger.sh
Harald Hoyer 12f6cc
+++ b/modules.d/50plymouth/plymouth-pretrigger.sh
Harald Hoyer 12f6cc
@@ -2,7 +2,7 @@
Harald Hoyer 12f6cc
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer 12f6cc
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer 12f6cc
 
Harald Hoyer 12f6cc
-if [ -x /bin/plymouthd ]; then
Harald Hoyer 12f6cc
+if [ -x /bin/plymouthd -a ! -x /lib/systemd/systemd ]; then
Harald Hoyer 12f6cc
     if getargbool 1 plymouth.enable && getargbool 1 rd.plymouth -d -n rd_NO_PLYMOUTH; then
Harald Hoyer 12f6cc
         # first trigger graphics subsystem
Harald Hoyer 12f6cc
         udevadm trigger --action=add --attr-match=class=0x030000 >/dev/null 2>&1