diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-03-13 19:55:21 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-03-14 20:33:57 +0100 |
commit | f492e244b60324fac15d7a8f6e74b4a022bdd3bd (patch) | |
tree | 353e6090473ca5aa12acd2d5eabc36670890d6db /defaults | |
parent | linuxrc: Drop "console" kernel argument handling (diff) | |
download | genkernel-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>
Diffstat (limited to 'defaults')
-rw-r--r-- | defaults/initrd.scripts | 7 |
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 ] |