feat: Added custom BIOS logo (#319)

This commit is contained in:
Kroese 2025-09-30 01:16:08 +02:00 committed by GitHub
parent 05dad712f3
commit 1f31b50ff8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -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 && \

View file

@ -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