summaryrefslogtreecommitdiffstats
path: root/scripts/lib/mic/kickstart
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/mic/kickstart')
-rw-r--r--scripts/lib/mic/kickstart/custom_commands/partition.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/mic/kickstart/custom_commands/partition.py b/scripts/lib/mic/kickstart/custom_commands/partition.py
index 6b575c0e8d..75ad6ad103 100644
--- a/scripts/lib/mic/kickstart/custom_commands/partition.py
+++ b/scripts/lib/mic/kickstart/custom_commands/partition.py
@@ -130,6 +130,11 @@ class Wic_PartData(Mic_PartData):
130 native_sysroot) 130 native_sysroot)
131 return 131 return
132 132
133 plugins = pluginmgr.get_source_plugins()
134
135 if self.source not in plugins:
136 msger.error("The '%s' --source specified for %s doesn't exist.\n\tSee 'wic list source-plugins' for a list of available --sources.\n\tSee 'wic help source-plugins' for details on adding a new source plugin." % (self.source, self.mountpoint))
137
133 self._source_methods = pluginmgr.get_source_plugin_methods(self.source, partition_methods) 138 self._source_methods = pluginmgr.get_source_plugin_methods(self.source, partition_methods)
134 self._source_methods["do_configure_partition"](self, cr, cr_workdir, 139 self._source_methods["do_configure_partition"](self, cr, cr_workdir,
135 oe_builddir, 140 oe_builddir,