2022-06-17 05:55:07 +00:00
|
|
|
config_opts['root'] = '{{ shortname|lower }}-{{ major }}-{{ arch }}'
|
2022-06-13 14:37:50 +00:00
|
|
|
config_opts['description'] = '{{ fullname }}'
|
|
|
|
config_opts['target_arch'] = '{{ arch }}'
|
|
|
|
config_opts['legal_host_arches'] = ('{{ arch }}',)
|
|
|
|
|
2022-06-15 20:53:12 +00:00
|
|
|
config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils redhat-release findutils gawk glibc-minimal-langpack grep gzip info patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz {{ required_pkgs|join(' ') }}'
|
2022-06-13 14:37:50 +00:00
|
|
|
config_opts['dist'] = '{{ dist }}' # only useful for --resultdir variable subst
|
|
|
|
config_opts['releasever'] = '{{ major }}'
|
2022-06-15 20:53:12 +00:00
|
|
|
config_opts['package_manager'] = '{{ pkgmanager|default("dnf") }}'
|
2022-06-13 14:37:50 +00:00
|
|
|
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
|
2022-06-17 05:55:07 +00:00
|
|
|
# config_opts['bootstrap_image'] = 'quay.io/{{ shortname|lower }}/{{ shortname|lower }}:{{ major }}'
|
2022-06-13 14:37:50 +00:00
|
|
|
|
2022-06-15 20:53:12 +00:00
|
|
|
# If compose is local, the bind mounts will be here
|
|
|
|
{% if compose_dir_is_here %}
|
2022-06-13 14:37:50 +00:00
|
|
|
config_opts['plugin_conf']['bind_mount_enable'] = True
|
2022-06-15 20:53:12 +00:00
|
|
|
config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('{{ compose_dir }}', '{{ compose_dir }}'))
|
|
|
|
{% endif %}
|
2022-06-13 14:37:50 +00:00
|
|
|
|
|
|
|
config_opts['dnf.conf'] = """
|
|
|
|
[main]
|
|
|
|
keepcache=1
|
|
|
|
debuglevel=2
|
|
|
|
reposdir=/dev/null
|
|
|
|
logfile=/var/log/yum.log
|
|
|
|
retries=20
|
|
|
|
obsoletes=1
|
|
|
|
gpgcheck=0
|
|
|
|
assumeyes=1
|
|
|
|
syslog_ident=mock
|
|
|
|
syslog_device=
|
|
|
|
metadata_expire=0
|
|
|
|
mdpolicy=group:primary
|
|
|
|
best=1
|
|
|
|
install_weak_deps=0
|
|
|
|
protected_packages=
|
|
|
|
module_platform_id=platform:{{ dist }}
|
|
|
|
user_agent={{ user_agent }}
|
|
|
|
|
|
|
|
{% for repo in repos %}
|
2022-06-15 20:53:12 +00:00
|
|
|
[{{ repo.name }}]
|
|
|
|
name={{ repo.name }}
|
|
|
|
baseurl={{ repo.url }}
|
2022-06-13 14:37:50 +00:00
|
|
|
enabled=1
|
|
|
|
gpgcheck=0
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
"""
|
|
|
|
|