diff options
| author | hibby <hibby@debian.org> | 2026-04-21 23:46:11 +0100 |
|---|---|---|
| committer | hibby <hibby@debian.org> | 2026-04-22 19:21:25 +0100 |
| commit | e76d6529d4f458d519e9790ded441b98d9c2ff80 (patch) | |
| tree | 8b29767f6a521f193243a9cecc26fc43bebecd34 /stage4b | |
| parent | 4ad56cc850fa60adcc7f07dc15879bc95cc1d281 (diff) | |
This might be what makes it work
Diffstat (limited to 'stage4b')
| -rwxr-xr-x | stage4b/00-repo/00-run.sh | 26 | ||||
| -rw-r--r-- | stage4b/01-install-packages/00-packages | 1 | ||||
| -rwxr-xr-x | stage4b/01-install-packages/01-run.sh | 34 | ||||
| -rw-r--r-- | stage4b/files/hibbian-archive-keyring_20250715~hibbian13+1_all.deb | bin | 0 -> 4364 bytes | |||
| -rwxr-xr-x | stage4b/prerun.sh | 5 |
5 files changed, 66 insertions, 0 deletions
diff --git a/stage4b/00-repo/00-run.sh b/stage4b/00-repo/00-run.sh new file mode 100755 index 0000000..77efde2 --- /dev/null +++ b/stage4b/00-repo/00-run.sh @@ -0,0 +1,26 @@ +#!/bin/bash -e + +echo "Starting Repo Setup" + +# Copy keyring into chroot temp +pwd +ls ../files + +cp ../files/hibbian-archive-keyring_20250715\~hibbian13+1_all.deb "${ROOTFS_DIR}/root/" + +ls "${ROOTFS_DIR}/root/" + +# Install keyring (adds repo + trust) + +on_chroot << EOF +set -e +ls /tmp + +dpkg -i /root/hibbian-archive-keyring_20250715~hibbian13+1_all.deb + +# Update APT now repo exists +apt-get update + +# Clean up +rm /root/hibbian-archive-keyring_20250715~hibbian13+1_all.deb +EOF diff --git a/stage4b/01-install-packages/00-packages b/stage4b/01-install-packages/00-packages new file mode 100644 index 0000000..430ca03 --- /dev/null +++ b/stage4b/01-install-packages/00-packages @@ -0,0 +1 @@ +hamradio-all diff --git a/stage4b/01-install-packages/01-run.sh b/stage4b/01-install-packages/01-run.sh new file mode 100755 index 0000000..14c0c78 --- /dev/null +++ b/stage4b/01-install-packages/01-run.sh @@ -0,0 +1,34 @@ +#!/bin/bash -e + +set -o pipefail + +REMOVE_LIST="/tmp/remove-packages.txt" + +cat > "$REMOVE_LIST" <<EOF +svxlink-gpio +svxlink-server +svxreflector +svxlink-calibration-tools +EOF + +# Only remove installed packages +INSTALLED=$(dpkg-query -W -f='${Package}\n' | grep -Fx -f "$REMOVE_LIST" || true) + +if [ -n "$INSTALLED" ]; then + apt-get purge -y $INSTALLED +fi + +apt-get autoremove -y +apt-get clean + +rm -f "$REMOVE_LIST" + + +# Pull out svxlink suite as it interferes with soundcards +apt-get purge -y svxlink-gpio svxlink-server svxreflector svxlink-calibration-tools +# Clean up orphaned dependencies +apt-get autoremove -y + +# Optional: remove residual config files +apt-get autoclean +apt-get clean diff --git a/stage4b/files/hibbian-archive-keyring_20250715~hibbian13+1_all.deb b/stage4b/files/hibbian-archive-keyring_20250715~hibbian13+1_all.deb Binary files differnew file mode 100644 index 0000000..1a40936 --- /dev/null +++ b/stage4b/files/hibbian-archive-keyring_20250715~hibbian13+1_all.deb diff --git a/stage4b/prerun.sh b/stage4b/prerun.sh new file mode 100755 index 0000000..9acd13c --- /dev/null +++ b/stage4b/prerun.sh @@ -0,0 +1,5 @@ +#!/bin/bash -e + +if [ ! -d "${ROOTFS_DIR}" ]; then + copy_previous +fi |
