]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(i18n): remove Gentoo workaround that is no longer needed
authorJo Zzsi <jozzsicsataban@gmail.com>
Sat, 6 Sep 2025 18:49:40 +0000 (14:49 -0400)
committerBenjamin Drung <bdrung@ubuntu.com>
Tue, 13 Jan 2026 12:46:51 +0000 (13:46 +0100)
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.

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

index b9fd82dee884c3663b741910402c6a170bf8ec49..a92939fbf0db530619a6ebaf26ed4bab393297d1 100755 (executable)
@@ -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/}