Closed
Description
re PR #66 (documentation)
re Issue #58
https://community.openenergymonitor.org/t/emonsd-17oct19-image-partition-sizes/12282/
The current script/image fixes the size of the rootfs and only works for 16GB cards.
Suggest the script is amended to fix the Ext2 partition to the end of the card at a max size.
#EmonSD Fix end of Rootfs
if [ $ROOT_DEV_SIZE -gt 16000000 ]; then
#16GB card or above, assign last 10GB for data
TARGET_END=$(($ROOT_DEV_SIZE - 20972544 - 1 ))
elif [ $ROOT_DEV_SIZE -gt 8000000 ]; then
#8GB card, assign last 4GB for data
TARGET_END=$(($ROOT_DEV_SIZE - 7341056 - 1 ))
fiMore discussion on community thread.
I'm not certain this is a robust solution.