Configure YUM plugins off in basic postinstall
authorMartin Schwenke <martin@meltin.net>
Thu, 9 Feb 2012 03:13:36 +0000 (14:13 +1100)
committerMartin Schwenke <martin@meltin.net>
Thu, 9 Feb 2012 03:13:36 +0000 (14:13 +1100)
The fastest mirror plugin (used by CentOS and Fedora) is particularly
annoying because we don't tend to even use the standard mirrors.

Signed-off-by: Martin Schwenke <martin@meltin.net>
templates/basic-postinstall.sh

index b380d420f9557f7bd5f80a2561ac861bc099727b..30b57588d62f059cab12954f3b18153871bb6fb8 100644 (file)
@@ -25,6 +25,11 @@ cat << EOF > /etc/yum.repos.d/autocluster.repo
 @@@YUM_TEMPLATE@@@
 EOF
 
+# CentOS has some weird plugins that slow thing down
+echo "Switching off YUM plugins"
+
+sed -i -e 's@^plugins=1@plugins=0@' /etc/yum.conf
+
 echo "Updating from YUM repositories"
 yum clean all
 yum -y update