@@ -199,9 +199,6 @@ function basePrep {
199199 fi
200200 setupCNIDirs
201201
202- # pre-warm containerd by checking its version.
203- nohup /bin/sh -c ' /usr/bin/containerd --version >/dev/null 2>&1' > /dev/null 2>&1 &
204-
205202 # Network plugin already installed on Azure Linux OS Guard
206203 if ! isAzureLinuxOSGuard " $OS " " $OS_VARIANT " ; then
207204 logs_to_events " AKS.CSE.installNetworkPlugin" installNetworkPlugin
346343 disableVulnerableKernelModule " rxrpc" " DirtyFrag (RxRPC page-cache write, bypasses AppArmor userns)"
347344 fi
348345
349- if ! isAzureLinuxOSGuard " $OS " " $OS_VARIANT " ; then
350- if [ " $OS " = " $UBUNTU_OS_NAME " ] || isMarinerOrAzureLinux " $OS " ; then
351- logs_to_events " AKS.CSE.ubuntuSnapshotUpdate" ensureSnapshotUpdate
352- fi
353- fi
354-
355346 if [ " $FULL_INSTALL_REQUIRED " = " true" ]; then
356347 if [ " $OS " = " $UBUNTU_OS_NAME " ]; then
357348 # mitigation for bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1676635
@@ -587,10 +578,16 @@ function nodePrep {
587578 checkServiceHealth kubelet || exit $ERR_KUBELET_FAIL
588579
589580 if systemctl cat aks-log-collector.timer & > /dev/null; then
590- systemctlEnableAndStartNoBlock aks-log-collector.timer 30 || echo " Warning: Could not start aks-log-collector.timer"
591- else
592- echo " aks-log-collector.timer not found on this VHD, skipping"
593- fi
581+ systemctlEnableAndStartNoBlock aks-log-collector.timer 30 || echo " Warning: Could not start aks-log-collector.timer"
582+ else
583+ echo " aks-log-collector.timer not found on this VHD, skipping"
584+ fi
585+
586+ if ! isAzureLinuxOSGuard " $OS " " $OS_VARIANT " ; then
587+ if [ " $OS " = " $UBUNTU_OS_NAME " ] || isMarinerOrAzureLinux " $OS " ; then
588+ logs_to_events " AKS.CSE.ubuntuSnapshotUpdate" ensureSnapshotUpdate
589+ fi
590+ fi
594591
595592 if $REBOOTREQUIRED ; then
596593 echo ' reboot required, rebooting node in 1 minute'
0 commit comments