Allow ISOs to be build against the edge mirror/package repository
This commit is contained in:
1 parent
e5152cd7b2
commit
a202c81a0c
4 files changed
+48
-3
No files matched your search
+10
-2
@@ -9,7 +9,11 @@ pacman --noconfirm -Sy archiso git sudo base-devel jq grub
|
||||
|
||||
# Install omarchy-keyring for package verification during build
|
||||
# The [omarchy] repo is defined in /configs/pacman-online.conf with SigLevel = Optional TrustAll
|
||||
pacman --config /configs/pacman-online.conf --noconfirm -Sy omarchy-keyring
|
||||
if [[ $OMARCHY_MIRROR == "edge" ]]; then
|
||||
pacman --config /configs/pacman-online-edge.conf --noconfirm -Sy omarchy-keyring
|
||||
else
|
||||
pacman --config /configs/pacman-online-stable.conf --noconfirm -Sy omarchy-keyring
|
||||
fi
|
||||
pacman-key --populate omarchy
|
||||
|
||||
# Setup build locations
|
||||
@@ -78,7 +82,11 @@ all_packages+=($(grep -v '^#' /builder/archinstall.packages | grep -v '^$'))
|
||||
|
||||
# Download all the packages to the offline mirror inside the ISO
|
||||
mkdir -p /tmp/offlinedb
|
||||
pacman --config /configs/pacman-online.conf --noconfirm -Syw "${all_packages[@]}" --cachedir $offline_mirror_dir/ --dbpath /tmp/offlinedb
|
||||
if [[ $OMARCHY_MIRROR == "edge" ]]; then
|
||||
pacman --config /configs/pacman-online-edge.conf --noconfirm -Syw "${all_packages[@]}" --cachedir $offline_mirror_dir/ --dbpath /tmp/offlinedb
|
||||
else
|
||||
pacman --config /configs/pacman-online-stable.conf --noconfirm -Syw "${all_packages[@]}" --cachedir $offline_mirror_dir/ --dbpath /tmp/offlinedb
|
||||
fi
|
||||
repo-add --new "$offline_mirror_dir/offline.db.tar.gz" "$offline_mirror_dir/"*.pkg.tar.zst
|
||||
|
||||
# Create a symlink to the offline mirror instead of duplicating it.
|
||||
|
||||
Reference in new issue
Block a user