Enable apk --cache-predownload
With apk-tools commit https://gitlab.alpinelinux.org/alpine/apk-tools/-/commit/cddca5769e9880e46f756a065098af46b603a9aa it supports --cache-predownload
which "downloads needed packages to cache before starting to commit a transtaction". Meaning, in case WiFi or mobile data drops out during the upgrade (or battery runs out or any other situation), you won't have a system in a half-upgraded state which might not boot anymore after a reboot.
I think we should enable this by default for users (using /etc/apk/config
) so that upgrades become safer.