[packages/dracut] Only install plymouth logo file if it exists Release 4

baggins baggins at pld-linux.org
Thu Aug 9 13:52:02 CEST 2012


commit ec2adbc4bdf005eadbea8674b733de12dda54903
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Aug 9 13:51:38 2012 +0200

    Only install plymouth logo file if it exists
    Release 4

 dracut.spec         |  4 +++-
 plymouth-logo.patch | 14 ++++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/dracut.spec b/dracut.spec
index 9420737..939c426 100644
--- a/dracut.spec
+++ b/dracut.spec
@@ -1,7 +1,7 @@
 Summary:	Initramfs generator using udev
 Name:		dracut
 Version:	020
-Release:	3
+Release:	4
 License:	GPL v2+
 Group:		Base
 Source0:	ftp://www.kernel.org/pub/linux/utils/boot/dracut/%{name}-%{version}.tar.xz
@@ -12,6 +12,7 @@ Patch1:		bash-sh.patch
 Patch2:		plymouth-libexec.patch
 Patch3:		reboot-opts.patch
 Patch4:		os-release.patch
+Patch5:		plymouth-logo.patch
 URL:		https://dracut.wiki.kernel.org/
 BuildRequires:	dash
 BuildRequires:	docbook-dtd45-xml
@@ -138,6 +139,7 @@ configuration.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %{__sed} -i -e 's, at lib@,%{_lib},g' modules.d/50plymouth/module-setup.sh
 
diff --git a/plymouth-logo.patch b/plymouth-logo.patch
new file mode 100644
index 0000000..9f619d8
--- /dev/null
+++ b/plymouth-logo.patch
@@ -0,0 +1,14 @@
+--- dracut-020/modules.d/50plymouth/plymouth-populate-initrd.sh~	2012-08-09 13:49:07.894845601 +0200
++++ dracut-020/modules.d/50plymouth/plymouth-populate-initrd.sh	2012-08-09 13:50:43.211508906 +0200
+@@ -6,9 +6,10 @@
+ 
+ inst /sbin/plymouthd /bin/plymouthd
+ dracut_install /bin/plymouth \
+-    "${PLYMOUTH_LOGO_FILE}" \
+     /etc/os-release
+ 
++[[ -f "${PLYMOUTH_LOGO_FILE}" ]] && dracut_install "${PLYMOUTH_LOGO_FILE}"
++
+ mkdir -m 0755 -p "${initdir}/usr/share/plymouth"
+ 
+ inst_libdir_file "plymouth/text.so" "plymouth/details.so"


More information about the pld-cvs-commit mailing list