# mount the pesign socket into the chroot
config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/var/run/pesign', '/var/run/pesign' ))
config_opts['nspawn_args'] += ['--bind=/var/run/pesign']
config_opts['plugin_conf']['package_state_enable'] = False
config_opts['macros']['%bugurl'] = 'https://bugz.fedoraproject.org/%name'
#config_opts['nosync'] = True
#config_opts['nosync_force'] = True
config_opts['dnf_common_opts'] = ['--setopt=install_weak_deps=0']
config_opts['environment']['LANG'] = 'C.UTF-8'
config_opts['use_bootstrap'] = False
config_opts['dnf_warning'] = False

# dnf group install with '--allowerasing' is still to be released:
# https://github.com/rpm-software-management/dnf5/pull/1174
config_opts["dnf5_avoid_opts"] = {
    "group": ["--allowerasing"],
}
