test: Work around invalid fedora baseurls

In the newest Fedora 31 refresh (and in Fedora 32) `baseurl` in repos
contains `download.example`. That is of course not a valid domain.

Closes #1001
This commit is contained in:
Matej Marusak 2020-04-27 12:05:09 +02:00 committed by GitHub
parent c9c1283c56
commit 0c44e84cdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,10 @@ 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
# HACK: Fedora ships baseurl with `example.com` as domain
# Example: `#baseurl=http://download.example/pub/fedora/linux/updates/$releasever/Everything/$basearch/`
sed -i "s/download.example/dl.fedoraproject.org/" /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