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 {{ required_pkgs|join(' ') }}' config_opts['dist'] = '{{ dist }}' # only useful for --resultdir variable subst config_opts['releasever'] = '{{ major }}' config_opts['package_manager'] = '{{ pkgmanager|default("dnf") }}' config_opts['extra_chroot_dirs'] = [ '/run/lock', ] # config_opts['bootstrap_image'] = 'quay.io/rockylinux/rockylinux:{{ major }}' # If compose is local, the bind mounts will be here {% if compose_dir_is_here %} config_opts['plugin_conf']['bind_mount_enable'] = True config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('{{ compose_dir }}', '{{ compose_dir }}')) {% endif %} 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 }}] name={{ repo.name }} baseurl={{ repo.url }} enabled=1 gpgcheck=0 {% endfor %} """