Skip to content

Commit e731af0

Browse files
committed
cleanup
1 parent f94d115 commit e731af0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/al2023/provisioners/install-nvidia-driver.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,14 @@ sudo dnf -y install \
8282
kernel-headers-$(uname -r) \
8383
kernel-modules-extra-common-$(uname -r)
8484

85-
# Install dkms dependency from amazonlinux
85+
# Install dkms dependency from amazonlinux repo
8686
sudo dnf -y install patch
8787
# Install dkms from the cuda repo
88+
if is-isolated-partition; then
8889
sudo dnf -y --disablerepo="*" --enablerepo="cuda*" install dkms
90+
else
91+
sudo dnf -y --disablerepo="*" --enablerepo="cuda*" install dkms
92+
fi
8993

9094
function archive-open-kmods() {
9195
echo "Archiving open kmods"

0 commit comments

Comments
 (0)