open-coredump: pass the content of "image" file not its path to dbuild

in a4eb3c6e0f, we passed the path of
"image" to `dbuild`, but that was wrong. we should pass its content
to this script. so in this change, it is fixed.

Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>

Closes #15247
This commit is contained in:
Kefu Chai
2023-08-31 19:10:12 +08:00
committed by Botond Dénes
parent 78fc3b5f56
commit dd59b90999

View File

@@ -344,8 +344,9 @@ EOF
fi
TOP_SRCDIR="$(dirname "$(dirname "$(readlink -f "$0")")")"
IMAGE="${SCYLLA_REPO_PATH}/tools/toolchain/image"
exec ${TOP_SRCDIR}/tools/toolchain/dbuild \
--image ${SCYLLA_REPO_PATH}/tools/toolchain/image \
--image "$(<"$IMAGE")" \
-it \
-v $(pwd):/workdir \
-v ${SCYLLA_REPO_PATH}:/src/scylla \