git: 1acf5071506e - stable/14 - EC2: Don't use unicode in boot loader
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 18 Mar 2026 19:11:15 UTC
The branch stable/14 has been updated by cperciva:
URL: https://cgit.FreeBSD.org/src/commit/?id=1acf5071506ee0b5db16800069eaef861b4a2e12
commit 1acf5071506ee0b5db16800069eaef861b4a2e12
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:10:48 +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 c0561227f72c..54fe15590d3b 100644
--- a/release/tools/ec2.conf
+++ b/release/tools/ec2.conf
@@ -35,9 +35,12 @@ ec2_common() {
echo 'net.inet6.ip6.dad_count=0' >> ${DESTDIR}/etc/sysctl.conf
# 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.