lib.sh: base image: Prevent using incomplete img 67/50267/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 8 Jan 2018 16:57:56 +0000 (17:57 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 8 Jan 2018 22:51:29 +0000 (22:51 +0000)
commit17b63ba2c2f40b5b8995280d5f2cb4e696246402
tree5c5ec7fe58275953dcf2c453a3c62d8e21631ccc
parent3741eea37e45fb30c6bf8925da776af6f6888dce
lib.sh: base image: Prevent using incomplete img

In case the previous deploy attempt already copied the base image
as the VCP image in order to perform offline operations and failed,
leaving an incomplete image in place, current code might try to use
it instead of building it from scratch.

Use the hash-agnostic link names as checkpoints for successful image
handling.

Change-Id: I1e99e515e18ba1dec534c520811c127b2b528afe
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 5878c5c0c2ca8c78e9a5124452eefe8290ab63cd)
mcp/scripts/lib.sh