add initial initramfs support, not quite working yet

This commit is contained in:
2025-10-12 00:46:05 -07:00
parent fc239ea54d
commit 5f5ef1ddd3
6 changed files with 26 additions and 41 deletions

View File

@@ -9,8 +9,9 @@ COPY sprout.efi /work/${EFI_NAME}.EFI
COPY sprout.toml /work/SPROUT.TOML
COPY kernel.efi /work/KERNEL.EFI
COPY shell.efi /work/SHELL.EFI
COPY initramfs /work/INITRAMFS
COPY edera-splash.png /work/EDERA-SPLASH.PNG
RUN truncate -s256MiB sprout.img && \
RUN truncate -s128MiB sprout.img && \
parted --script sprout.img mklabel gpt > /dev/null 2>&1 && \
parted --script sprout.img mkpart primary fat32 1MiB 100% > /dev/null 2>&1 && \
parted --script sprout.img set 1 esp on > /dev/null 2>&1 && \
@@ -22,6 +23,7 @@ RUN truncate -s256MiB sprout.img && \
mcopy -i sprout.img SHELL.EFI ::/EFI/BOOT/ && \
mcopy -i sprout.img SPROUT.TOML ::/ && \
mcopy -i sprout.img EDERA-SPLASH.PNG ::/ && \
mcopy -i sprout.img INITRAMFS ::/ && \
mv sprout.img /sprout.img
FROM scratch AS final