kas-container: mount KAS_REPO_REF_DIR rw

With the added auto-caching logic of the referenced repos in 1c2c859,
kas-container has to mount this directory in read-write mode.
Otherwise, initial clones will fail.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Felix Moessbauer 2023-02-27 09:24:32 +01:00 committed by Jan Kiszka
parent 0e61fdddaf
commit b8576ee99e

View File

@ -479,7 +479,7 @@ if [ -n "${KAS_REPO_REF_DIR}" ]; then
exit 1
fi
set -- "$@" \
-v "$(readlink -f "${KAS_REPO_REF_DIR}")":/repo-ref:ro \
-v "$(readlink -f "${KAS_REPO_REF_DIR}")":/repo-ref:rw \
-e KAS_REPO_REF_DIR=/repo-ref
fi