Skip to content

Commit fe8fa2b

Browse files
aafeijoo-susejohannbg
authored andcommitted
fix(i18n): add required includes for keymaps
Commit f3441cc7 removed shell options but didn't adapt all the code that requires nullglob and globstar. This caused the initrd to be generated without the required includes for keymaps.
1 parent 7fa0094 commit fe8fa2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules.d/10i18n/module-setup.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ install() {
6363
readarray -t INCLUDES < <("$CMD" '^include ' "$MAP" | while read -r _ a _ || [ -n "$a" ]; do echo "${a//\"/}"; done)
6464
6565
for INCL in "${INCLUDES[@]}"; do
66-
for FN in "$dracutsysrootdir""${kbddir}"/keymaps/**/"$INCL"*; do
66+
local -a FNS
67+
mapfile -t -d '' FNS < <(find "${dracutsysrootdir}${kbddir}"/keymaps/ -type f -name "${INCL}*" -print0)
68+
for FN in "${FNS[@]}"; do
6769
[[ -f $FN ]] || continue
6870
[[ -v KEYMAPS["$FN"] ]] || findkeymap "$FN"
6971
done

0 commit comments

Comments
 (0)