Skip to content

Commit

Permalink
configs: BuildWithDNF5 for ELN
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup authored and FrostyX committed May 14, 2024
1 parent a2209bb commit 02842f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mock-core-configs/etc/mock/templates/fedora-eln.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,22 @@ config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils f

config_opts['dist'] = 'eln' # only useful for --resultdir variable subst
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
config_opts['package_manager'] = 'dnf'

# https://fedoraproject.org/wiki/Changes/BuildWithDNF5
# https://pagure.io/releng/issue/11895
config_opts['package_manager'] = 'dnf5'

# Per https://github.com/fedora-eln/eln/issues/164 updated up to 4 times a day.
# Docs: https://docs.fedoraproject.org/en-US/eln/deliverables/#_container_image
config_opts['bootstrap_image'] = 'quay.io/fedoraci/fedora:eln'
# Per https://github.com/fedora-eln/eln/issues/166

# https://fedoraproject.org/wiki/Changes/ReplaceDnfWithDnf5 applied to ELN!
config_opts['bootstrap_image_ready'] = True

config_opts['dnf.conf'] = """
[main]
keepcache=1
system_cachedir=/var/cache/dnf
debuglevel=2
reposdir=/dev/null
logfile=/var/log/yum.log
Expand Down
2 changes: 2 additions & 0 deletions releng/release-notes-next/eln-uses-dnf5.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The Fedora ELN configuration [has been updated to use DNF5 for Mock chroot
package management][issue#1292].

0 comments on commit 02842f9

Please sign in to comment.