Cool! Thanks!
Yes absolutely. That’s exactly how I did it for the 1.9Go iso. FYI unzip it’s about 5Go.
A good entry point is to look on how works the resize at startup part. For example for raspberry: https://github.com/RPi-Distro/raspi-config/blob/master/raspi-config
Basically to shrink it you need to do the opposite:
- First use resize2fs to shrink the filesystem
- Then use gparted to shrink the partition (make sure you partition is bigger than the file system)
- Finally, make sure the expand script is run at the next startup (for odroid I’ve used the resize function from https://github.com/poppy-project/poppy_install/blob/master/poppy_setup.sh)