Skip to content

Commit

Permalink
fix(i18n): add required includes for keymaps
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
aafeijoo-suse authored and johannbg committed Jul 8, 2022
1 parent 7fa0094 commit fe8fa2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules.d/10i18n/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ install() {
readarray -t INCLUDES < <("$CMD" '^include ' "$MAP" | while read -r _ a _ || [ -n "$a" ]; do echo "${a//\"/}"; done)
for INCL in "${INCLUDES[@]}"; do
for FN in "$dracutsysrootdir""${kbddir}"/keymaps/**/"$INCL"*; do
local -a FNS
mapfile -t -d '' FNS < <(find "${dracutsysrootdir}${kbddir}"/keymaps/ -type f -name "${INCL}*" -print0)
for FN in "${FNS[@]}"; do
[[ -f $FN ]] || continue
[[ -v KEYMAPS["$FN"] ]] || findkeymap "$FN"
done
Expand Down

0 comments on commit fe8fa2b

Please sign in to comment.