Blame 0021-plymouth-do-not-install-hooks-in-systemd-mode.patch

Harald Hoyer a20c0e
From 7d17d6c976d705deebf3da46fd546b1fe7e1dd65 Mon Sep 17 00:00:00 2001
Harald Hoyer a20c0e
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer a20c0e
Date: Wed, 13 Mar 2013 10:51:17 +0100
Harald Hoyer a20c0e
Subject: [PATCH] plymouth: do not install hooks in systemd mode
Harald Hoyer a20c0e
Harald Hoyer a20c0e
---
Harald Hoyer a20c0e
 modules.d/50plymouth/module-setup.sh | 10 +++++++---
Harald Hoyer a20c0e
 1 file changed, 7 insertions(+), 3 deletions(-)
Harald Hoyer a20c0e
Harald Hoyer a20c0e
diff --git a/modules.d/50plymouth/module-setup.sh b/modules.d/50plymouth/module-setup.sh
Harald Hoyer a20c0e
index 1c5dad5..f754e24 100755
Harald Hoyer a20c0e
--- a/modules.d/50plymouth/module-setup.sh
Harald Hoyer a20c0e
+++ b/modules.d/50plymouth/module-setup.sh
Harald Hoyer a20c0e
@@ -17,12 +17,16 @@ install() {
Harald Hoyer a20c0e
         . "$moddir"/plymouth-populate-initrd.sh
Harald Hoyer a20c0e
     else
Harald Hoyer a20c0e
         PLYMOUTH_POPULATE_SOURCE_FUNCTIONS="$dracutfunctions" \
Harald Hoyer a20c0e
-            /usr/libexec/plymouth/plymouth-populate-initrd -t $initdir
Harald Hoyer a20c0e
+            /usr/libexec/plymouth/plymouth-populate-initrd -t "$initdir"
Harald Hoyer a20c0e
     fi
Harald Hoyer a20c0e
 
Harald Hoyer a20c0e
-    inst_hook pre-pivot 90 "$moddir"/plymouth-newroot.sh
Harald Hoyer a20c0e
-    inst_hook pre-trigger 10 "$moddir"/plymouth-pretrigger.sh
Harald Hoyer a20c0e
     inst_hook emergency 50 "$moddir"/plymouth-emergency.sh
Harald Hoyer a20c0e
+
Harald Hoyer a20c0e
     dracut_install readlink
Harald Hoyer a20c0e
+
Harald Hoyer a20c0e
+    if ! dracut_module_included "systemd"; then
Harald Hoyer a20c0e
+        inst_hook pre-trigger 10 "$moddir"/plymouth-pretrigger.sh
Harald Hoyer a20c0e
+        inst_hook pre-pivot 90 "$moddir"/plymouth-newroot.sh
Harald Hoyer a20c0e
+    fi
Harald Hoyer a20c0e
 }
Harald Hoyer a20c0e