diff options
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/wic/creator.py | 19 |
1 files changed, 0 insertions, 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 | |||
20 | 20 | ||
21 | from wic import msger | 21 | from wic import msger |
22 | from wic.utils import errors | 22 | from wic.utils import errors |
23 | from wic.conf import configmgr | ||
24 | from wic.plugin import pluginmgr | 23 | from wic.plugin import pluginmgr |
25 | 24 | ||
26 | |||
27 | class Creator(): | 25 | class Creator(): |
28 | """${name}: create an image | 26 | """${name}: create an image |
29 | 27 | ||
@@ -89,23 +87,6 @@ class Creator(): | |||
89 | os.makedirs(os.path.dirname(logfile_abs_path)) | 87 | os.makedirs(os.path.dirname(logfile_abs_path)) |
90 | msger.set_interactive(False) | 88 | msger.set_interactive(False) |
91 | msger.set_logfile(logfile_abs_path) | 89 | msger.set_logfile(logfile_abs_path) |
92 | configmgr.create['logfile'] = options.logfile | ||
93 | |||
94 | if options.config: | ||
95 | configmgr.reset() | ||
96 | configmgr._siteconf = options.config | ||
97 | |||
98 | if options.outdir is not None: | ||
99 | configmgr.create['outdir'] = abspath(options.outdir) | ||
100 | |||
101 | cdir = 'outdir' | ||
102 | if os.path.exists(configmgr.create[cdir]) \ | ||
103 | and not os.path.isdir(configmgr.create[cdir]): | ||
104 | msger.error('Invalid directory specified: %s' \ | ||
105 | % configmgr.create[cdir]) | ||
106 | |||
107 | if options.enabletmpfs: | ||
108 | configmgr.create['enabletmpfs'] = options.enabletmpfs | ||
109 | 90 | ||
110 | def main(self, argv=None): | 91 | def main(self, argv=None): |
111 | if argv is None: | 92 | if argv is None: |