config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils findutils gawk glibc-minimal-langpack grep gzip info patch redhat-release redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz epel-rpm-macros kernel-rpm-macros'
config_opts['releasever'] = '10.2'
config_opts['releasever_major'] = '10'
config_opts['dist'] = 'el{{ releasever_major }}'  # only useful for --resultdir variable subst
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
config_opts['package_manager'] = 'dnf'
#config_opts['bootstrap_image'] = 'registry.access.redhat.com/ubi{{ releasever_major }}/ubi'
config_opts['bootstrap_image_ready'] = False
config_opts['use_bootstrap_image'] = False
config_opts['description'] = 'RHEL {{ releasever_major }}'

config_opts['root'] = 'rhel-{{ releasever_major }}-unsupported-{{ target_arch }}'

config_opts['redhat_subscription_required'] = False

config_opts['macros']['%dist'] = ".sdl10_2"

config_opts['dnf.conf'] = """
[main]
keepcache=1
debuglevel=2
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=1
assumeyes=1
syslog_ident=mock
syslog_device=
install_weak_deps=0
metadata_expire=0
best=1
protected_packages=
skip_if_unavailable=False
user_agent={{ user_agent }}

[rhel]
name=rhel
gpgcheck=0
baseurl=https://rh10.rc.princeton.edu/mirror/x86_64/{{ releasever }}

[unsupported]
name=unsupported
gpgcheck=0
baseurl=file:///data/puias/unsupported/{{ releasever }}/x86_64

[extra]
name=extra
gpgcheck=0
baseurl=file:///data/done-local10/extra/x86_64
"""

config_opts['files']['/etc/hosts'] = """
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
#::1         localhost6 localhost6.localdomain6
127.0.0.2 focus.springdale.princeton.edu
127.0.0.3 odyssey.springdale.princeton.edu
"""

config_opts['target_arch'] = 'x86_64'
config_opts['legal_host_arches'] = ('x86_64',)
