aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-03-13 20:09:48 +0100
committerThomas Deutschmann <whissi@gentoo.org>2021-03-14 20:34:02 +0100
commit6f2867c2bcc027cfe088804dfeb5d3a6b3866a3e (patch)
tree723a34386fde45e92bd778440ba689e0bee2c2e7
parentinitrd.scripts: setup_keymap(): Skip keymap loading for serial consoles (diff)
downloadgenkernel-6f2867c2bcc027cfe088804dfeb5d3a6b3866a3e.tar.gz
genkernel-6f2867c2bcc027cfe088804dfeb5d3a6b3866a3e.tar.bz2
genkernel-6f2867c2bcc027cfe088804dfeb5d3a6b3866a3e.zip
linuxrc: Skip loading embedded boot font for serial consoles
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rw-r--r--defaults/linuxrc8
1 files changed, 7 insertions, 1 deletions
diff --git a/defaults/linuxrc b/defaults/linuxrc
index acb246c..7888130 100644
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -453,7 +453,13 @@ good_msg "${gk_ver} (${gk_build_date}). Linux kernel ${kernel_ver}"
if [ "${GK_BOOTFONT_DISABLED}" = '0' -a -e /lib/console/font ]
then
- hash setfont >/dev/null 2>&1 && run setfont /lib/console/font -C ${CONSOLE} 2>&1
+ if echo "$(get_active_console)" | grep -qF ttyS
+ then
+ warn_msg "Active console is ${console}; Not loading embedded boot font ..."
+ elif hash setfont >/dev/null 2>&1
+ then
+ run setfont /lib/console/font -C ${CONSOLE} 2>&1
+ fi
fi
quiet_kmsg