RPi-Distro / pi-gen

Tool used to create the official Raspberry Pi OS images
BSD 3-Clause "New" or "Revised" License
2.52k stars 1.58k forks source link

Ensure loop device partition nodes are created (arm64 branch) (#741) #748

Closed jeffmakes closed 4 months ago

jeffmakes commented 5 months ago

Apply @acinonyx 's fix to the arm64 branch. I've tested this on an arm64 AWS instance where I'm developing a custom build. Apologies if I'm doing this wrong - this is only my ~third PR!

Although the loop block device is created before attaching the image to it, the devices for the partition that the image contains are still not created. This patch creates those devices as well, when they are not already available.

Fixes #482

XECDesign commented 5 months ago

Sorry, I should've merged master to arm64 and pushed the changes earlier. Is the version in arm64 working for you now?

jeffmakes commented 5 months ago

Yep, I've just tested it and it builds ok.