From ec2adbc4bdf005eadbea8674b733de12dda54903 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Thu, 9 Aug 2012 13:51:38 +0200 Subject: [PATCH] Only install plymouth logo file if it exists Release 4 --- dracut.spec | 4 +++- plymouth-logo.patch | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 plymouth-logo.patch 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,@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" -- 2.43.0