Given that --installroot uses host repos, is it not possible to infer the --releasever default so that it can be omitted like when not using --installroot?
--releasever Set the value of $releasever in all .repo files (default: distribution version)
--installroot <DIR> Operate on a different root directory, but share repositories with the host.
dnf previously had this same concern, but with dnf5 there is a --use-host-config option which avoids requiring an explicit value (_or sourcing it from VERSION_ID in /etc/os-release_). Perhaps that would be acceptable?
--installroot=ABSOLUTE_PATH set install root
--use-host-config use configuration, reposdir, and vars from the host system rather than the installroot
--releasever=RELEASEVER override the value of $releasever in config and repo files
Given that
--installroot
uses host repos, is it not possible to infer the--releasever
default so that it can be omitted like when not using--installroot
?For reference,
zypper --help
output:dnf
previously had this same concern, but withdnf5
there is a--use-host-config
option which avoids requiring an explicit value (_or sourcing it fromVERSION_ID
in/etc/os-release
_). Perhaps that would be acceptable?dnf --help
equivalent output: