From 2ff95bb40067984022de5a5a530dfbfea3b0e741 Mon Sep 17 00:00:00 2001 From: Romil Bhardwaj Date: Sun, 5 May 2024 18:29:21 -0700 Subject: [PATCH] [k8s] `sky local up` gpu support - ignore if ldconfig.real already exists (#3509) ignore if ldconfig.real already exists --- sky/utils/kubernetes/create_cluster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sky/utils/kubernetes/create_cluster.sh b/sky/utils/kubernetes/create_cluster.sh index b5911b1acbe..62fb700edf3 100755 --- a/sky/utils/kubernetes/create_cluster.sh +++ b/sky/utils/kubernetes/create_cluster.sh @@ -195,7 +195,7 @@ if $ENABLE_GPUS; then echo "Enabling GPU support..." # Run patch for missing ldconfig.real # https://github.com/NVIDIA/nvidia-docker/issues/614#issuecomment-423991632 - docker exec -ti skypilot-control-plane ln -s /sbin/ldconfig /sbin/ldconfig.real + docker exec -ti skypilot-control-plane /bin/bash -c '[ ! -f /sbin/ldconfig.real ] && ln -s /sbin/ldconfig /sbin/ldconfig.real || echo "/sbin/ldconfig.real already exists"' echo "Installing NVIDIA GPU operator..." # Install the NVIDIA GPU operator