2018-05-30, 12:47 PM
(2018-05-29, 08:21 PM)abarrow Wrote:(2018-05-29, 12:13 PM)Sailoog Wrote: I have updated the thread with the new features.Couldn't you just create the 8g image, then zip it? The empty space will go away in the zip.
I want to release the plain img (not noobs) but I do not want to create a file of 8GB. Do you know an easy way to reduce and distribute SD images? All methods I found are unstable.
Sent from my P027 using Tapatalk
The empty space may not go away by zip unless you write zeros to the unallocated blocks. I don't suggest using the zip format, it's not very good. It would be best to distribute the image with xz compression.
The image would not work on smaller sd cards like 4gb.
Wouldn't it make more sense to have a hook to resize the root partition on first boot?
Everyone has different size cards, so "8gb" is arbitrary. So the partition should be shrunk as much as possible, then the image written to just cover this. This as the added benefit of making the image faster to write to the disk.