e2e_node: Improve coreos update disable mechanism

The previous method would still allow updates to download which slowed
down tests due to the network / disk IO
This commit is contained in:
Euan Kemp
2016-06-09 19:31:24 -07:00
parent 34996f1b84
commit 3d478a3fac

View File

@@ -41,6 +41,11 @@ EOF
sudo systemctl daemon-reload
fi
# For coreos, disable updates
if $(sudo systemctl status update-engine &>/dev/null); then
sudo systemctl mask update-engine locksmithd
fi
# Fixup sudoers require tty
sudo grep -q "# Defaults requiretty" /etc/sudoers
if [ $? -ne 0 ] ; then