Skip to content

arch-nspawn: include all host mirrors in nspawn

Kristian Klausen requested to merge github/fork/AladW/mirrorlist-full into master

Created by: AladW

https://lists.archlinux.org/pipermail/arch-projects/2018-July/004970.html

The original scenario was a host with a local caching service. As arch-nspawn would only choose the very first mirror in the host pacman configuration, only this caching service would be available in the nspawn container. Avoid this by including all mirrors on the host to the container.

To avoid unnecessary mangling with sed, pacconf --raw is used instead of pacman-conf. This introduces a dependency of pacutils on devtools, but could be changed if required.


If for some reason the pacutils dependency is not desired, I can change this PR to make it use pacman-conf instead. Note that pacman-conf does not support --raw.

Merge request reports