Missing binaries/symlinks in $PATH leading to install error (omnibus package).

After downgrading an omnibus-based installation from gitlab-ee 15.4.2 to gitlab-ce 15.4.2, there are no symlinks in /usr/bin pointing to /opt/gitlab/bin. While installing the latest bugfix release 15.4.3, this leads to:

Preparing to unpack .../gitlab-ce_15.4.3-ce.0_amd64.deb ...
gitlab preinstall: Checking for unmigrated data on legacy storage
gitlab preinstall: 
gitlab preinstall: Upgrade failed. Could not check for unmigrated data on legacy storage.
gitlab preinstall: 
gitlab preinstall: /var/lib/dpkg/tmp.ci/preinst: 102: /var/lib/dpkg/tmp.ci/preinst: gitlab-rake: not found
gitlab preinstall: 
gitlab preinstall: If you want to skip this check, run the following command and try again:
gitlab preinstall: 
gitlab preinstall:  sudo touch /etc/gitlab/skip-unmigrated-data-check
gitlab preinstall: 
dpkg: error processing archive /var/cache/apt/archives/gitlab-ce_15.4.3-ce.0_amd64.deb (--unpack):
 new gitlab-ce package pre-installation script subprocess returned error exit status 1

This is on debian10/buster. Manually symlinking from /usr/bin and re-installing the package fixes this.