Skip to content

Commit 9cd5df3

Browse files
authored
Update cloud-init to disable nvidia repo (#64)
1 parent 03818c6 commit 9cd5df3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

files/oke-ubuntu-cloud-init.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ while fuser /var/{lib/{dpkg/{lock,lock-frontend},apt/lists},cache/apt/archives}/
2525
sleep 1
2626
done
2727

28+
for f in /etc/apt/sources.list.d/*nvidia*; do
29+
[ -f "$f" ] && mv "$f" "${f}.bak"
30+
done
31+
2832
apt-get -y update && apt-get -y install $oke_package_name
2933

3034
# OKE bootstrap

0 commit comments

Comments
 (0)