I have used my Raspberry Pi for a specific project, where I had to change some configuration in the Rpi, install some dependencies and create a service so it launches at boot.
Now that it's all done, I would like to make a file with my installation as it is so I can copy it into a different SD card for another Raspberry Pi, but just plain using dd
gives a file way too big.
I know the official Raspberry Pi images have some configuration set so that they grow the size of the rootfs partition on the first boot to fill the SD card, how do I extract an image of my current installation that does the same thing?