diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2014-08-07 12:04:06 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-11 10:52:18 +0100 |
commit | eb77b9c11bd9b8dc90aacfbd5b5bc5568a233525 (patch) | |
tree | 4e5c77cee3be7abf65875b4725e8e4cce739fdba /scripts/lib/mic/conf.py | |
parent | dfa8626700269141f8d2f5be12c8758db7ca6473 (diff) | |
download | openembedded-core-eb77b9c11bd9b8dc90aacfbd5b5bc5568a233525.tar.gz openembedded-core-eb77b9c11bd9b8dc90aacfbd5b5bc5568a233525.tar.bz2 openembedded-core-eb77b9c11bd9b8dc90aacfbd5b5bc5568a233525.zip |
wic: Remove unused conf support
Also fix up users such as imager functions.
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Diffstat (limited to 'scripts/lib/mic/conf.py')
-rw-r--r-- | scripts/lib/mic/conf.py | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/scripts/lib/mic/conf.py b/scripts/lib/mic/conf.py index 1fe6edd724..a686e9caa7 100644 --- a/scripts/lib/mic/conf.py +++ b/scripts/lib/mic/conf.py @@ -31,45 +31,18 @@ def get_siteconf(): return scripts_path + "/lib/image/config/wic.conf" class ConfigMgr(object): - prefer_backends = ["zypp", "yum"] - DEFAULTS = {'common': { "distro_name": "Default Distribution", "plugin_dir": "/usr/lib/wic/plugins", # TODO use prefix also? }, 'create': { "tmpdir": '/var/tmp/wic', - "cachedir": '/var/tmp/wic/cache', "outdir": './wic-output', - "arch": None, # None means auto-detect - "pkgmgr": "auto", - "name": "output", - "ksfile": None, - "ks": None, - "repomd": None, - "local_pkgs_path": None, "release": None, "logfile": None, - "record_pkgs": [], - "pack_to": None, "name_prefix": None, "name_suffix": None, - "copy_kernel": False, - "install_pkgs": None, - "repourl": {}, - "localrepos": [], # save localrepos - "runtime": "bootstrap", - }, - 'chroot': { - "saveto": None, - }, - 'convert': { - "shell": False, - }, - 'bootstrap': { - "rootdir": '/var/tmp/wic-bootstrap', - "packages": [], }, } @@ -116,10 +89,6 @@ class ConfigMgr(object): if not ksconf: return - ksconf = misc.normalize_ksfile(ksconf, - self.create['release'], - self.create['arch']) - ks = kickstart.read_kickstart(ksconf) self.create['ks'] = ks @@ -130,12 +99,4 @@ class ConfigMgr(object): self.create['name_prefix'], self.create['name_suffix']) - def set_runtime(self, runtime): - if runtime not in ("bootstrap", "native"): - msger.error("Invalid runtime mode: %s" % runtime) - - if misc.get_distro()[0] in ("tizen", "Tizen"): - runtime = "native" - self.create['runtime'] = runtime - configmgr = ConfigMgr() |