We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cf95da commit 14bfb44Copy full SHA for 14bfb44
files/oke-ubuntu-cloud-init.sh
@@ -12,7 +12,11 @@ fi
12
SHAPE=$(curl -H "Authorization: Bearer Oracle" -L http://169.254.169.254/opc/v2/instance/shape)
13
if [[ "$SHAPE" == BM.GPU.GB200* ]] || [[ "$SHAPE" == BM.GPU.GB300* ]]; then
14
echo "Disabling nvidia-imex.service for shape: $SHAPE"
15
- systemctl disable --now nvidia-imex.service && systemctl mask nvidia-imex.service
+ if systemctl list-unit-files | grep -q nvidia-imex.service; then
16
+ systemctl disable --now nvidia-imex.service && systemctl mask nvidia-imex.service
17
+ else
18
+ echo "nvidia-imex.service not found, skipping"
19
+ fi
20
fi
21
22
case "$ID" in
0 commit comments