this ensures that everything updates before installing any dependencies.
importantly, this sidesteps a potential apk bug
https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10881
caused by differences between 'upgrading' and 'adding' based on
already-installed dependencies.
---
images/alpine/functions | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/images/alpine/functions b/images/alpine/functions
index 68e4394..1b61e01 100644
--- a/images/alpine/functions
+++ b/images/alpine/functions
@@ -14,7 +14,7 @@ boot() {
install() {
port=$1
shift 1
- guest_ssh -p $port build@localhost sudo apk update
+ guest_ssh -p $port build@localhost sudo apk upgrade -U
guest_ssh -p $port build@localhost sudo apk add "$@"
}
--
2.39.2