diff options
-rwxr-xr-x | py/mock.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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, |