File 0172-i18n_add_correct_fontmaps.patch of Package dracut.892

From cd93e441d013a346ab9de4976b7ffc14236fa078 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fvogt@suse.com>
Date: Mon, 21 Sep 2015 17:09:18 +0200
Subject: [PATCH] Install correct FONT_MAP files

Not all files under /usr/share/kbd/consoletrans follow the same scheme,
some use ${FONT_MAP}, others ${FONT_MAP}.trans or even ${FONT_MAP}_to_uni.trans.
This patch makes sure that the correct files are installed into the initrd.

References: boo#932981 boo#943312 bnc#904214
Signed-off-by: Fabian Vogt <fvogt@suse.com>
---
 modules.d/10i18n/module-setup.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules.d/10i18n/module-setup.sh b/modules.d/10i18n/module-setup.sh
index f7ec0d9..494891b 100755
--- a/modules.d/10i18n/module-setup.sh
+++ b/modules.d/10i18n/module-setup.sh
@@ -198,7 +198,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} ]]
-- 
2.5.1