os-release parsing is only needed for OCI usage, so move it inside the
appropriate branch. Saves some operations at build time when not needed, and
also it is necessary as not all OSes define VERSION_ID (e.g.: Debian Unstable
and Archlinux)
You can view, comment on, or merge this pull request on
I think I've stumbled into this. I was trying to use a public GitHub Actions
runner to create container images built from the `ubi-micro` images, which
don't have `dnf` installed within.
I found that `dnf --installroot=... install` failed because the PGP keys it
wanted weren't found in the RPM