summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorParide Legovini <pl@ninthfloor.org>2019-05-30 16:39:17 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2019-05-30 16:39:17 +0000
commit19ddb1fb11434f860daee2238cdc23a56b9dc86f (patch)
treee557b68c4104616e6358ed5c236dc3a376997a3a /tools
parentded1ec81e3c6c37c5241b12fcc3c41182e675dff (diff)
downloadvyos-cloud-init-19ddb1fb11434f860daee2238cdc23a56b9dc86f.tar.gz
vyos-cloud-init-19ddb1fb11434f860daee2238cdc23a56b9dc86f.zip
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.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run-container2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/run-container b/tools/run-container
index 852f4d1e..1d24e15b 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/ \
/etc/yum/pluginconf.d/fastestmirror.conf
- 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"
else
debug 1 "do not know how to configure proxy on $OS_NAME"
fi