public inbox for initramfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix wrong keymap inclusion
@ 2016-06-17 12:25 Fabian Vogt
       [not found] ` <1711921.0d4JtWs6XN-Bm6d+KqpjsTpRLhIRNQA6g@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Fabian Vogt @ 2016-06-17 12:25 UTC (permalink / raw)
  To: initramfs

For MAP=lt, dracut would choose lt.std.map instead of lt.map.

Signed-off-by: Fabian Vogt <fvogt-IBi9RG/b67k@public.gmane.org>
---
 modules.d/10i18n/module-setup.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules.d/10i18n/module-setup.sh b/modules.d/10i18n/module-setup.sh
index 9618aa7..2eae5d0 100755
--- a/modules.d/10i18n/module-setup.sh
+++ b/modules.d/10i18n/module-setup.sh
@@ -30,8 +30,9 @@ install() {
     # This is from 10redhat-i18n.
     findkeymap () {
         local MAP=$1
+        local MAPNAME=${1%.map*}
         [[ ! -f $MAP ]] && \
-            MAP=$(find ${kbddir}/keymaps -type f -name $MAP -o -name $MAP.\* | head -n1)
+            MAP=$(find ${kbddir}/keymaps -type f -name ${MAPNAME} -o -name ${MAPNAME}.map -o -name ${MAPNAME}.map.\* | head -n1)
         [[ " $KEYMAPS " = *" $MAP "* ]] && return
         KEYMAPS="$KEYMAPS $MAP"
         case $MAP in
-- 
2.8.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-17 13:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-17 12:25 [PATCH] Fix wrong keymap inclusion Fabian Vogt
     [not found] ` <1711921.0d4JtWs6XN-Bm6d+KqpjsTpRLhIRNQA6g@public.gmane.org>
2016-06-17 13:03   ` Dracut GitHub Import Bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox