fix: force UTF-8 console with Terminus font for ASCII logo
The Archipelago ASCII logo uses Unicode block characters (▄▀█) which render as garbled symbols when the console font doesn't support them. Force Uni2 codeset + Terminus font in both the live ISO and installed system's console-setup config. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
953b03f327
commit
77a46fae8d
@ -231,7 +231,9 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|||||||
RUN echo "keyboard-configuration keyboard-configuration/layoutcode string us" | debconf-set-selections && \
|
RUN echo "keyboard-configuration keyboard-configuration/layoutcode string us" | debconf-set-selections && \
|
||||||
echo "keyboard-configuration keyboard-configuration/model select Generic 105-key PC" | debconf-set-selections && \
|
echo "keyboard-configuration keyboard-configuration/model select Generic 105-key PC" | debconf-set-selections && \
|
||||||
echo "console-setup console-setup/charmap47 select UTF-8" | debconf-set-selections && \
|
echo "console-setup console-setup/charmap47 select UTF-8" | debconf-set-selections && \
|
||||||
echo "console-setup console-setup/codeset47 select Guess optimal character set" | debconf-set-selections
|
echo "console-setup console-setup/codeset47 select Uni2" | debconf-set-selections && \
|
||||||
|
echo "console-setup console-setup/fontface47 select Terminus" | debconf-set-selections && \
|
||||||
|
echo "console-setup console-setup/fontsize-fb47 select 16" | debconf-set-selections
|
||||||
|
|
||||||
# Enable non-free-firmware repo — replace DEB822 sources with traditional format
|
# Enable non-free-firmware repo — replace DEB822 sources with traditional format
|
||||||
# (DEB822 sed was silently failing, so just overwrite with known-good sources.list)
|
# (DEB822 sed was silently failing, so just overwrite with known-good sources.list)
|
||||||
@ -1989,6 +1991,15 @@ fi
|
|||||||
PROFILE
|
PROFILE
|
||||||
chmod +x /mnt/target/etc/profile.d/archipelago.sh
|
chmod +x /mnt/target/etc/profile.d/archipelago.sh
|
||||||
|
|
||||||
|
# Force UTF-8 console with Terminus font (supports Unicode block chars for ASCII logo)
|
||||||
|
cat > /mnt/target/etc/default/console-setup <<'CONSOLESETUP'
|
||||||
|
ACTIVE_CONSOLES="/dev/tty[1-6]"
|
||||||
|
CHARMAP="UTF-8"
|
||||||
|
CODESET="Uni2"
|
||||||
|
FONTFACE="Terminus"
|
||||||
|
FONTSIZE="16"
|
||||||
|
CONSOLESETUP
|
||||||
|
|
||||||
# Suppress default Debian MOTD (our profile.d script handles the welcome)
|
# Suppress default Debian MOTD (our profile.d script handles the welcome)
|
||||||
echo -n > /mnt/target/etc/motd
|
echo -n > /mnt/target/etc/motd
|
||||||
rm -f /mnt/target/etc/motd.d/* 2>/dev/null || true
|
rm -f /mnt/target/etc/motd.d/* 2>/dev/null || true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user