forked from sig_core/toolkit
48 lines
1.4 KiB
Cheetah
48 lines
1.4 KiB
Cheetah
|
config_opts['root'] = 'rocky-{{ major }}-{{ arch }}'
|
||
|
config_opts['description'] = '{{ fullname }}'
|
||
|
config_opts['target_arch'] = '{{ arch }}'
|
||
|
config_opts['legal_host_arches'] = ('{{ arch }}',)
|
||
|
|
||
|
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 genisoimage isomd5sum lorax lorax-templates-rhel lorax-templates-generic'
|
||
|
config_opts['dist'] = '{{ dist }}' # only useful for --resultdir variable subst
|
||
|
config_opts['releasever'] = '{{ major }}'
|
||
|
config_opts['package_manager'] = 'dnf'
|
||
|
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
|
||
|
# config_opts['bootstrap_image'] = 'quay.io/rockylinux/rockylinux:{{ major }}'
|
||
|
|
||
|
config_opts['plugin_conf']['bind_mount_enable'] = True
|
||
|
config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/mnt/compose', '/mnt/compose'))
|
||
|
|
||
|
|
||
|
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 %}
|
||
|
[{{ repo }}]
|
||
|
name={{ repo }}
|
||
|
baseurl=file:///mnt/compose/{{ major }}/latest-Rocky-{{ major }}/compose/{{ repo }}/{{ arch }}/os
|
||
|
enabled=1
|
||
|
gpgcheck=0
|
||
|
|
||
|
{% endfor %}
|
||
|
|
||
|
"""
|
||
|
|