From: Antonio Alvarez Feijoo Date: Mon, 27 Jun 2022 11:19:41 +0000 (+0200) Subject: fix(i18n): add required includes for keymaps X-Git-Tag: 058~207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe8fa2b0cadbb33e27c8dd8b5851548dcd65835c;p=thirdparty%2Fdracut.git fix(i18n): add required includes for keymaps Commit https://github.com/dracutdevs/dracut/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. --- diff --git a/modules.d/10i18n/module-setup.sh b/modules.d/10i18n/module-setup.sh index 35bda36fb..6fd5fd433 100755 --- a/modules.d/10i18n/module-setup.sh +++ b/modules.d/10i18n/module-setup.sh @@ -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