-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patharm-builder-update
More file actions
executable file
·25 lines (20 loc) · 1.07 KB
/
arm-builder-update
File metadata and controls
executable file
·25 lines (20 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
set -e
set -x
#EXTRA_MIRROR=http://archive.raspberrypi.org/debian/
#BASE_URL=https://dfx.at/rtpengine
DISTS='forky bullseye bookworm sid trixie'
ARCHS='armhf arm64'
declare -A MIRRORS
#MIRRORS[stretch]=http://archive.debian.org/debian/
for DIST in $DISTS; do
MIRROR=http://deb.debian.org/debian
if [ -n "${MIRRORS[$DIST]}" ]; then
MIRROR=${MIRRORS[$DIST]}
fi
for ARCH in $ARCHS; do
#sudo cowbuilder --update --mirror "$MIRROR" --othermirror="deb $EXTRA_MIRROR $DIST main" --override-config --distribution "$DIST" --basepath ~/var/cache/pbuilder/base-"$DIST"-"$ARCH".cow --aptcache ~/var/cache/aptcache --buildplace ~/var/cache/pbuilder/build
# sudo cowbuilder --update --mirror "$MIRROR" --override-config --distribution "$DIST" --basepath ~/var/cache/pbuilder/base-"$DIST"-"$ARCH".cow --aptcache ~/var/cache/aptcache --buildplace ~/var/cache/pbuilder/build
sudo pbuilder update --basetgz ~/var/cache/pbuilder/base-"$DIST"-"$ARCH".tgz --distribution "$DIST" --mirror "$MIRROR" --override-config --aptcache ~/var/cache/aptcache --buildplace ~/var/build
done
done