From a9499c7f2e5c9312b17d929d7e2b4611e5c613d4 Mon Sep 17 00:00:00 2001 From: Lize Cai Date: Wed, 13 Nov 2024 18:35:44 +0800 Subject: [PATCH] Update Dockerfile to include /sbin in PATH and simplify blkdiscard call in blkdiscard.sh Signed-off-by: Lize Cai --- deployment/docker/Dockerfile | 1 + deployment/docker/scripts/blkdiscard.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment/docker/Dockerfile b/deployment/docker/Dockerfile index 0cfe643a3..c2934b3c5 100644 --- a/deployment/docker/Dockerfile +++ b/deployment/docker/Dockerfile @@ -29,4 +29,5 @@ RUN apt-get update \ bash ADD deployment/docker/scripts /scripts +ENV PATH="$PATH:/sbin" ENTRYPOINT ["/local-provisioner"] diff --git a/deployment/docker/scripts/blkdiscard.sh b/deployment/docker/scripts/blkdiscard.sh index c3fc74d9c..0de3c42c8 100755 --- a/deployment/docker/scripts/blkdiscard.sh +++ b/deployment/docker/scripts/blkdiscard.sh @@ -31,4 +31,4 @@ fi validateBlockDevice echo "Calling blkdiscard" -/sbin/blkdiscard -v $LOCAL_PV_BLKDEVICE +blkdiscard -v $LOCAL_PV_BLKDEVICE