Blame 0020-50plymouth-add-plymouth.enable-kernel-command-line-o.patch

Harald Hoyer 55891e
From a3381af1dedf5325197dba00fb24ca36376f4c23 Mon Sep 17 00:00:00 2001
Harald Hoyer 55891e
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 55891e
Date: Mon, 29 Aug 2011 18:30:26 +0200
Harald Hoyer 55891e
Subject: [PATCH] 50plymouth: add plymouth.enable kernel command line option
Harald Hoyer 55891e
Harald Hoyer 55891e
---
Harald Hoyer 55891e
 dracut.kernel.7.xml                         |    8 +++++++-
Harald Hoyer 55891e
 modules.d/50plymouth/plymouth-pretrigger.sh |    2 +-
Harald Hoyer 55891e
 2 files changed, 8 insertions(+), 2 deletions(-)
Harald Hoyer 55891e
Harald Hoyer 55891e
diff --git a/dracut.kernel.7.xml b/dracut.kernel.7.xml
Harald Hoyer 55891e
index 894b640..b6e59e6 100644
Harald Hoyer 55891e
--- a/dracut.kernel.7.xml
Harald Hoyer 55891e
+++ b/dracut.kernel.7.xml
Harald Hoyer 55891e
@@ -696,11 +696,17 @@ rd.znet=ctc,0.0.0600,0.0.0601,0.0.0602,protocol=bar</programlisting></para>
Harald Hoyer 55891e
       <title>Plymouth Boot Splash</title>
Harald Hoyer 55891e
       <variablelist>
Harald Hoyer 55891e
         <varlistentry>
Harald Hoyer 55891e
-          <term><envar>rd.plymouth</envar>=0</term>
Harald Hoyer 55891e
+          <term><envar>plymouth.enable</envar>=0</term>
Harald Hoyer 55891e
           <listitem>
Harald Hoyer 55891e
             <para>disable the plymouth bootsplash.</para>
Harald Hoyer 55891e
           </listitem>
Harald Hoyer 55891e
         </varlistentry>
Harald Hoyer 55891e
+        <varlistentry>
Harald Hoyer 55891e
+          <term><envar>rd.plymouth</envar>=0</term>
Harald Hoyer 55891e
+          <listitem>
Harald Hoyer 55891e
+            <para>disable the plymouth bootsplash only for the initramfs.</para>
Harald Hoyer 55891e
+          </listitem>
Harald Hoyer 55891e
+        </varlistentry>
Harald Hoyer 55891e
       </variablelist>
Harald Hoyer 55891e
     </refsect2>
Harald Hoyer 55891e
    <refsect2>
Harald Hoyer 55891e
diff --git a/modules.d/50plymouth/plymouth-pretrigger.sh b/modules.d/50plymouth/plymouth-pretrigger.sh
Harald Hoyer 55891e
index 25ed06f..534948e 100755
Harald Hoyer 55891e
--- a/modules.d/50plymouth/plymouth-pretrigger.sh
Harald Hoyer 55891e
+++ b/modules.d/50plymouth/plymouth-pretrigger.sh
Harald Hoyer 55891e
@@ -2,7 +2,7 @@
Harald Hoyer 55891e
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer 55891e
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer 55891e
 
Harald Hoyer 55891e
-if getargbool 1 rd.plymouth -n rd_NO_PLYMOUTH; then
Harald Hoyer 55891e
+if getargbool 1 plymouth.enable && getargbool 1 rd.plymouth -n rd_NO_PLYMOUTH; then
Harald Hoyer 55891e
     [ -c /dev/null ] || mknod -m 0666 /dev/null c 1 3
Harald Hoyer 55891e
     # first trigger graphics subsystem
Harald Hoyer 55891e
     udevadm trigger --action=add --attr-match=class=0x030000 >/dev/null 2>&1