dracut/0180-i18n_add_correct_fontmaps.patch
Thomas Renninger d26a160145 Accepting request 331496 from home:favogt:branches:Base:System
Fix systemd-vconsole-error properly (bsc#943312 and bsc#932981)
-Rewrite 0180-dracut-add-trivial-vconsole-fontmap.patch as 0180-i18n_add_correct_fontmaps.patch

OBS-URL: https://build.opensuse.org/request/show/331496
OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=227
2015-09-17 07:45:51 +00:00

18 lines
794 B
Diff

Index: dracut-043/modules.d/10i18n/module-setup.sh
===================================================================
--- dracut-043.orig/modules.d/10i18n/module-setup.sh
+++ dracut-043/modules.d/10i18n/module-setup.sh
@@ -196,7 +196,11 @@ install() {
if [[ ${FONT_MAP} ]]
then
FONT_MAP=${FONT_MAP%.trans}
- inst_simple ${kbddir}/consoletrans/${FONT_MAP}.trans
+ # There are three different formats that setfont supports
+ inst_simple ${kbddir}/consoletrans/${FONT_MAP} \
+ || inst_simple ${kbddir}/consoletrans/${FONT_MAP}.trans \
+ || inst_simple ${kbddir}/consoletrans/${FONT_MAP}_to_uni.trans \
+ || dwarn "Could not find FONT_MAP ${FONT_MAP}!"
fi
if [[ ${FONT_UNIMAP} ]]