I have my first beta image for our Compute Module-based controller.
I would like to take this image and compress it so that when I need to duplicate it (using dd), I only have to copy the first N in-use blocks, and not 7GB of unused blocks.
I have seen hints on the web on how to do this, but most of them suggest running raspi-config, and expanding the filesystem, which will NOT work for our application. I want to have a fully working 8GB filesystem that has all the data moved to the first N blocks.
Is there anyone who has done this?