summaryrefslogtreecommitdiffstats
path: root/packer
diff options
context:
space:
mode:
authorRudy Grigar <rgrigar@linuxfoundation.org>2017-02-14 16:39:04 -0800
committerRudy Grigar <rgrigar@linuxfoundation.org>2017-02-14 16:39:04 -0800
commitf7802196147dfb43dd06e69ad89b0c2a0ddd7200 (patch)
treea4ae84d70f00b8b17b9baa2df007ed18069016d1 /packer
parent4f9ec4dba102cd5ba21f7982ac08445a2912f5a9 (diff)
Also wait for apt-get update list lock
Change-Id: I56c644e4862736271ac1c991d3a9d60bfbdf5505 Signed-off-by: Rudy Grigar <rgrigar@linuxfoundation.org>
Diffstat (limited to 'packer')
-rw-r--r--packer/provision/baseline.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/packer/provision/baseline.sh b/packer/provision/baseline.sh
index 99e7460cf..87c777699 100644
--- a/packer/provision/baseline.sh
+++ b/packer/provision/baseline.sh
@@ -122,7 +122,7 @@ EOF
i=0
tput sc
-while fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do
+while [ fuser /var/lib/dpkg/lock >/dev/null 2>&1 || fuser /var/lib/apt/lists/lock >/dev/null 2>&1 ]; do
case $(($i % 4)) in
0 ) j="-" ;;
1 ) j="\\" ;;