plymouth/0002-Install-label-ft-plugin-into-initrd-if-available.patch
Cliff Zhao 6a62597195 Accepting request 814727 from home:qzhao:branches:Base:System
Drop plymouth-only_use_fb_for_cirrus_bochs.patch: openSUSE user are using emu-5.0.0 on MacOS-X with HVF acceleration, the Plymouth theme with script module fails to go to graphic mode with this patch(boo#1172028).

OBS-URL: https://build.opensuse.org/request/show/814727
OBS-URL: https://build.opensuse.org/package/show/Base:System/plymouth?expand=0&rev=261
2020-06-15 15:16:28 +00:00

20 lines
976 B
Diff

diff -Nura plymouth-0.9.4+git20190304.ed9f201/scripts/plymouth-populate-initrd.in plymouth-0.9.4+git20190304.ed9f201_new/scripts/plymouth-populate-initrd.in
--- plymouth-0.9.4+git20190304.ed9f201/scripts/plymouth-populate-initrd.in 2019-03-12 20:11:18.845236943 +0800
+++ plymouth-0.9.4+git20190304.ed9f201_new/scripts/plymouth-populate-initrd.in 2019-03-12 20:25:34.933746928 +0800
@@ -433,6 +433,15 @@
inst_recur "${PLYMOUTH_IMAGE_DIR}"
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