Run zerofree to make images smaller.

This is not a definitive survey, but things are looking much better!

    +--------------------------------+------+------+
    | Image type                     | Old  | New  |
    +--------------------------------+------+------+
    | PiRogue-OS-12-Pi3_and_Pi4      | 491M | 255M |
    | PiRogue-OS-12-Pi5-Experimental | 594M | 313M |
    +--------------------------------+------+------+
This commit is contained in:
Cyril Brulebois 2024-07-22 09:24:09 +02:00
parent 97469570c5
commit 8159cfc032

View File

@ -87,6 +87,7 @@ toast_me
# Free all resources:
echo "🍞 Cleaning up"
umount -R "$MNT"
zerofree "/dev/mapper/${loop}p2"
kpartx -dsv "$out"
rmdir "$MNT"