From 0f90b968f36a9d945b77ed65bea93e764c077cb6 Mon Sep 17 00:00:00 2001 From: Michael E Brown Date: Tue, 18 Dec 2007 14:21:09 -0600 Subject: better ordering constraints for plugin initialization. --- py/mock.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'py/mock.py') 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, -- cgit