mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-07-12 18:19:42 -07:00
gen-pacman-repo: seed the local db with an aarch64 no-sig config
The host pacman applies the host architecture and signature policy to the seed transaction, so every aarch64 package was rejected and the local-db tarball was silently skipped, leaving freshly flashed images without an upgradable base.
This commit is contained in:
@@ -196,7 +196,12 @@ seed_dbpath="${OUT_DIR}/.seed-dbpath"
|
|||||||
rm -rf "${seed_dbpath}" "${OUT_DIR}/.seed-root"
|
rm -rf "${seed_dbpath}" "${OUT_DIR}/.seed-root"
|
||||||
mkdir -p "${seed_dbpath}/local" "${seed_dbpath}/sync"
|
mkdir -p "${seed_dbpath}/local" "${seed_dbpath}/sync"
|
||||||
cp "${local_db}" "${seed_dbpath}/sync/${REPO_NAME}.db"
|
cp "${local_db}" "${seed_dbpath}/sync/${REPO_NAME}.db"
|
||||||
if fakeroot pacman -U --dbonly --noconfirm \
|
# The host pacman runs with the host architecture and signature policy,
|
||||||
|
# which rejects our unsigned aarch64 payload; give it a minimal config
|
||||||
|
# scoped to this seed operation.
|
||||||
|
seed_conf="${seed_dbpath}/pacman.conf"
|
||||||
|
printf '[options]\nArchitecture = aarch64\nSigLevel = Never\n' > "${seed_conf}"
|
||||||
|
if fakeroot pacman -U --dbonly --noconfirm --config "${seed_conf}" \
|
||||||
--root "${OUT_DIR}/.seed-root" --dbpath "${seed_dbpath}" \
|
--root "${OUT_DIR}/.seed-root" --dbpath "${seed_dbpath}" \
|
||||||
--cachedir "${OUT_DIR}" \
|
--cachedir "${OUT_DIR}" \
|
||||||
"${OUT_DIR}"/*.pkg.tar.zst >/dev/null 2>&1; then
|
"${OUT_DIR}"/*.pkg.tar.zst >/dev/null 2>&1; then
|
||||||
|
|||||||
Reference in New Issue
Block a user