build.sh: pin pmbootstrap 3.11.1 from git
Some checks failed
image / image (push) Failing after 2m5s
Some checks failed
image / image (push) Failing after 2m5s
Alpine's packaged pmbootstrap predates pmaports' master->main rename and fails reading channels.cfg. Pinning also matches the version the rest of this script was written against. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
127b21e124
commit
ca9e36c95c
1 changed files with 5 additions and 1 deletions
6
build.sh
6
build.sh
|
|
@ -21,7 +21,11 @@ cd "$(dirname "$0")"
|
|||
# The checkout stays root-owned (later workflow steps need its .git); the
|
||||
# build user only gets dist/.
|
||||
if [ "$(id -u)" = 0 ]; then
|
||||
apk add -q pmbootstrap git sudo
|
||||
# pmbootstrap pinned from git: Alpine's package is older and e.g. still
|
||||
# reads channels.cfg from origin/master (upstream pmaports moved to main).
|
||||
apk add -q git sudo openssl python3 py3-pip
|
||||
pip install -q --break-system-packages \
|
||||
git+https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git@3.11.1
|
||||
id build >/dev/null 2>&1 || adduser -D build
|
||||
echo 'build ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/build
|
||||
rm -rf dist
|
||||
|
|
|
|||
Loading…
Reference in a new issue