From: Daan De Meyer Date: Fri, 26 Sep 2025 08:45:17 +0000 (+0200) Subject: apk: Download packages before installing X-Git-Tag: v26~104^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8664fea92e3c7d044ea79e61dad6023de7a1647a;p=thirdparty%2Fmkosi.git apk: Download packages before installing We do this for all other package managers, let's make apk consistent and do it there as well. --- diff --git a/mkosi/installer/apk.py b/mkosi/installer/apk.py index d4ac560ec..28776ff53 100644 --- a/mkosi/installer/apk.py +++ b/mkosi/installer/apk.py @@ -61,11 +61,12 @@ class Apk(PackageManager): return [ "apk", "--root", "/buildroot", + "--cache-packages", "--cache-dir", "/var/cache/apk", + "--cache-predownload", "--arch", context.config.distribution.architecture(context.config.architecture), "--no-interactive", "--preserve-env", - "--cache-packages", "--keys-dir", "/etc/apk/keys", "--repositories-file", "/etc/apk/repositories", *(["--allow-untrusted"] if not context.config.repository_key_check else []),