Skip to content

Commit a8a562e

Browse files
committed
hermetic: do not install buildroot via DNF
Fixes: #1522
1 parent ed4594d commit a8a562e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

mock/py/mockbuild/config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,10 @@ def process_hermetic_build_config(cmdline_opts, config_opts):
810810
# with the same image.
811811
config_opts["bootstrap_image_assert_digest"] = data["bootstrap"]["image_digest"]
812812

813+
# It doesn't make sense to fallback to `dnf install dnf --installroot ...`,
814+
# we simply don't have DNF stack pre-downloaded in offline_local_repository.
815+
config_opts["bootstrap_image_fallback"] = False
816+
813817

814818
@traceLog()
815819
def nice_root_alias_error(name, alias_name, arch, no_configs, log):
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
The [hermetic mode](feature-hermetic-builds) no longer fallbacks to a manual
2+
bootstrap installation using the hosts's DNF stack; it doesn't make sense
3+
because we don't have the bootstrap packages pre-downloaded in the local
4+
"offline" repository. Fixes [issue#1522][].

0 commit comments

Comments
 (0)