Prioritize OPR in online installer repositories (#240)
This commit is contained in:
1 parent
595d38cb04
commit
8b17699997
4 files changed
+19
-16
No files matched your search
@@ -41,11 +41,14 @@ pacman-key --lsign-key 40DFB630FF42BCFFB047046CF0134EE680CAC571
|
|||||||
pacman --config /configs/pacman-online-${OMARCHY_MIRROR}.conf --noconfirm -Sy omarchy-keyring
|
pacman --config /configs/pacman-online-${OMARCHY_MIRROR}.conf --noconfirm -Sy omarchy-keyring
|
||||||
pacman-key --populate omarchy
|
pacman-key --populate omarchy
|
||||||
|
|
||||||
# Append the [omarchy] repo to the container's /etc/pacman.conf so subsequent
|
# Put OPR first in the container too so makepkg resolves the same overrides
|
||||||
# tools (notably makepkg in build-omarchy-packages.sh) can resolve omarchy-
|
# as the online installer configuration.
|
||||||
# only build deps like limine-snapper-sync and limine-mkinitcpio-hook.
|
|
||||||
if ! grep -q '^\[omarchy\]' /etc/pacman.conf; then
|
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
|
fi
|
||||||
|
|
||||||
# Build locations
|
# Build locations
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ ParallelDownloads = 5
|
|||||||
SigLevel = Required DatabaseOptional
|
SigLevel = Required DatabaseOptional
|
||||||
LocalFileSigLevel = Optional
|
LocalFileSigLevel = Optional
|
||||||
|
|
||||||
|
[omarchy]
|
||||||
|
SigLevel = Optional TrustAll
|
||||||
|
Server = https://pkgs.omarchy.org/edge/$arch
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
Server = https://mirror.omarchy.org/$repo/os/$arch
|
Server = https://mirror.omarchy.org/$repo/os/$arch
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
@@ -25,10 +29,6 @@ Include = /etc/pacman.d/mirrorlist
|
|||||||
Server = https://mirror.omarchy.org/$repo/os/$arch
|
Server = https://mirror.omarchy.org/$repo/os/$arch
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[omarchy]
|
|
||||||
SigLevel = Optional TrustAll
|
|
||||||
Server = https://pkgs.omarchy.org/edge/$arch
|
|
||||||
|
|
||||||
[arch-mact2]
|
[arch-mact2]
|
||||||
Server = https://mirror.funami.tech/arch-mact2/os/x86_64
|
Server = https://mirror.funami.tech/arch-mact2/os/x86_64
|
||||||
Server = https://github.com/NoaHimesaka1873/arch-mact2-mirror/releases/download/release
|
Server = https://github.com/NoaHimesaka1873/arch-mact2-mirror/releases/download/release
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ ParallelDownloads = 5
|
|||||||
SigLevel = Required DatabaseOptional
|
SigLevel = Required DatabaseOptional
|
||||||
LocalFileSigLevel = Optional
|
LocalFileSigLevel = Optional
|
||||||
|
|
||||||
|
[omarchy]
|
||||||
|
SigLevel = Optional TrustAll
|
||||||
|
Server = https://pkgs.omarchy.org/rc/$arch
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
Server = https://rc-mirror.omarchy.org/$repo/os/$arch
|
Server = https://rc-mirror.omarchy.org/$repo/os/$arch
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
@@ -25,10 +29,6 @@ Include = /etc/pacman.d/mirrorlist
|
|||||||
Server = https://rc-mirror.omarchy.org/$repo/os/$arch
|
Server = https://rc-mirror.omarchy.org/$repo/os/$arch
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[omarchy]
|
|
||||||
SigLevel = Optional TrustAll
|
|
||||||
Server = https://pkgs.omarchy.org/rc/$arch
|
|
||||||
|
|
||||||
[arch-mact2]
|
[arch-mact2]
|
||||||
Server = https://mirror.funami.tech/arch-mact2/os/x86_64
|
Server = https://mirror.funami.tech/arch-mact2/os/x86_64
|
||||||
Server = https://github.com/NoaHimesaka1873/arch-mact2-mirror/releases/download/release
|
Server = https://github.com/NoaHimesaka1873/arch-mact2-mirror/releases/download/release
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ ParallelDownloads = 5
|
|||||||
SigLevel = Required DatabaseOptional
|
SigLevel = Required DatabaseOptional
|
||||||
LocalFileSigLevel = Optional
|
LocalFileSigLevel = Optional
|
||||||
|
|
||||||
|
[omarchy]
|
||||||
|
SigLevel = Optional TrustAll
|
||||||
|
Server = https://pkgs.omarchy.org/stable/$arch
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
Server = https://stable-mirror.omarchy.org/$repo/os/$arch
|
Server = https://stable-mirror.omarchy.org/$repo/os/$arch
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
@@ -25,10 +29,6 @@ Include = /etc/pacman.d/mirrorlist
|
|||||||
Server = https://stable-mirror.omarchy.org/$repo/os/$arch
|
Server = https://stable-mirror.omarchy.org/$repo/os/$arch
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[omarchy]
|
|
||||||
SigLevel = Optional TrustAll
|
|
||||||
Server = https://pkgs.omarchy.org/stable/$arch
|
|
||||||
|
|
||||||
[arch-mact2]
|
[arch-mact2]
|
||||||
Server = https://mirror.funami.tech/arch-mact2/os/x86_64
|
Server = https://mirror.funami.tech/arch-mact2/os/x86_64
|
||||||
Server = https://github.com/NoaHimesaka1873/arch-mact2-mirror/releases/download/release
|
Server = https://github.com/NoaHimesaka1873/arch-mact2-mirror/releases/download/release
|
||||||
|
|||||||
Reference in new issue
Block a user