``` console
382 | # shellcheck_disable=2016
383 | host_mirrors=($(pacman-conf --repo extra Server 2> /dev/null | sed -r 's#(.*/)extra/os/.*#\1$repo/os/$arch#'))
```
The regular expression matches the repository structure of the non ARM based Arch Linux mirrors (.../$repo/os/$arch). Thus when entering a chroot environment with arch-nspawn you end up with a mirrolist like that...
[code]
Server = [url]http://mirror.archlinuxarm.org/aarch64/extra[/url]
[/code]
This happens e.g. when you create a fresh chroot with mkarchroot

I suppose there are similar issues arising in lines 387 and 396 where regular expressions also use the non ARM based Arch Linux mirror structure