Skip to content

Commit 1e6930d

Browse files
committed
Fix typo in nvidia repo setup and add missing benchmark capture
- Fix typo: "locatl" -> "local" in updateDnfWithNvidiaPkg function - Add dnf_makecache call after nvidia repo setup for Mariner - Add missing benchmark capture for nvidia apt update in Ubuntu Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
1 parent b503ad3 commit 1e6930d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

parts/linux/cloud-init/artifacts/mariner/cse_install_mariner.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,9 @@ updateDnfWithNvidiaPkg() {
191191
return
192192
fi
193193

194-
locatl nvidia_repo_url="https://developer.download.nvidia.com/compute/cuda/repos/azl3/${repo_arch}/cuda-azl3.repo"
194+
local nvidia_repo_url="https://developer.download.nvidia.com/compute/cuda/repos/azl3/${repo_arch}/cuda-azl3.repo"
195195
retrycmd_curl_file 120 5 25 ${nvidia_repo_path} ${nvidia_repo_url} || exit $ERR_NVIDIA_AZURELINUX_REPO_FILE_DOWNLOAD_TIMEOUT
196+
dnf_makecache || exit $ERR_APT_UPDATE_TIMEOUT
196197
}
197198

198199
installNvidiaDCGMPkgFromCache() {

vhdbuilder/packer/install-dependencies.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ if [ "${OS}" = "${UBUNTU_OS_NAME}" ]; then
290290
updateAptWithMicrosoftPkg
291291
capture_benchmark "${SCRIPT_NAME}_update_apt_with_msft_pkg"
292292
updateAptWithNvidiaPkg
293+
capture_benchmark "${SCRIPT_NAME}_update_apt_with_nvidia_pkg"
293294
fi
294295

295296
# check if COMPONENTS_FILEPATH exists

0 commit comments

Comments
 (0)