aboutsummaryrefslogtreecommitdiff
path: root/lt-qcom-debian-images.yaml
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2016-05-27 16:19:00 +0200
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2016-05-27 15:15:42 +0000
commit2ac985966a9a83c40f0f311ecc82e5fce134ede3 (patch)
tree1136834f5d10842ad2843c09794568b24f78d6fd /lt-qcom-debian-images.yaml
parent270fb48de0c98c8fdfb52f3cdeed45627ed5f789 (diff)
downloadconfigs-2ac985966a9a83c40f0f311ecc82e5fce134ede3.tar.gz
lt-qcom-debian-images-*: compute rootfs size and add in README
Change-Id: Idc0bed6e621b85fdfe1ff80da35a5abb8e7e84ff Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'lt-qcom-debian-images.yaml')
-rw-r--r--lt-qcom-debian-images.yaml3
1 files changed, 2 insertions, 1 deletions
diff --git a/lt-qcom-debian-images.yaml b/lt-qcom-debian-images.yaml
index 5a2332ba0..4832e940c 100644
--- a/lt-qcom-debian-images.yaml
+++ b/lt-qcom-debian-images.yaml
@@ -222,6 +222,7 @@
mkdir rootfs2
sudo mount -o loop out/${VENDOR}-${OS_FLAVOUR}-${rootfs}-${PLATFORM_NAME}-${VERSION}.img.raw rootfs2
sudo cp -a rootfs/* rootfs2
+ rootfs_sz_real=$(sudo du -sh rootfs2 | cut -f1)
sudo umount rootfs2 rootfs
sudo ext2simg -v out/${VENDOR}-${OS_FLAVOUR}-${rootfs}-${PLATFORM_NAME}-${VERSION}.img.raw out/${VENDOR}-${OS_FLAVOUR}-${rootfs}-${PLATFORM_NAME}-${VERSION}.img
sudo kpartx -dv out/${VENDOR}-${OS_FLAVOUR}-${rootfs}-${PLATFORM_NAME}-${VERSION}.sd.img
@@ -231,7 +232,7 @@
gzip -9 out/${VENDOR}-${OS_FLAVOUR}-${rootfs}-${PLATFORM_NAME}-${VERSION}.img
cat >> out/README.textile << EOF
- * Linaro Debian ${rootfs}: "http://snapshots.linaro.org/debian/images/${rootfs}-${rootfs_arch}/${ROOTFS_BUILD_NUMBER}":http://snapshots.linaro.org/debian/images/${rootfs}-${rootfs_arch}/${ROOTFS_BUILD_NUMBER}
+ * Linaro Debian ${rootfs}: "http://snapshots.linaro.org/debian/images/${rootfs}-${rootfs_arch}/${ROOTFS_BUILD_NUMBER}":http://snapshots.linaro.org/debian/images/${rootfs}-${rootfs_arch}/${ROOTFS_BUILD_NUMBER} , size: ${rootfs_sz_real}
EOF
done