Skip to content

Commit

Permalink
removing more stderr and issues during build
Browse files Browse the repository at this point in the history
  • Loading branch information
djsly committed Oct 18, 2024
1 parent c187882 commit 034f4ec
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions vhdbuilder/packer/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -372,19 +372,18 @@ if [[ $OS == $UBUNTU_OS_NAME && $(isARM64) != 1 ]]; then # no ARM64 SKU with GP

mkdir -p /opt/{actions,gpu}
pullContainerImage "crictl" $NVIDIA_DRIVER_IMAGE:$NVIDIA_DRIVER_IMAGE_TAG
echo " - nvidia-driver=${NVIDIA_DRIVER_IMAGE_TAG}" >> ${VHD_LOGS_FILEPATH}
if grep -q "fullgpu" <<< "$FEATURE_FLAGS"; then
bash -c "$CTR_GPU_INSTALL_CMD $NVIDIA_DRIVER_IMAGE:$NVIDIA_DRIVER_IMAGE_TAG gpuinstall /entrypoint.sh install"
ret=$?
if [[ "$ret" != "0" ]]; then
echo "Failed to install GPU driver, exiting..."
exit $ret
fi
ls -ltr /opt/gpu/* >> ${VHD_LOGS_FILEPATH}
fi

cat << EOF >> ${VHD_LOGS_FILEPATH}
- nvidia-driver=${NVIDIA_DRIVER_IMAGE_TAG}
EOF
ls -ltr /opt/gpu/* >> ${VHD_LOGS_FILEPATH}

capture_benchmark "${SCRIPT_NAME}_pull_and_install_nvidia_driver_image"
fi

Expand Down Expand Up @@ -484,7 +483,7 @@ capture_benchmark "${SCRIPT_NAME}_configure_networking_and_interface"
mkdir -p /var/log/azure/Microsoft.Azure.Extensions.CustomScript/events

# Disable cgroup-memory-telemetry on AzureLinux due to incompatibility with cgroup2fs driver and absence of required azure.slice directory
if [ ! isMarinerOrAzureLinux "$OS" ]; then
if ! isMarinerOrAzureLinux "$OS" ; then
systemctlEnableAndStart cgroup-memory-telemetry.timer || exit 1
systemctl enable cgroup-memory-telemetry.service || exit 1
systemctl restart cgroup-memory-telemetry.service
Expand Down

0 comments on commit 034f4ec

Please sign in to comment.