Blame 0067-dracut-10i18n-support-default-loadkeys-setfont-data-.patch

Harald Hoyer b38677
From 5f91ed0b5345e132d9fe1fa815bfd968778df5ea Mon Sep 17 00:00:00 2001
Harald Hoyer b38677
From: Guido Trentalancia <guido@trentalancia.net>
Harald Hoyer b38677
Date: Fri, 15 Apr 2016 13:06:45 +0200
Harald Hoyer b38677
Subject: [PATCH] dracut: 10i18n: support default loadkeys/setfont data paths
Harald Hoyer b38677
 using symbolic links
Harald Hoyer b38677
Harald Hoyer b38677
Avoid keymap/font not found error when loadkeys/setfont
Harald Hoyer b38677
are compiled with the default data directory path.
Harald Hoyer b38677
Harald Hoyer b38677
Signed-off-by: Guido Trentalancia <guido@trentalancia.net>
Harald Hoyer b38677
---
Harald Hoyer b38677
 modules.d/10i18n/module-setup.sh | 7 +++++++
Harald Hoyer b38677
 1 file changed, 7 insertions(+)
Harald Hoyer b38677
Harald Hoyer b38677
diff --git a/modules.d/10i18n/module-setup.sh b/modules.d/10i18n/module-setup.sh
Harald Hoyer b38677
index 9439875..9618aa7 100755
Harald Hoyer b38677
--- a/modules.d/10i18n/module-setup.sh
Harald Hoyer b38677
+++ b/modules.d/10i18n/module-setup.sh
Harald Hoyer b38677
@@ -100,6 +100,13 @@ install() {
Harald Hoyer b38677
             inst_rules ${moddir}/10-console.rules
Harald Hoyer b38677
             inst_hook cmdline 20 "${moddir}/parse-i18n.sh"
Harald Hoyer b38677
         fi
Harald Hoyer b38677
+
Harald Hoyer b38677
+        if [[ ${kbddir} != "/usr/share" ]]; then
Harald Hoyer b38677
+            inst_dir /usr/share
Harald Hoyer b38677
+            for _src in $(eval echo {${KBDSUBDIRS}}); do
Harald Hoyer b38677
+                [ ! -e "${initdir}/usr/share/${_src}" ] && ln -s "${kbddir}/${_src}" "${initdir}/usr/share/${_src}"
Harald Hoyer b38677
+            done
Harald Hoyer b38677
+        fi
Harald Hoyer b38677
     }
Harald Hoyer b38677
 
Harald Hoyer b38677
     install_all_kbd() {