commit 3012af3ec8813aa7e0939109ec085ea06fca225d
parent 8f630af3149169b3cbf68fd8741b74c241b51959
Author: Jan Pobříslo <ccx@te2000.cz>
Date: Thu, 22 Feb 2024 08:58:28 +0100
Bind-mount packages directory
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/command/pthbs-build b/command/pthbs-build
@@ -147,6 +147,7 @@ function at_filehash(hash_type, file_hash, dst, dstdir){
sandbox_cmd=" "q(ENVIRON["basedir"]"/userns_sandbox.py")
sandbox_cmd=sandbox_cmd" --vars="q(ENVIRON["basedir"]"/vars.yaml")
sandbox_cmd=sandbox_cmd" --extra-mount=tmpfs:"q(ENVIRON["basedir"]"/work")
+ sandbox_cmd=sandbox_cmd" --extra-mount=ro_bind:"q(ENVIRON["basedir"]/packages)":"q(ENVIRON["packages"]/packages)
sandbox_cmd=sandbox_cmd" --extra-mount=rw_bind:"q(ENVIRON["workdir"])":"q(ENVIRON["workdir"])
sandbox_cmd=sandbox_cmd" -- "q(ENVIRON["basedir"]"/work/root")
sandbox_cmd=sandbox_cmd" "q(basename(ENVIRON["envdir"]))