From 9447922b743b2ccaac52b286e101abb368dbf1fe Mon Sep 17 00:00:00 2001 From: Gui Chen Date: Tue, 15 Jan 2013 21:31:49 +0800 Subject: [PATCH] fix the failure if ks under / dir in easy way this patch is to fix the failure if ks file under / dir, in final, mic should sync the ks file to bootstrap, the location should be kept inside bootstrap Change-Id: Ia93013622ffda0fa91c81aeb8f6e0e7c1d6b70cf Signed-off-by: Gui Chen --- mic/rt_util.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mic/rt_util.py b/mic/rt_util.py index 6dfbbb2..e2d62e5 100644 --- a/mic/rt_util.py +++ b/mic/rt_util.py @@ -74,6 +74,10 @@ def bootstrap_mic(argv=None): bsenv.dirsetup(rootdir) sync_mic(rootdir) + #FIXME: sync the ks file to bootstrap + if "/" == os.path.dirname(os.path.abspath(configmgr._ksconf)): + safecopy(configmgr._ksconf, rootdir) + msger.info("Start mic in bootstrap: %s\n" % rootdir) bindmounts = get_bindmounts(cropts) ret = bsenv.run(argv, cwd, rootdir, bindmounts) -- 2.7.4