Skip to content

Commit 63baa33

Browse files
committed
cleanup
1 parent f94d115 commit 63baa33

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
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
87-
# Install dkms from the cuda repo
88-
sudo dnf -y --disablerepo="*" --enablerepo="cuda*" install dkms
87+
if is-isolated-partition; then
88+
sudo dnf -y install dkms
89+
else
90+
# Install dkms from the cuda repo
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)