mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 06:56:18 -05:00
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>
47 lines
1.7 KiB
Bash
Executable file
47 lines
1.7 KiB
Bash
Executable file
#!/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 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
|
|
# 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 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 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
|