pmbootstrap: use pmbootstrap fork

Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
Vasiliy Doylov 2025-06-17 00:38:53 +03:00
parent 3eef07431d
commit 3c1371c0e8
Signed by: NekoCWD
GPG key ID: B7BE22D44474A582
3 changed files with 25 additions and 12 deletions

View file

@ -25,9 +25,10 @@ services:
volumes: volumes:
- ./data/pmb/:/data - ./data/pmb/:/data
- ./conf/pmb/:/conf - ./conf/pmb/:/conf
- ./pmb/setup:/setup-pmbootstrap - ./pmb/setup:/setup-pmb
- ./pmb/update:/update-pmb
- ./pmb/pmbootstrap:/usr/bin/pmbootstrap - ./pmb/pmbootstrap:/usr/bin/pmbootstrap
- ./pmb/pmbootstrap.cfg:/pmbootstrap.cfg - ./pmb/pmbootstrap.cfg:/pmbootstrap.cfg
- ./pmb/env:/data/.env - ./pmb/env:/data/.env
command: "/setup-pmbootstrap" command: "/setup-pmb"
privileged: true privileged: true

View file

@ -1,13 +1,4 @@
#!/bin/sh #!/bin/sh
/setup-runner /setup-runner
apk add python3 losetup cmd:kpartx openssl /update-pmb
git clone https://git.nekocwd.duckdns.org/Mirror/pmbootstrap /data/pmbootstrap || true
git clone https://git.nekocwd.duckdns.org/Mirror/pmaports /data/pmaports || true
git clone https://git.nekocwd.duckdns.org/Mirror/aports /data/aports || true
git -C /data/pmaports remote add postmarketos https://gitlab.postmarketos.org/postmarketOS/pmaports.git || true
git -C /data/pmaports fetch postmarketos --depth=1 -f || true
yes '' | pmbootstrap init
pmbootstrap config mirrors.alpine https://mirror.nekocwd.duckdns.org/alpine/
pmbootstrap config mirrors.pmaports https://mirror.nekocwd.duckdns.org/postmarketos/
pmbootstrap config mirrors.systemd https://mirror.nekocwd.duckdns.org/postmarketos/extra-repos/systemd/
/run-runner /run-runner

21
pmb/update Executable file
View file

@ -0,0 +1,21 @@
#!/bin/sh
echo "Install dependencies"
apk add python3 losetup cmd:kpartx openssl
echo "Clone repos"
git clone https://git.nekocwd.duckdns.org/Administration/pmbootstrap-meow /data/pmbootstrap || true
git clone https://git.nekocwd.duckdns.org/Mirror/pmaports /data/pmaports || true
git clone https://git.nekocwd.duckdns.org/Mirror/aports /data/aports || true
echo "Fetch latest changes"
git -C /data/pmbootstrap fetch
git -C /data/pmaports fetch
git -C /data/aports fetch
git -C /data/pmbootstrap reset --hard origin/master
git -C /data/pmaports reset --hard origin/master
git -C /data/aports reset --hard origin/master
echo "Init pmbootstrap"
yes '' | pmbootstrap init
echo "Configure pmbootstrap to use internal mirrors"
pmbootstrap config mirrors.alpine https://mirror.nekocwd.duckdns.org/alpine/
pmbootstrap config mirrors.pmaports https://mirror.nekocwd.duckdns.org/postmarketos/
pmbootstrap config mirrors.systemd https://mirror.nekocwd.duckdns.org/postmarketos/extra-repos/systemd/
echo "That's all <3"