mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 13:14:05 +00: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:
@@ -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
|
||||
|
Reference in New Issue
Block a user