diff --git a/builder/build-iso.sh b/builder/build-iso.sh index 0c917d6..86ffae4 100755 --- a/builder/build-iso.sh +++ b/builder/build-iso.sh @@ -41,11 +41,14 @@ 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. +# Put OPR first in the container too so makepkg resolves the same overrides +# as the online installer configuration. if ! grep -q '^\[omarchy\]' /etc/pacman.conf; then - awk '/^\[omarchy\]/,/^$/' /configs/pacman-online-${OMARCHY_MIRROR}.conf >> /etc/pacman.conf + opr_section=$(awk '/^\[omarchy\]/,/^$/' /configs/pacman-online-${OMARCHY_MIRROR}.conf) + awk -v opr="$opr_section" '/^\[core\]/ { print opr; print "" } { print }' \ + /etc/pacman.conf >/tmp/pacman-opr-first.conf + install -m 644 /tmp/pacman-opr-first.conf /etc/pacman.conf + rm -f /tmp/pacman-opr-first.conf fi # Build locations diff --git a/configs/pacman-online-edge.conf b/configs/pacman-online-edge.conf index 0ac18d8..8f280f4 100644 --- a/configs/pacman-online-edge.conf +++ b/configs/pacman-online-edge.conf @@ -13,6 +13,10 @@ ParallelDownloads = 5 SigLevel = Required DatabaseOptional LocalFileSigLevel = Optional +[omarchy] +SigLevel = Optional TrustAll +Server = https://pkgs.omarchy.org/edge/$arch + [core] Server = https://mirror.omarchy.org/$repo/os/$arch Include = /etc/pacman.d/mirrorlist @@ -25,10 +29,6 @@ Include = /etc/pacman.d/mirrorlist Server = https://mirror.omarchy.org/$repo/os/$arch Include = /etc/pacman.d/mirrorlist -[omarchy] -SigLevel = Optional TrustAll -Server = https://pkgs.omarchy.org/edge/$arch - [arch-mact2] Server = https://mirror.funami.tech/arch-mact2/os/x86_64 Server = https://github.com/NoaHimesaka1873/arch-mact2-mirror/releases/download/release diff --git a/configs/pacman-online-rc.conf b/configs/pacman-online-rc.conf index 09bff86..f9f9020 100644 --- a/configs/pacman-online-rc.conf +++ b/configs/pacman-online-rc.conf @@ -13,6 +13,10 @@ ParallelDownloads = 5 SigLevel = Required DatabaseOptional LocalFileSigLevel = Optional +[omarchy] +SigLevel = Optional TrustAll +Server = https://pkgs.omarchy.org/rc/$arch + [core] Server = https://rc-mirror.omarchy.org/$repo/os/$arch Include = /etc/pacman.d/mirrorlist @@ -25,10 +29,6 @@ Include = /etc/pacman.d/mirrorlist Server = https://rc-mirror.omarchy.org/$repo/os/$arch Include = /etc/pacman.d/mirrorlist -[omarchy] -SigLevel = Optional TrustAll -Server = https://pkgs.omarchy.org/rc/$arch - [arch-mact2] Server = https://mirror.funami.tech/arch-mact2/os/x86_64 Server = https://github.com/NoaHimesaka1873/arch-mact2-mirror/releases/download/release diff --git a/configs/pacman-online-stable.conf b/configs/pacman-online-stable.conf index c3be65b..9589e62 100644 --- a/configs/pacman-online-stable.conf +++ b/configs/pacman-online-stable.conf @@ -13,6 +13,10 @@ ParallelDownloads = 5 SigLevel = Required DatabaseOptional LocalFileSigLevel = Optional +[omarchy] +SigLevel = Optional TrustAll +Server = https://pkgs.omarchy.org/stable/$arch + [core] Server = https://stable-mirror.omarchy.org/$repo/os/$arch Include = /etc/pacman.d/mirrorlist @@ -25,10 +29,6 @@ Include = /etc/pacman.d/mirrorlist Server = https://stable-mirror.omarchy.org/$repo/os/$arch Include = /etc/pacman.d/mirrorlist -[omarchy] -SigLevel = Optional TrustAll -Server = https://pkgs.omarchy.org/stable/$arch - [arch-mact2] Server = https://mirror.funami.tech/arch-mact2/os/x86_64 Server = https://github.com/NoaHimesaka1873/arch-mact2-mirror/releases/download/release