From ab2c6254b34ea237217f7919d70b1e9ac3e98735 Mon Sep 17 00:00:00 2001 From: Shane Lawrence Date: Wed, 18 Dec 2024 10:06:07 -0500 Subject: [PATCH 1/2] Check if path exists before linking. Signed-off-by: Shane Lawrence --- 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 From 15d3f79d43c34008586e690aec394034c197cfa0 Mon Sep 17 00:00:00 2001 From: Shane Lawrence Date: Thu, 19 Dec 2024 09:48:37 -0500 Subject: [PATCH 2/2] Fix accidental whitespace. Co-authored-by: Leonardo Grasso Signed-off-by: Shane Lawrence --- docker/driver-loader/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/driver-loader/docker-entrypoint.sh b/docker/driver-loader/docker-entrypoint.sh index 22b4c401c29..5012b087c7d 100755 --- a/docker/driver-loader/docker-entrypoint.sh +++ b/docker/driver-loader/docker-entrypoint.sh @@ -51,7 +51,7 @@ echo "* Setting up /usr/src links from host" for i in "$HOST_ROOT/usr/src"/* do [[ -e $i ]] || continue - base=$(basename "$i") + base=$(basename "$i") ln -s "$i" "/usr/src/$base" done