diff options
Diffstat (limited to 'lt-qcom-ubuntu-images-3.4.yaml')
-rw-r--r-- | lt-qcom-ubuntu-images-3.4.yaml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lt-qcom-ubuntu-images-3.4.yaml b/lt-qcom-ubuntu-images-3.4.yaml index 8f552c9..4cf8679 100644 --- a/lt-qcom-ubuntu-images-3.4.yaml +++ b/lt-qcom-ubuntu-images-3.4.yaml @@ -73,6 +73,7 @@ cleanup_exit() { cd ${WORKSPACE} + sudo kpartx -dv out/linaro-${UBUNTU_FLAVOUR}-*.sd.img || true rm -rf lci-build-tools rm -rf builddir* rm -rf out @@ -152,8 +153,10 @@ # Create eMMC rootfs image(s) mkdir rootfs - sudo kpartx -av out/linaro-${UBUNTU_FLAVOUR}-${rootfs}-${PLATFORM_NAME}-${VERSION}.sd.img - sudo mount -o loop /dev/mapper/loop0p2 rootfs + for device in $(sudo kpartx -av out/linaro-${UBUNTU_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 [ "${rootfs}" = "developer" ] && cat << EOF | sudo tee rootfs/etc/network/interfaces.d/eth0 auto eth0 |