diff options
author | Gui Chen <gui.chen@intel.com> | 2013-12-05 02:57:34 -0500 |
---|---|---|
committer | Gui Chen <gui.chen@intel.com> | 2013-12-11 02:59:55 -0500 |
commit | 269bcad9a77b50131bd1d735c1d9bae394cc3ef1 (patch) | |
tree | 272c65de5bc122eb80d54ec21bbb576f794a1ded /plugins/imager/raw_plugin.py | |
parent | 3ffcc4b36ceb1321d1e8f28c2a4fb24af6d288d8 (diff) | |
download | mic-269bcad9a77b50131bd1d735c1d9bae394cc3ef1.tar.gz mic-269bcad9a77b50131bd1d735c1d9bae394cc3ef1.tar.bz2 mic-269bcad9a77b50131bd1d735c1d9bae394cc3ef1.zip |
check if mic-native installed when running native mode
Change-Id: I48500314b2f7de0187beb92b7ec8877d9874dc36
Signed-off-by: Gui Chen <gui.chen@intel.com>
Diffstat (limited to 'plugins/imager/raw_plugin.py')
-rw-r--r-- | plugins/imager/raw_plugin.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/imager/raw_plugin.py b/plugins/imager/raw_plugin.py index 1b9631d..25409a9 100644 --- a/plugins/imager/raw_plugin.py +++ b/plugins/imager/raw_plugin.py @@ -63,6 +63,16 @@ class RawPlugin(ImagerPlugin): if creatoropts['runtime'] == "bootstrap": configmgr._ksconf = ksconf rt_util.bootstrap_mic() + elif not rt_util.inbootstrap(): + try: + fs_related.find_binary_path('mic-native') + except errors.CreatorError: + if not msger.ask("Subpackage \"mic-native\" has not been " + "installed in your host system, still " + "continue with \"native\" running mode?", + False): + raise errors.Abort("Abort because subpackage 'mic-native' " + "has not been installed") recording_pkgs = [] if len(creatoropts['record_pkgs']) > 0: |