lib.sh: base image: Prevent using incomplete img 57/50257/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 17:00:35 +0000 (18:00 +0100)
commit5878c5c0c2ca8c78e9a5124452eefe8290ab63cd
treeeebdd633d20e0fd8d2c9dcd3b53fa7046d352823
parent510a5fe446dea8513060813794c99e856eff1845
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>
mcp/scripts/lib.sh