This commit fixes an issue when the image is not the base distro,
the debug suffix for it is overwritten. This is especially
required for crimson debug builds to work for rocky10.
Fixes: https://tracker.ceph.com/issues/75952
Signed-off-by: Shraddha Agrawal <shraddha.agrawal000@gmail.com>
if [[ "${fromtag}" != "${default_fromtag}" ]] ; then
branch_repo_tag=${repopath}:${BRANCH}-${fromtag}
sha1_repo_tag=${repopath}:${CEPH_SHA1}-${fromtag}
+ if [[ ${FLAVOR} == "debug" ]]; then
+ branch_repo_tag=${branch_repo_tag}-${FLAVOR}
+ sha1_repo_tag=${sha1_repo_tag}-${FLAVOR}
+ fi
fi
if [[ "${ARCH}" == "arm64" ]] ; then