Correct lock check failures 67/5967/2
authorC.J. Collier <cjcollier@linuxfoundation.org>
Fri, 31 Mar 2017 03:47:34 +0000 (20:47 -0700)
committerC.J. Collier <cjcollier@linuxfoundation.org>
Fri, 31 Mar 2017 04:10:53 +0000 (21:10 -0700)
commit5a3c31ca725c506003dfa2cb3a374872f10a970d
tree72e847643aadd95f1696e709182ddc82c1eaca87
parent2d0c8fd46b3c234ee6dfa127de7741165e4be0a5
Correct lock check failures

* fuser can take multiple filenames and return the lock status
  atomically
- This eliminates a race condition we were experiencing

* if the file was locked, run the lock check again.  Otherwise, just
  run apt-get directly

Change-Id: I00eb6e0fa6bdf223eadfcade05f4a4f00745750f
Signed-off-by: C.J. Collier <cjcollier@linuxfoundation.org>
packer/provision/baseline.sh