`mkarchroot` is broken, due to conflict between `pacman-mirrors` and `arch-nspawn`
When mkmanjaroroot
is populating the manjaro-root with pacstrap
mkarchroot
356 pacstrap -GMcd ${pac_conf:+-C "$pac_conf"} "$working_dir" \⤶
357 "${cache_dirs[@]/#/--cachedir=}" "$@" || die 'Failed to install all packages'⤶
We end up with pristine /etc/pacman-mirrors.conf
file
/etc/pacman-mirrors.conf
in manjaro-root
1 ##⤶
2 ## /etc/pacman-mirrors.conf⤶
3 ##⤶
4 ⤶
5 ## Branch Pacman should use (stable, testing, unstable)⤶
6 # Branch = stable⤶
7 ⤶
8 ## Generation method⤶
9 ## 1) rank - rank mirrors depending on their access time⤶
10 ## 2) random - rando
Becaus Branch = stable
is commented out arch-nspawn
can't determine $branch
arch-nspawn
346 branch=$(cat "${working_dir}/etc/pacman-mirrors.conf" | grep '^Branch = ' | sed 's/Branch = \s*//g')
347 host_mirror=$(echo "$host_mirror" | sed -E "s#/branch/#/${branch}/#")
348 echo "Server = $host_mirror" >"$working_dir/etc/pacman.d/mirrorlist"
Which produce bugged manjaro-root without any url in /etc/pacman.d/mirrorlist