Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Mar 2026 21:25:50 +0000
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 277830b4d3ae - main - EC2: Don't use unicode in boot loader
Message-ID:  <69b480de.43b82.e1c0e5d@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=277830b4d3ae9999c80bf915b5491850e91c6516

commit 277830b4d3ae9999c80bf915b5491850e91c6516
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2026-03-13 20:45:05 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2026-03-13 21:25:46 +0000

    EC2: Don't use unicode in boot loader
    
    The boot loader menu is disabled by default in EC2, but if it is ever
    turned on, the default (unicode) output breaks EC2's web interface to
    the serial console.
    
    Set loader_menu_frame="ascii" instead.
    
    MFC after:      3 days
    Sponsored by:   Amazon
---
 release/tools/ec2.conf | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf
index 744ac24a3f0f..62d7d1957aaf 100644
--- a/release/tools/ec2.conf
+++ b/release/tools/ec2.conf
@@ -41,9 +41,11 @@ ec2_common() {
 	metalog_add_data ./boot.config
 
 	# Booting quickly is more important than giving users a chance to
-	# access the boot loader via the serial port.
+	# access the boot loader via the serial port; but if users turn the
+	# boot loader back on, avoid ASCII since it breaks the EC2 web console.
 	echo 'autoboot_delay="-1"' >> ${DESTDIR}/boot/loader.conf
 	echo 'beastie_disable="YES"' >> ${DESTDIR}/boot/loader.conf
+	echo 'loader_menu_frame="ascii"' >> ${DESTDIR}/boot/loader.conf
 
 	# The EFI RNG on Graviton 2 is particularly slow if we ask for the
 	# default 2048 bytes of entropy; ask for 64 bytes instead.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69b480de.43b82.e1c0e5d>