Don't use that method use this:
# HACK: Auto-resize FS
check_root_partition=$(mount | grep " / " | awk NR==1 | awk '{print $1}')
if [[ "$check_root_partition" == "/dev/mmcblk0p2" ]]; then
sgdisk -e /dev/mmcblk0
sgdisk -d 2 /dev/mmcblk0
sgdisk -N 2 /dev/mmcblk0
partprobe /dev/mmcblk0
resize2fs /dev/mmcblk0p2
fi
This is added on last image for auto-resize in first boot
Last image published.
2020.09.25
- Auto-resize FS in first boot
- Upgraded Chatty
- Added some fonts to improve UX in terminal and System
- Fix a problem with Camera
# HACK: Auto-resize FS
check_root_partition=$(mount | grep " / " | awk NR==1 | awk '{print $1}')
if [[ "$check_root_partition" == "/dev/mmcblk0p2" ]]; then
sgdisk -e /dev/mmcblk0
sgdisk -d 2 /dev/mmcblk0
sgdisk -N 2 /dev/mmcblk0
partprobe /dev/mmcblk0
resize2fs /dev/mmcblk0p2
fi
This is added on last image for auto-resize in first boot
Last image published.
2020.09.25
- Auto-resize FS in first boot
- Upgraded Chatty
- Added some fonts to improve UX in terminal and System
- Fix a problem with Camera