Thanks for the review gents. Pushed changes to source the default apt mirror url from the existing chroot image /etc/apt/sources.list if --apt-mirror is not provided.
This should default to http://ports.ubuntu.com/ubuntu-ports/ or http://archive.ubuntu.com/ubuntu/ or whatever URL is in the multi-line /etc/apt/sources.list file in the image.
This way we don't have to statically map a given architecture to a known (possibly stale) APT URL.
Thanks for the review gents. Pushed changes to source the default apt mirror url from the existing chroot image /etc/apt/ sources. list if --apt-mirror is not provided. ports.ubuntu. com/ubuntu- ports/ or http:// archive. ubuntu. com/ubuntu/ or whatever URL is in the multi-line /etc/apt/ sources. list file in the image.
This should default to http://
This way we don't have to statically map a given architecture to a known (possibly stale) APT URL.