tests: Disable mirrors

bcl: The mirrors are not very good at staying in sync, and if
composer hits one mirror and anaconda hits a different mirror,
you will see depsolve fail. The safest thing is to not use mirrors
in Fedora.
This commit is contained in:
Alexander Todorov 2019-10-28 11:14:57 +02:00 committed by Alexander Todorov
parent 89539a7bf4
commit cb7e391792
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,11 @@ if ! rpm -q beakerlib; then
fi
fi
# disable mirrors & re-enable direct download
sed -i "s/metalink.*//" /etc/yum.repos.d/*.repo
sed -i "s/#\(baseurl=.*\)/\1/" /etc/yum.repos.d/*.repo
sed -i "s/download.fedoraproject/dl.fedoraproject/" /etc/yum.repos.d/*.repo
# Grow root partition to make room for images. This only works on Fedora right now.
echo ", +" | sfdisk -N 2 -f /dev/vda
partprobe