From 57b28d9cbd1a0606cc5b4836d04e43bfc8f5ea0f Mon Sep 17 00:00:00 2001 From: Shane Lawrence Date: Wed, 18 Dec 2024 10:06:07 -0500 Subject: [PATCH] Check if path exists before linking. --- docker/driver-loader/docker-entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/driver-loader/docker-entrypoint.sh b/docker/driver-loader/docker-entrypoint.sh index 52df15f3111..22b4c401c29 100755 --- a/docker/driver-loader/docker-entrypoint.sh +++ b/docker/driver-loader/docker-entrypoint.sh @@ -50,7 +50,8 @@ echo "* Setting up /usr/src links from host" for i in "$HOST_ROOT/usr/src"/* do - base=$(basename "$i") + [[ -e $i ]] || continue + base=$(basename "$i") ln -s "$i" "/usr/src/$base" done