aboutsummaryrefslogtreecommitdiff
path: root/lt-qcom-debian-images.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2016-02-05 18:59:32 +0200
committerLinaro Code Review <review@review.linaro.org>2016-02-05 17:14:05 +0000
commitd6b5ac81e2fa192970f36a935743357e4516b094 (patch)
tree582c666c581d07a86e239c84707e32570ce00375 /lt-qcom-debian-images.yaml
parent681fbeae6f4a8bd56c516aff1ab81233040dfaf6 (diff)
downloadconfigs-d6b5ac81e2fa192970f36a935743357e4516b094.tar.gz
Use kpartx sync mode
kpartx sync mode is introduced in 0.5 and will only return once partitions are there. Use it to avoid races. Change-Id: I7153f9e6f68866008006e07277ef5c8c82af4c77 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'lt-qcom-debian-images.yaml')
-rw-r--r--lt-qcom-debian-images.yaml5
1 files changed, 3 insertions, 2 deletions
diff --git a/lt-qcom-debian-images.yaml b/lt-qcom-debian-images.yaml
index 419a37ecf..35576c38a 100644
--- a/lt-qcom-debian-images.yaml
+++ b/lt-qcom-debian-images.yaml
@@ -94,7 +94,8 @@
wget -q \
http://repo.linaro.org/ubuntu/linaro-overlay/pool/main/a/android-tools/android-tools-fsutils_4.2.2+git20130218-3ubuntu41+linaro1_amd64.deb \
http://repo.linaro.org/ubuntu/linaro-tools/pool/main/l/linaro-image-tools/linaro-image-tools_2015.11-1.linarojessie.1_amd64.deb \
- http://repo.linaro.org/ubuntu/linaro-tools/pool/main/l/linaro-image-tools/python-linaro-image-tools_2015.11-1.linarojessie.1_all.deb
+ http://repo.linaro.org/ubuntu/linaro-tools/pool/main/l/linaro-image-tools/python-linaro-image-tools_2015.11-1.linarojessie.1_all.deb \
+ http://repo.linaro.org/ubuntu/linaro-overlay/pool/main/m/multipath-tools/kpartx_0.5.0-7ubuntu7.1_amd64.deb
sudo dpkg -i --force-all *.deb
rm -f *.deb
@@ -220,7 +221,7 @@
# Create eMMC rootfs image(s)
mkdir rootfs
- for device in $(sudo kpartx -av out/${VENDOR}-${OS_FLAVOUR}-${rootfs}-${PLATFORM_NAME}-${VERSION}.sd.img | cut -d' ' -f3); do
+ for device in $(sudo kpartx -avs out/${VENDOR}-${OS_FLAVOUR}-${rootfs}-${PLATFORM_NAME}-${VERSION}.sd.img | cut -d' ' -f3); do
partition=$(echo ${device} | cut -d'p' -f3)
[ "${partition}" = "2" ] && sudo mount -o loop /dev/mapper/${device} rootfs
done