gen-pacman-repo: create the seed root before invoking pacman

pacman resolves the --root path before doing any work and errors out
when it does not exist, so the seed always failed after the cleanup rm.
This commit is contained in:
Douglas Teles
2026-07-07 22:03:09 -03:00
parent ccb3eaaa86
commit 8275879350
+1 -1
View File
@@ -194,7 +194,7 @@ fi
echo "gen-pacman-repo: seeding installed (local) db..."
seed_dbpath="${OUT_DIR}/.seed-dbpath"
rm -rf "${seed_dbpath}" "${OUT_DIR}/.seed-root"
mkdir -p "${seed_dbpath}/local" "${seed_dbpath}/sync"
mkdir -p "${seed_dbpath}/local" "${seed_dbpath}/sync" "${OUT_DIR}/.seed-root"
cp "${local_db}" "${seed_dbpath}/sync/${REPO_NAME}.db"
# The host pacman runs with the host architecture and signature policy,
# which rejects our unsigned aarch64 payload; give it a minimal config