From: Jo Zzsi Date: Sat, 6 Sep 2025 18:49:40 +0000 (-0400) Subject: fix(i18n): remove Gentoo workaround that is no longer needed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53ed2794084bfee92d58477f81fb796fb20e896c;p=thirdparty%2Fdracut-ng.git fix(i18n): remove Gentoo workaround that is no longer needed Gentoo no longer sets KEYMAP to something like "-u pl2", instead it is set to "pl12". This piece of code is part of the very original commit of the i18n dracut module from 2010 - 87122af There is no mention of '-u' in the oldest version of the wiki from 2013 https://wiki.gentoo.org/index.php?title=Keyboard_layout_switching&diff=1320347&oldid=16937 Remove this workaround that is no longer used or tested to make it easier to reason about the code. --- diff --git a/modules.d/20i18n/module-setup.sh b/modules.d/20i18n/module-setup.sh index b9fd82dee..a92939fbf 100755 --- a/modules.d/20i18n/module-setup.sh +++ b/modules.d/20i18n/module-setup.sh @@ -243,9 +243,6 @@ install() { fi shopt -q -u nocasematch - # Gentoo user may have KEYMAP set to something like "-u pl2", - KEYMAP=${KEYMAP#-* } - # openSUSE user may have KEYMAP set to something like ".gz" KEYMAP=${KEYMAP/.gz/}