From 1f31b50ff85191b95544aea90dc657a7281af682 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 30 Sep 2025 01:16:08 +0200 Subject: [PATCH] feat: Added custom BIOS logo (#319) --- Dockerfile | 2 -- src/boot.sh | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e89668f..a761857 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,8 +27,6 @@ ARG DEBCONF_NONINTERACTIVE_SEEN="true" RUN set -eu && \ apt-get update && \ apt-get --no-install-recommends -y install \ - xxd \ - fdisk \ mtools && \ apt-get clean && \ echo "$VERSION_ARG" > /run/version && \ diff --git a/src/boot.sh b/src/boot.sh index 74ba94d..3fb77e7 100644 --- a/src/boot.sh +++ b/src/boot.sh @@ -43,6 +43,9 @@ DEST="$STORAGE/$DEST" if [ ! -s "$DEST.rom" ] || [ ! -f "$DEST.rom" ]; then [ ! -s "$OVMF/$ROM" ] || [ ! -f "$OVMF/$ROM" ] && error "UEFI boot file ($OVMF/$ROM) not found!" && exit 44 cp "$OVMF/$ROM" "$DEST.rom" + if [[ "${LOGO:-}" != [Nn]* ]]; then + /run/utk.bin "$DEST.rom" replace_ffs LogoDXE "/var/www/img/macos.ffs" save "$DEST.rom" + fi fi if [ ! -s "$DEST.vars" ] || [ ! -f "$DEST.vars" ]; then