diff --git a/mock/py/mockbuild/config.py b/mock/py/mockbuild/config.py index 55c1521fd..d69a11d36 100644 --- a/mock/py/mockbuild/config.py +++ b/mock/py/mockbuild/config.py @@ -810,6 +810,10 @@ def process_hermetic_build_config(cmdline_opts, config_opts): # with the same image. config_opts["bootstrap_image_assert_digest"] = data["bootstrap"]["image_digest"] + # It doesn't make sense to fallback to `dnf install dnf --installroot ...`, + # we simply don't have DNF stack pre-downloaded in offline_local_repository. + config_opts["bootstrap_image_fallback"] = False + @traceLog() def nice_root_alias_error(name, alias_name, arch, no_configs, log): diff --git a/releng/release-notes-next/no-bootstrap-installation-with-dnf.bugfix b/releng/release-notes-next/no-bootstrap-installation-with-dnf.bugfix new file mode 100644 index 000000000..0ad321789 --- /dev/null +++ b/releng/release-notes-next/no-bootstrap-installation-with-dnf.bugfix @@ -0,0 +1,4 @@ +The [hermetic mode](feature-hermetic-builds) no longer fallbacks to a manual +bootstrap installation using the hosts's DNF stack; it doesn't make sense +because we don't have the bootstrap packages pre-downloaded in the local +"offline" repository. Fixes [issue#1522][].