mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-25 06:31:26 +00:00
Do the metalink->mirrorlist dodge in live_build mock config
This avoids hitting slow metadata downloads in mock env. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
04b716329a
commit
d71daa1fe4
@ -22,6 +22,8 @@ sub run {
|
||||
assert_script_run "head -n-1 /etc/mock/fedora-${version}-${arch}.cfg >> /etc/mock/openqa.cfg";
|
||||
# now add the side repo to the config
|
||||
assert_script_run 'printf "[advisory]\nname=Advisory repo\nbaseurl=file:///opt/update_repo\nenabled=1\nmetadata_expire=3600\ngpgcheck=0\n\"\"\"" >> /etc/mock/openqa.cfg';
|
||||
# replace metalink with mirrorlist so we don't get slow mirrors
|
||||
assert_script_run "sed -i -e 's,metalink,mirrorlist,g' /etc/mock/openqa.cfg";
|
||||
# upload the config so we can check it's OK
|
||||
upload_logs "/etc/mock/openqa.cfg";
|
||||
# now check out the kickstarts
|
||||
|
Loading…
Reference in New Issue
Block a user