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]

(From OE-Core rev: 702ee7a1fe30d87d55ba9528ae89abff4e294fd9)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh 2017-01-30 23:23:00 +02:00 committed by Richard Purdie
parent d3c6c10de4
commit 65a99448a4
1 changed files with 0 additions and 19 deletions

View File

@ -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: