fedora-bootc-raspi/Containerfile

17 lines
802 B
Docker

FROM quay.io/fedora/fedora-bootc:40
# bootupd currently does not support Raspberry Pi-specific firmware and bootloader files.
# This shim script copies the firmware and bootloader files to the correct location before
# calling the original bootupctl script.
# This is a temporary workaround until https://github.com/coreos/bootupd/issues/651 is resolved.
RUN dnf install -y bcm2711-firmware uboot-images-armv8 && \
cp -P /usr/share/uboot/rpi_arm64/u-boot.bin /boot/efi/rpi-u-boot.bin && \
mkdir -p /usr/lib/bootc-raspi-firmwares && \
cp -a /boot/efi/. /usr/lib/bootc-raspi-firmwares/ && \
dnf remove -y bcm2711-firmware uboot-images-armv8 && \
mkdir /usr/bin/bootupctl-orig && \
mv /usr/bin/bootupctl /usr/bin/bootupctl-orig/ && \
dnf clean all
COPY bootupctl-shim /usr/bin/bootupctl