Add install of matplotlib to raspberry pi disk image
Had to increase the disk image size to support this. Looks like it requires
at least 2.4 GB. I moved it to 3 GB to give some extra buffer-- not sure
if there are any issues with this size.
Change-Id: I736ee915b72b5eadb55df270884fe6ce3ea9bef3
diff --git a/y2020/vision/rootfs/modify_rootfs.sh b/y2020/vision/rootfs/modify_rootfs.sh
index 6ebeeca..8cec075 100755
--- a/y2020/vision/rootfs/modify_rootfs.sh
+++ b/y2020/vision/rootfs/modify_rootfs.sh
@@ -2,7 +2,8 @@
set -xe
-IMAGE="2020-02-13-raspbian-buster-lite.img"
+# Full path to Raspberry Pi Buster disk image
+IMAGE="2020-08-20-raspios-buster-armhf-lite.img"
BOOT_PARTITION="${IMAGE}.boot_partition"
PARTITION="${IMAGE}.partition"
@@ -43,7 +44,7 @@
else
OFFSET="$(fdisk -lu "${IMAGE}" | grep "${IMAGE}2" | awk '{print 512*$2}')"
- if [[ "$(stat -c %s "${IMAGE}")" < 2000000000 ]]; then
+ if [[ "$(stat -c %s "${IMAGE}")" < 3000000000 ]]; then
echo "Growing image"
dd if=/dev/zero bs=1G count=1 >> "${IMAGE}"
START="$(fdisk -lu "${IMAGE}" | grep "${IMAGE}2" | awk '{print $2}')"