From d799d1142a28e40a9ad63e210a0232b7d5062863 Mon Sep 17 00:00:00 2001 From: psykose Date: Mon, 27 Feb 2023 21:15:54 +0100 Subject: [PATCH] alpine: upgrade the image before adding dependencies 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.38.5