return cast(bool, namespace.distribution.is_rpm_distribution())
if namespace.tools_tree != Path("default"):
- return False
+ return (
+ detect_distribution(namespace.tools_tree)[0] == Distribution.ubuntu
+ and namespace.distribution.is_rpm_distribution()
+ )
return cast(
bool,
`RepositoryKeyFetch=`, `--repository-key-fetch=`
: Controls whether mkosi will fetch distribution GPG keys remotely. Enabled by
- default on Ubuntu when not using a tools tree, disabled by default on all
- other distributions. When disabled, the distribution GPG keys for the target distribution
- have to be installed locally on the host system alongside the package manager for
- that distribution.
+ default on Ubuntu when not using a tools tree or when using Ubuntu tools trees to build
+ rpm based distributions. Disabled by default on all other distributions. When disabled,
+ the distribution GPG keys for the target distribution have to be installed locally on the
+ host system alongside the package manager for that distribution.
This setting is only implemented for distributions using dnf or zypper as their
package manager. For other distributions the distribution GPG keys are always looked