Rebranding the boot menu: WROLPi splash, WROLPi menu entries.

The auto-generated live-build splash.png composes a yellow "build worker"
hardhat with "Debian GNU/Linux 12 (bookworm) amd64" baked in as a PNG
overlay.  Both GRUB and ISOLINUX use it as the menu background, so it's
the first thing users see at boot.

Two replacement splash images (800x600 for GRUB, 640x480 for ISOLINUX)
land via config/includes.binary/, generated once from the project's
icon.png (the wifi-pie favicon).  No build-time composition needed; the
files are checked in as binary blobs.

A *.binary hook then seds the live-build-generated menu entries so the
GRUB and ISOLINUX text reads:

  Run WROLPi (live)             ← was "Live system (amd64)"
  Run WROLPi (live, fail-safe)  ← was "Live system (amd64 fail-safe mode)"
  Install WROLPi                ← was "Start installer"
  Install WROLPi (speech)       ← was "Start installer with speech synthesis"

We can't override live-build's substitution source without patching the
distro-installed `binary_grub_cfg` script; doing it after the fact in a
.binary hook keeps the customisation in our config tree.

Note: this rebrands what GRUB / ISOLINUX render *around* the d-i menus.
Once the user selects "Install WROLPi" and d-i actually launches, the
yellow hardhat reappears inside d-i's own screens — that logo
(logo_installer.png) lives inside the d-i initrd and would require a
custom initrd rebuild to swap.  Punting on that for now.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Roland 2026-05-24 19:01:59 -06:00
parent 3e921b74b8
commit ee142c8af6
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
3 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,40 @@
#!/bin/sh
# Rebrand the live-build generated boot menus.
#
# live-build templates substitute @LINUX_LIVE@ etc. with text like
# "Live system (amd64)" (see /usr/lib/live/build/binary_grub_cfg) and
# similar strings into ISOLINUX live.cfg. We can't override the
# substitution source without patching live-build itself; instead this
# hook runs in the binary stage after the generated files exist and
# seds the strings in place.
#
# splash.png on the GRUB / ISOLINUX menus is replaced via
# config/includes.binary/{boot/grub,isolinux}/splash.png — those land
# during chroot_includes_after_packages and overwrite the auto-generated
# Debian splash (which contained the yellow hardhat and a "Debian
# GNU/Linux 12 (bookworm) amd64" line).
set -e
# GRUB (UEFI + grub-pc)
for f in binary/boot/grub/grub.cfg \
binary/boot/grub/install_start.cfg \
binary/boot/grub/install.cfg; do
[ -f "$f" ] && sed -i \
-e 's|Live system (amd64)|Run WROLPi (live)|g' \
-e 's|Live system (amd64 fail-safe mode)|Run WROLPi (live, fail-safe)|g' \
-e "s|'Start installer'|'Install WROLPi'|g" \
-e "s|'Start installer with speech synthesis'|'Install WROLPi (speech)'|g" \
"$f"
done
# ISOLINUX (BIOS)
for f in binary/isolinux/live.cfg \
binary/isolinux/install.cfg; do
[ -f "$f" ] && sed -i \
-e 's|Live system (amd64)|Run WROLPi (live)|g' \
-e 's|Live system (amd64 fail-safe mode)|Run WROLPi (live, fail-safe)|g' \
-e 's|Start ^installer|Install WROLPi|g' \
-e 's|Start installer with ^speech synthesis|Install WROLPi (speech)|g' \
"$f"
done

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB