diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2016-05-27 16:19:00 +0200 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2016-05-27 15:15:42 +0000 |
commit | 2ac985966a9a83c40f0f311ecc82e5fce134ede3 (patch) | |
tree | 1136834f5d10842ad2843c09794568b24f78d6fd /lt-qcom-debian-images.yaml | |
parent | 270fb48de0c98c8fdfb52f3cdeed45627ed5f789 (diff) |
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.yaml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lt-qcom-debian-images.yaml b/lt-qcom-debian-images.yaml index 5a2332ba0c..4832e940c0 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 |