commit: 6f2867c2bcc027cfe088804dfeb5d3a6b3866a3e
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 13 19:09:48 2021 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sun Mar 14 19:34:02 2021 +0000
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=6f2867c2
linuxrc: Skip loading embedded boot font for serial consoles
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
defaults/linuxrc | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
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