From 1224531ce1605731b28578bec9e8f4b63f28c351 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Wed, 20 May 2026 21:39:58 -0400 Subject: [PATCH] Add the [omarchy] repo to the build container's pacman.conf makepkg in build-omarchy-packages.sh installs runtime build deps via pacman, which uses the container's /etc/pacman.conf. That config only had core/extra/multilib by default, so deps that live in the omarchy repo (limine-snapper-sync, limine-mkinitcpio-hook) failed to resolve. Append the [omarchy] block from the channel-specific online config to /etc/pacman.conf right after omarchy-keyring is installed. --- builder/build-iso.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/builder/build-iso.sh b/builder/build-iso.sh index 17c9b40..1e69e41 100755 --- a/builder/build-iso.sh +++ b/builder/build-iso.sh @@ -16,6 +16,13 @@ pacman-key --lsign-key 40DFB630FF42BCFFB047046CF0134EE680CAC571 pacman --config /configs/pacman-online-${OMARCHY_MIRROR}.conf --noconfirm -Sy omarchy-keyring pacman-key --populate omarchy +# Append the [omarchy] repo to the container's /etc/pacman.conf so subsequent +# tools (notably makepkg in build-omarchy-packages.sh) can resolve omarchy- +# only build deps like limine-snapper-sync and limine-mkinitcpio-hook. +if ! grep -q '^\[omarchy\]' /etc/pacman.conf; then + awk '/^\[omarchy\]/,/^$/' /configs/pacman-online-${OMARCHY_MIRROR}.conf >> /etc/pacman.conf +fi + # Build locations build_cache_dir=/var/cache offline_mirror_dir="$build_cache_dir/airootfs/var/cache/omarchy/mirror/offline"