mirror of
https://github.com/home-assistant/operating-system.git
synced 2026-07-03 13:05:36 +01:00
2cd8cf450d
Borrow shrinking used in home-assistant/operating-system-full-images for reducing the data partition size to only fit its contents. Currently the data partition is intentionally overprovisioned to comfortably fit all docker images in the hassio build. This results in unnecessarily large image which takes longer to flash, as all the zeroes at the end of the filesystem need to be written to the SD card. For OVA and aarch64 VM formats, the image is resized before creating the VM images - this also makes all generic-aarch64 images sized to 32GB, unlike 6GB which inherently needed resizing before use. Some juggling extra juggling is needed in the aarch64 post-image step, as we want to preserve the raw image (e.g. for generic aarch64 boards) but it's desirable to keep it minimal as well, as it's meant to be flashed to real hardware storage.