Skip to content

Commit

Permalink
hermetic: do not install buildroot via DNF
Browse files Browse the repository at this point in the history
Fixes: #1522
  • Loading branch information
praiskup committed Dec 18, 2024
1 parent 9f0247c commit 254392a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mock/py/mockbuild/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
@@ -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][].

0 comments on commit 254392a

Please sign in to comment.