2016-02-08 15:24:08 +01:00
|
|
|
From 2c4145e4b7e146541ba8e33aee5e0125423d97bc Mon Sep 17 00:00:00 2001
|
|
|
|
From: Fabian Vogt <fvogt@suse.com>
|
|
|
|
Date: Wed, 20 Jan 2016 14:03:18 +0100
|
|
|
|
Subject: [PATCH 2/2] Install label-ft plugin into initrd, if available
|
|
|
|
|
|
|
|
It is small and useful enough to include it by default.
|
|
|
|
|
|
|
|
Signed-off-by: Fabian Vogt <fvogt@suse.com>
|
|
|
|
---
|
|
|
|
scripts/plymouth-populate-initrd.in | 9 +++++++++
|
|
|
|
1 file changed, 9 insertions(+)
|
|
|
|
|
2018-08-18 16:07:40 +02:00
|
|
|
Index: plymouth-0.9.3+git20180807.7663b0c/scripts/plymouth-populate-initrd.in
|
|
|
|
===================================================================
|
|
|
|
--- plymouth-0.9.3+git20180807.7663b0c.orig/scripts/plymouth-populate-initrd.in 2018-08-17 19:57:27.334004329 +0200
|
|
|
|
+++ plymouth-0.9.3+git20180807.7663b0c/scripts/plymouth-populate-initrd.in 2018-08-17 19:59:15.535202195 +0200
|
|
|
|
@@ -427,6 +427,15 @@ if [ -d ${PLYMOUTH_DATADIR}/plymouth/the
|
2017-12-19 17:40:22 +01:00
|
|
|
inst_recur "${PLYMOUTH_DATADIR}/plymouth/themes/${PLYMOUTH_THEME_NAME}"
|
2016-02-08 15:24:08 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
+if [ -f "${PLYMOUTH_PLUGIN_PATH}/label-ft.so" ]; then
|
|
|
|
+ inst ${PLYMOUTH_PLUGIN_PATH}/label-ft.so $INITRDDIR
|
|
|
|
+ font=$(fc-match -f %{file})
|
|
|
|
+ inst "$font" $INITRDDIR
|
|
|
|
+ # The label-ft plugin expects it at this location
|
|
|
|
+ mkdir -p $INITRDDIR/usr/share/fonts
|
|
|
|
+ ln -s "$font" $INITRDDIR/usr/share/fonts/Plymouth.ttf
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
if [ -L ${PLYMOUTH_DATADIR}/plymouth/themes/default.plymouth ]; then
|
|
|
|
cp -a ${PLYMOUTH_DATADIR}/plymouth/themes/default.plymouth $INITRDDIR${PLYMOUTH_DATADIR}/plymouth/themes
|
|
|
|
fi
|