summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorDavis, Michael <michael.davis@essvote.com>2018-10-08 19:55:22 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-10 12:47:35 +0100
commit9fa7068855de7264b5953fe818bc0756183a2775 (patch)
tree1f705b861c6516efde97180be10f0dc5e20460d4 /scripts/lib
parentf76e2655d476e9aa5ca9152bc802615bf54c5bdf (diff)
downloadpoky-9fa7068855de7264b5953fe818bc0756183a2775.tar.gz
wic: Support for changing the imager.
(From OE-Core rev: f24c3538a27388d282a94e2d8a70cd9108d0919c) Signed-off-by: Michael Davis <michael.davis@essvote.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/wic/engine.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py
index 850cec30e5..e6c830ce78 100644
--- a/scripts/lib/wic/engine.py
+++ b/scripts/lib/wic/engine.py
@@ -191,7 +191,7 @@ def wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir,
191 if not os.path.exists(options.outdir): 191 if not os.path.exists(options.outdir):
192 os.makedirs(options.outdir) 192 os.makedirs(options.outdir)
193 193
194 pname = 'direct' 194 pname = options.imager
195 plugin_class = PluginMgr.get_plugins('imager').get(pname) 195 plugin_class = PluginMgr.get_plugins('imager').get(pname)
196 if not plugin_class: 196 if not plugin_class:
197 raise WicError('Unknown plugin: %s' % pname) 197 raise WicError('Unknown plugin: %s' % pname)