]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
10i18n: Fix possible infinite recursion
authorDaniel Molkentin <dmolkentin@suse.com>
Fri, 27 Apr 2018 14:59:47 +0000 (16:59 +0200)
committerHarald Hoyer <harald@hoyer.xyz>
Thu, 3 May 2018 13:15:16 +0000 (15:15 +0200)
modules.d/10i18n/module-setup.sh

index 7320a91938f2fdc13bad155fd5e6ee516d9b4a42..0897181401a4b4247db8b422202ae07a68e5adf6 100755 (executable)
@@ -45,7 +45,7 @@ install() {
 
             for INCL in $($cmd "^include " $map | while read a a b || [ -n "$a" ]; do echo ${a//\"/}; done); do
                 for FN in $(find ${kbddir}/keymaps -type f -name $INCL\*); do
-                    findkeymap $FN
+                    strstr "$KEYMAPS" "$FN" || findkeymap $FN
                 done
             done
         done