From b0ec89076015c514b66a4269bd4eb41a9231d006 Mon Sep 17 00:00:00 2001 From: Celestia Ludenberg Date: Sun, 5 Jul 2026 21:30:33 +0200 Subject: [PATCH] fix: install init-logind provider before base in buildiso make_rootfs Same fix as basestrap/main.py: when base depends on init-logind virtual, pacman --noconfirm picks the first provider alphabetically (elogind-dinit < elogind-openrc), pulling in dinit -> dinit-rc which conflicts with openrc (both provide/conflict with init-rc). Install elogind- as a separate basestrap call BEFORE the full package list to satisfy init-logind before base needs it. --- buildiso | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/buildiso b/buildiso index 4522fb5..cbbd1a8 100755 --- a/buildiso +++ b/buildiso @@ -96,6 +96,12 @@ make_rootfs() { if "${copy_pacconf}"; then args+=(-P) fi + + # Install init-logind provider BEFORE base to avoid pacman picking + # the wrong one alphabetically (elogind-dinit < elogind-openrc), + # which pulls in dinit -> dinit-rc and conflicts with openrc. + basestrap "${basestrap_args[@]}" "${args[@]}" "${rootfs}" "elogind-${INITSYS}" --overwrite='*' + basestrap "${basestrap_args[@]}" "${args[@]}" "${rootfs}" "${packages[@]}" --overwrite='*' copy_overlay "${root_overlay}" "${rootfs}"