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>