From 12d125ab8b72f0249fd6aae000170a4fa78a83ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Thu, 3 Apr 2025 17:00:25 +0200 Subject: [PATCH] chroot: don't depende on alpine-base In alpine it depends on openrc, and therefore we cannot install systemd with it. This is necessary to get rid of the systemd-fork and move forward with the usr-merge. Requirement for: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6375 --- pmb/chroot/init.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pmb/chroot/init.py b/pmb/chroot/init.py index 069c553c..16337eff 100644 --- a/pmb/chroot/init.py +++ b/pmb/chroot/init.py @@ -152,9 +152,11 @@ def init(chroot: Chroot, usr_merge: UsrMerge = UsrMerge.AUTO) -> None: pmb.config.workdir.chroot_save_init(chroot) - # Install alpine-base + # Install minimal amount of things to get a functional chroot. + # We don't use alpine-base since it depends on openrc, and neither + # postmarketos-base, since that's quite big (e.g: contains an init system) pmb.helpers.repo.update(arch) - pkgs = ["alpine-base"] + pkgs = ["alpine-baselayout", "apk-tools", "busybox", "musl-utils"] cmd: list[PathString] = ["--initdb"] pmb.helpers.apk.run([*cmd, "add", *pkgs], chroot)