summaryrefslogtreecommitdiff
path: root/rpm/build/mock/defaults.cfg
blob: 3f9fcf6c29b854fc4fc3b6ef16a38dd6766b39d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# mock defaults
#
# Define default values here.
# These values are overwritten in the /etc/mock/CHROOT.cfg files.
#
# Example:
#
# config_opts['foo'] = bar
config_opts['basedir'] = '/var/lib/mock/'
config_opts['chroot'] = '/usr/sbin/mock-helper chroot'
config_opts['mount'] = '/usr/sbin/mock-helper mount'
config_opts['umount'] = '/usr/sbin/mock-helper umount'
config_opts['rm'] = '/usr/sbin/mock-helper rm'
config_opts['mknod'] = '/usr/sbin/mock-helper mknod'
config_opts['yum'] = '/usr/sbin/mock-helper yum'
config_opts['runuser'] = '/sbin/runuser'
config_opts['chrootuser'] = 'mockbuild'
config_opts['chrootgroup'] = 'mockbuild'
config_opts['chrootuid'] = os.geteuid()
config_opts['chrootgid'] = os.getegid()
config_opts['chroothome'] = '/builddir'
config_opts['clean'] = True

# caching related options
config_opts['rebuild_cache'] = False
config_opts['use_cache'] = False
config_opts['pack_cmd'] = "/usr/sbin/mock-helper pack"
config_opts['unpack_cmd'] = "/usr/sbin/mock-helper unpack"
config_opts['cache_ext'] = ".tar.gz"
config_opts['cache_topdir'] = "root-cache"
config_opts['max_cache_age_days'] = 15

# allow some network tests to run under the chroot
config_opts['files']['/etc/resolv.conf'] = open("/etc/resolv.conf","r").read()
config_opts['files']['/etc/hosts'] = open("/etc/hosts","r").read()

config_opts['chroot_setup_cmd'] = 'install buildsys-build'
#config_opts['chroot_setup_cmd'] = 'groupinstall build'