mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-11 01:41:54 -04:00
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:
parent
34996f1b84
commit
3d478a3fac
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue