Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ubuntu22.04/nvidia-driver
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ _enable_fips_if_required() {
_update_package_cache() {
if [ "${PACKAGE_TAG:-}" != "builtin" ]; then
echo "Updating the package cache..."
apt-get -qq update
if ! apt-get -qq update; then
echo "ERROR: Failed to update package cache. "\
"Ensure that the cluster can access the proper networks."
exit 1
fi
fi
}

Expand Down
8 changes: 7 additions & 1 deletion ubuntu22.04/precompiled/nvidia-driver
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ nvsdm_install() {
_update_package_cache() {
if [ "${PACKAGE_TAG:-}" != "builtin" ]; then
echo "Updating the package cache..."
apt-get -qq update
if ! apt-get -qq update; then
echo "ERROR: Failed to update package cache. "\
"Ensure that the cluster can access the proper networks."
exit 1
fi
fi
}

Expand Down Expand Up @@ -450,6 +454,8 @@ init() {
_unload_driver || exit 1
_unmount_rootfs

_update_package_cache

_create_module_params_conf
_install_driver
_load_driver || exit 1
Expand Down
6 changes: 5 additions & 1 deletion ubuntu24.04/nvidia-driver
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ _enable_fips_if_required() {
_update_package_cache() {
if [ "${PACKAGE_TAG:-}" != "builtin" ]; then
echo "Updating the package cache..."
apt-get -qq update
if ! apt-get -qq update; then
echo "ERROR: Failed to update package cache. "\
"Ensure that the cluster can access the proper networks."
exit 1
fi
fi
}

Expand Down
8 changes: 7 additions & 1 deletion ubuntu24.04/precompiled/nvidia-driver
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ nvsdm_install() {
_update_package_cache() {
if [ "${PACKAGE_TAG:-}" != "builtin" ]; then
echo "Updating the package cache..."
apt-get -qq update
if ! apt-get -qq update; then
echo "ERROR: Failed to update package cache. "\
"Ensure that the cluster can access the proper networks."
exit 1
fi
fi
}

Expand Down Expand Up @@ -451,6 +455,8 @@ init() {
_unload_driver || exit 1
_unmount_rootfs

_update_package_cache

_create_module_params_conf
_install_driver
_load_driver || exit 1
Expand Down