Draft
Add Raspberry Pi (arm64) raspbian distro with its own bake target#1
Conversation
Co-authored-by: dseif0x <11018429+dseif0x@users.noreply.github.com> Agent-Logs-Url: https://github.com/dseif0x/os-docker/sessions/e4d2ebd7-5a36-4121-8e30-108234027823
Copilot
AI
changed the title
[WIP] Add Raspberry Pi arm64 support as a new Raspbian target
Add Raspberry Pi (arm64) raspbian distro with its own bake target
Mar 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new
raspbiandistro targetinglinux/arm64only, using traditional Raspberry Pi firmware boot instead of GRUB EFI.New files
raspbian/Dockerfile—debian:bookworm-slimbase; adds the RPi Foundation apt repo to pullraspberrypi-bootloader(GPU firmware:start4.elf,fixup4.dat, overlays, etc.); installslinux-image-arm64+ systemd networkingdocker-bake.hcltarget "rootfs-raspbian"andtarget "disk-image-raspbian"—linux/arm64only,EFI_SIZE=256M(to fit firmware + kernel + initrd)defaultgroup to avoid conflicts with the CI matrix*.platformoverrideDockerfile.disk-imageARG DISTROmoved before the package installRUNso the GRUB condition worksgrub-efi-*-bin,grub2-common) skipped whenDISTRO=raspbianbuild-image.shBOOT_MNTvariable replaces the hardcoded/boot/efipath — set to/boot/firmwarefor raspbian,/boot/efiotherwise; propagated through cleanup, mount, unmount, and fstabDISTRO=raspbian): copiesvmlinuz-*→kernel8.imgandinitrd.img-*→initrd.imgonto the FAT32 partition, then writes:config.txt—arm_64bit=1, kernel/initramfs pointerscmdline.txt—PARTUUID-based root, serial console,rootwait⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.