Fixing rebrand binary hook (wrong cwd) and using the new transparent logo.

The rebrand hook from the previous commit failed during lb build because
it referenced files as `binary/boot/grub/grub.cfg` etc., but
live-build's binary_hooks runs each hook with cwd already set to
binary/ (it does `cd binary && ../$HOOK`).  The paths now drop the
`binary/` prefix.

Splash regenerated from the new transparent logo
(app/public/icon-transparent.png) so the wifi-pie has a clean white
outline on the dark splash background — better visual separation than
the white-stripped icon.png the previous splash used.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Roland 2026-05-24 19:45:19 -06:00
parent 635d0ea62c
commit 7750d61e09
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
4 changed files with 29 additions and 22 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 KiB

View file

@ -1,40 +1,47 @@
#!/bin/sh
# Rebrand the live-build generated boot menus.
#
# live-build invokes binary hooks with cwd = the build's binary/ directory
# (it does `cd binary && ../hook`), so paths here are relative to binary/.
#
# 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.
# hook runs after the binary stage generated the files 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).
# automatically 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"
for f in boot/grub/grub.cfg \
boot/grub/install_start.cfg \
boot/grub/install.cfg; do
if [ -f "$f" ]; then
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"
fi
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"
for f in isolinux/live.cfg \
isolinux/install.cfg; do
if [ -f "$f" ]; then
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"
fi
done

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 59 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Before After
Before After