From 702ee7a1fe30d87d55ba9528ae89abff4e294fd9 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Mon, 30 Jan 2017 23:23:00 +0200 Subject: wic: creator: stop using config manager This is a preparation to removing conf.py and config/wic.conf from the codebase. confmgr object is complicated for no reason and almost useless as all configuration info comes from command line and bitbake variables. It's used it creator.py to store information about output directory, logs and some never used functionality like tmpfs for future use, which doesn't actually happen. [YOCTO #10619] Signed-off-by: Ed Bartosh --- scripts/lib/wic/creator.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/scripts/lib/wic/creator.py b/scripts/lib/wic/creator.py index 8f7d1503f5..74db83cd30 100644 --- a/scripts/lib/wic/creator.py +++ b/scripts/lib/wic/creator.py @@ -20,10 +20,8 @@ from optparse import OptionParser, SUPPRESS_HELP from wic import msger from wic.utils import errors -from wic.conf import configmgr from wic.plugin import pluginmgr - class Creator(): """${name}: create an image @@ -89,23 +87,6 @@ class Creator(): os.makedirs(os.path.dirname(logfile_abs_path)) msger.set_interactive(False) msger.set_logfile(logfile_abs_path) - configmgr.create['logfile'] = options.logfile - - if options.config: - configmgr.reset() - configmgr._siteconf = options.config - - if options.outdir is not None: - configmgr.create['outdir'] = abspath(options.outdir) - - cdir = 'outdir' - if os.path.exists(configmgr.create[cdir]) \ - and not os.path.isdir(configmgr.create[cdir]): - msger.error('Invalid directory specified: %s' \ - % configmgr.create[cdir]) - - if options.enabletmpfs: - configmgr.create['enabletmpfs'] = options.enabletmpfs def main(self, argv=None): if argv is None: -- cgit v1.2.3