mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
Switch Raspberry Pi builds from proprietary firmware direct-boot to a firmware → U-Boot → GRUB → kernel chain using GPT partitioning: - GPT partition layout with fixed UUIDs matching os_install: firmware (128MB), ESP (100MB), boot (2GB FAT32), root (btrfs) - U-Boot as the kernel in config.txt, chainloading GRUB EFI - Pi-specific GRUB config overrides (console, USB quirks, cgroup) - Btrfs root with shrink-to-minimum for image compression - init_resize.sh updated for GPT (sgdisk -e) and btrfs resize - Removed os-partitions from config.yaml (now derived from fstab)
37 lines
715 B
Docker
37 lines
715 B
Docker
ARG SUITE=trixie
|
|
|
|
FROM debian:${SUITE}
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update && \
|
|
apt-get install -yq \
|
|
live-build \
|
|
procps \
|
|
binfmt-support \
|
|
qemu-utils \
|
|
qemu-user-static \
|
|
xorriso \
|
|
isolinux \
|
|
ca-certificates \
|
|
curl \
|
|
wget \
|
|
gpg \
|
|
git \
|
|
fdisk \
|
|
dosfstools \
|
|
e2fsprogs \
|
|
squashfs-tools \
|
|
rsync \
|
|
b3sum \
|
|
btrfs-progs \
|
|
gdisk \
|
|
dpkg-dev
|
|
|
|
|
|
COPY binary_grub-efi.patch /root/binary_grub-efi.patch
|
|
RUN patch /usr/lib/live/build/binary_grub-efi < /root/binary_grub-efi.patch && rm /root/binary_grub-efi.patch
|
|
|
|
RUN echo 'retry_connrefused = on' > /etc/wgetrc && \
|
|
echo 'tries = 100' >> /etc/wgetrc
|
|
|
|
WORKDIR /root |