git: 660a79ef4f11 - stable/15 - EC2: Don't use unicode in boot loader

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Wed, 18 Mar 2026 19:10:29 UTC
The branch stable/15 has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=660a79ef4f1112c90690b56c6e5ac7532428ec8c

commit 660a79ef4f1112c90690b56c6e5ac7532428ec8c
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2026-03-13 20:45:05 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2026-03-18 19:05:33 +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
    
    (cherry picked from commit 277830b4d3ae9999c80bf915b5491850e91c6516)
    (cherry picked from commit 251907ca480eff7f6177f52959b71a6cfce45579)
---
 release/tools/ec2.conf | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf
index 335db6cca93a..b8a7bac2ce00 100644
--- a/release/tools/ec2.conf
+++ b/release/tools/ec2.conf
@@ -45,9 +45,12 @@ 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 unicode 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.