How can we have a single distrobuilder yaml for different architectures where the URL path differs between them.
Currently in the amazonlinux.yaml
image file this is the URL line:
https://cdn.amazonlinux.com/os-images/{{ image.release }}/container/amzn2-container-raw-{{ image.release }}-x86_64.tar.xz
The URL for the arm image is slightly different path-wise:
https://cdn.amazonlinux.com/os-images/{{ image.release }}/
container-arm64/amzn2-container-raw-{{ image.release }}-
arm64.tar.xz
The architecture in the filename would be easy enough to solve by using an arch variable, but I don’t know how to go about the path difference since one has the arch and the other omits it.
Edit:
The downloader is rootfs-http
, I imagine a custom downloader for Amazon linux might be the fix here if there’s not an easy way?