fix: add --ask=4 safety net for init-rc conflicts in all three pacman code paths

--ignore alone doesn't reliably prevent provider resolution during fresh
pacman -S installs. --ask=4 auto-answers YES to conflict resolution
questions (e.g. 'remove dinit-rc?') with --noconfirm, providing a safety
net when --ignore doesn't prevent the dinit-rc vs openrc conflict.

All three code paths updated:
  - buildiso: make_rootfs() basestrap call
  - basestrap/main.py: PMPacman.install()
  - packages/main.py: PMPacman.install()
This commit is contained in:
2026-07-05 22:16:40 +02:00
parent 2c0d2424b4
commit 69da290ac5
3 changed files with 12 additions and 3 deletions
@@ -233,6 +233,9 @@ class PMPacman(PackageManager):
for p in sorted_inits[:idx]:
command.append(f"--ignore={base_init}-{p}")
# Safety net: auto-answer YES to conflict resolution
command.append("--ask=4")
if self.pacman_needed_only is True:
command.append("--needed")
if self.pacman_disable_timeout is True: