From 254392a6cae6fe4d4b54d5be1e22f5a2b4fef334 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Wed, 18 Dec 2024 13:48:43 +0100 Subject: [PATCH] hermetic: do not install buildroot via DNF Fixes: #1522 --- mock/py/mockbuild/config.py | 4 ++++ .../no-bootstrap-installation-with-dnf.bugfix | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 releng/release-notes-next/no-bootstrap-installation-with-dnf.bugfix 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][].