build.sh: document host loop requirement; dump pmbootstrap log on failure
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
6fb3ff27ef
commit
3dad95c4a1
1 changed files with 13 additions and 0 deletions
13
build.sh
13
build.sh
|
|
@ -10,6 +10,11 @@
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
# HOST REQUIREMENT: the loop driver must be loaded on the host kernel
|
||||||
|
# (modprobe loop + modules-load.d entry). Containers cannot load host
|
||||||
|
# modules, and on some kernels opening /dev/loop-control from a container
|
||||||
|
# does not autoload the driver either.
|
||||||
|
|
||||||
KERNEL_REPO=https://forgejo.catcrafts.net/Catcrafts/milos-linux.git
|
KERNEL_REPO=https://forgejo.catcrafts.net/Catcrafts/milos-linux.git
|
||||||
KERNEL_BRANCH=combined-stable
|
KERNEL_BRANCH=combined-stable
|
||||||
PMAPORTS_REPO=https://gitlab.postmarketos.org/postmarketOS/pmaports.git
|
PMAPORTS_REPO=https://gitlab.postmarketos.org/postmarketOS/pmaports.git
|
||||||
|
|
@ -57,6 +62,14 @@ fi
|
||||||
WORK=${FP6IMG_WORK:-$HOME/fp6img-work}
|
WORK=${FP6IMG_WORK:-$HOME/fp6img-work}
|
||||||
mkdir -p "$WORK"
|
mkdir -p "$WORK"
|
||||||
|
|
||||||
|
# pmbootstrap swallows its subcommands' stderr into its own log; surface it
|
||||||
|
# whenever this script dies so failures are diagnosable from the CI/console
|
||||||
|
# output alone.
|
||||||
|
trap 'rc=$?; if [ $rc -ne 0 ]; then
|
||||||
|
echo "=== build.sh failed (exit $rc); pmbootstrap log tail ==="
|
||||||
|
tail -60 "$HOME/.local/var/pmbootstrap/log.txt" 2>/dev/null || true
|
||||||
|
fi' EXIT
|
||||||
|
|
||||||
# --- 1. pmaports with our aports copied over ---------------------------------
|
# --- 1. pmaports with our aports copied over ---------------------------------
|
||||||
# pmbootstrap hard-errors when a pkgname exists in more than one aports dir,
|
# pmbootstrap hard-errors when a pkgname exists in more than one aports dir,
|
||||||
# so "overlay" means: clone upstream, delete the upstream aport, drop ours in.
|
# so "overlay" means: clone upstream, delete the upstream aport, drop ours in.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue