git.samba.org
/
autocluster.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e37d81
)
Configure YUM plugins off in basic postinstall
author
Martin Schwenke
<martin@meltin.net>
Thu, 9 Feb 2012 03:13:36 +0000
(14:13 +1100)
committer
Martin 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
patch
|
blob
|
history
diff --git
a/templates/basic-postinstall.sh
b/templates/basic-postinstall.sh
index b380d420f9557f7bd5f80a2561ac861bc099727b..30b57588d62f059cab12954f3b18153871bb6fb8 100644
(file)
--- a/
templates/basic-postinstall.sh
+++ b/
templates/basic-postinstall.sh
@@
-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