pmb.chroot.init: upgrade pkgs at the end (MR 2273)

Upgrade packages in the chroot, in case alpine-base, apk etc. have been
built from source with pmbootstrap. We build it from source for systemd
currently, and sometimes it is useful to do that to debug apk.
This commit is contained in:
Oliver Smith 2024-02-25 16:52:18 +01:00
parent 9126d15452
commit dce459984e
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 4 additions and 0 deletions

View File

@ -162,3 +162,7 @@ def init(args, suffix="native", usr_merge=UsrMerge.AUTO,
usr_merge = UsrMerge.ON
if usr_merge is UsrMerge.ON:
init_usr_merge(args, suffix)
# Upgrade packages in the chroot, in case alpine-base, apk, etc. have been
# built from source with pmbootstrap
pmb.chroot.root(args, ["apk", "--no-network", "upgrade", "-a"], suffix)