← Back to team overview

cloud-init-dev team mailing list archive

[Merge] ~legovini/cloud-init:copr-disable-mirrorlist into cloud-init:master


Paride Legovini has proposed merging ~legovini/cloud-init:copr-disable-mirrorlist into cloud-init:master.

Commit message:
run-container: centos: comment out the repo mirrorlist

In this way only the 'baseurl' mirror is used, which is easier
to allow through firewalls and proxies.

Requested reviews:
  cloud-init commiters (cloud-init-dev)

For more details, see:
Your team cloud-init commiters is requested to review the proposed merge of ~legovini/cloud-init:copr-disable-mirrorlist into cloud-init:master.
diff --git a/tools/run-container b/tools/run-container
index 852f4d1..1d24e15 100755
--- a/tools/run-container
+++ b/tools/run-container
@@ -373,7 +373,7 @@ wait_for_boot() {
             inside "$name" sh -c "echo proxy=$http_proxy >> /etc/yum.conf"
             inside "$name" sed -i s/enabled=1/enabled=0/ \
-            inside "$name" sh -c "sed -i '/^#baseurl=/s/#//' /etc/yum.repos.d/*.repo"
+            inside "$name" sh -c "sed -i '/^#baseurl=/s/#// ; s/^mirrorlist/#mirrorlist/' /etc/yum.repos.d/*.repo"
             debug 1 "do not know how to configure proxy on $OS_NAME"