summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpy/mock.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/py/mock.py b/py/mock.py
index 00bf291..894e297 100755
--- a/py/mock.py
+++ b/py/mock.py
@@ -205,8 +205,12 @@ def setup_default_config_opts(config_opts, unprivUid):
config_opts['cleanup_on_success'] = 1
config_opts['cleanup_on_failure'] = 1
- # (global) plugins and plugin configs
- config_opts['plugins'] = ('ccache', 'yum_cache', 'root_cache', 'bind_mount')
+ # (global) plugins and plugin configs.
+ # ordering constraings: tmpfs must be first.
+ # root_cache next.
+ # after that, any plugins that must create dirs (yum_cache)
+ # any plugins without preinit hooks should be last.
+ config_opts['plugins'] = ('tmpfs', 'root_cache', 'yum_cache', 'bind_mount', 'ccache')
config_opts['plugin_dir'] = os.path.join(PKGPYTHONDIR, "plugins")
config_opts['plugin_conf'] = {
'ccache_enable': True,