aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-03-13 19:55:21 +0100
committerThomas Deutschmann <whissi@gentoo.org>2021-03-14 20:33:57 +0100
commitf492e244b60324fac15d7a8f6e74b4a022bdd3bd (patch)
tree353e6090473ca5aa12acd2d5eabc36670890d6db
parentlinuxrc: Drop "console" kernel argument handling (diff)
downloadgenkernel-f492e244b60324fac15d7a8f6e74b4a022bdd3bd.tar.gz
genkernel-f492e244b60324fac15d7a8f6e74b4a022bdd3bd.tar.bz2
genkernel-f492e244b60324fac15d7a8f6e74b4a022bdd3bd.zip
initrd.scripts: setup_keymap(): Skip keymap loading for serial consoles
Bug: https://bugs.gentoo.org/222699 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rw-r--r--defaults/initrd.scripts7
1 files changed, 7 insertions, 0 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index 505ca02..55fe73f 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -1417,6 +1417,13 @@ cmdline_hwopts() {
}
setup_keymap() {
+ local console=$(get_active_console)
+ if echo "${console}" | grep -qF 'ttyS'
+ then
+ warn_msg "Active console is ${console}; Skipping dokeymap ..."
+ return
+ fi
+
if [ "${DO_keymap}" ]
then
if [ ! -e /dev/vc/0 -a ! -e /dev/tty0 ]