build.sh: create the pmbootstrap work dir + version stamp ourselves
Some checks failed
image / image (push) Failing after 1m45s
Some checks failed
image / image (push) Failing after 1m45s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
9e30e6b4ee
commit
127b21e124
1 changed files with 6 additions and 0 deletions
6
build.sh
6
build.sh
|
|
@ -61,6 +61,12 @@ sed -i "s/^_commit=.*/_commit=\"$COMMIT\"/" "$KAPORT/APKBUILD"
|
|||
# Stage 1 builds WITHOUT imsd: its aport sources the v0.3.0 tag, which is not
|
||||
# published yet. When it is: add "extra_packages = imsd" and enable the
|
||||
# checksum line below.
|
||||
# 'init' would also create the work dir and stamp its migration version;
|
||||
# do both ourselves (version derived from the installed pmb, not hardcoded).
|
||||
WORKDIR="$HOME/.local/var/pmbootstrap"
|
||||
mkdir -p "$WORKDIR/cache_git"
|
||||
python3 -c "import pmb.config; print(pmb.config.work_version)" > "$WORKDIR/version"
|
||||
|
||||
mkdir -p "$HOME/.config"
|
||||
cat > "$HOME/.config/pmbootstrap_v3.cfg" <<EOF
|
||||
[pmbootstrap]
|
||||
|
|
|
|||
Loading…
Reference in a new issue