From d74e7d3fa693eb7037a57dfbd0c47bc53255316f Mon Sep 17 00:00:00 2001 From: Tom Zanussi Date: Thu, 7 Aug 2014 12:04:06 -0500 Subject: wic: Remove unused conf support Also fix up users such as imager functions. (From OE-Core rev: eb77b9c11bd9b8dc90aacfbd5b5bc5568a233525) Signed-off-by: Tom Zanussi Signed-off-by: Richard Purdie --- scripts/lib/mic/conf.py | 39 --------------------------------------- 1 file changed, 39 deletions(-) (limited to 'scripts/lib/mic/conf.py') diff --git a/scripts/lib/mic/conf.py b/scripts/lib/mic/conf.py index 1fe6edd..a686e9c 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() -- cgit v1.1