only hold walinux during VHD image creation
@@ -49,13 +49,14 @@ function holdWALinuxAgent() {
testOutboundConnection
waitForCloudInit
-holdWALinuxAgent
+
if [[ ! -z "${MASTER_NODE}" ]]; then
installEtcd
fi
if $FULL_INSTALL_REQUIRED; then
+ holdWALinuxAgent
installDeps
else
echo "Golden image; skipping dependencies installation"
@@ -117,6 +118,7 @@ if [[ ! -z "${MASTER_NODE}" ]]; then
fi
fi
+if $FULL_INSTALL_REQUIRED; then
if [[ $OS == $UBUNTU_OS_NAME ]]; then
# mitigation for bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1676635
echo 2dd1ce17-079e-403c-b352-a1921ee207ee > /sys/bus/vmbus/drivers/hv_util/unbind
@@ -124,6 +126,7 @@ if [[ $OS == $UBUNTU_OS_NAME ]]; then
retrycmd_if_failure 20 5 30 apt-mark unhold walinuxagent || exit $ERR_RELEASE_HOLD_WALINUXAGENT
fi
+fi
echo "Custom script finished successfully"
