diff options
| -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 | ||||
| -rw-r--r-- | stage5/EXPORT_IMAGE | 4 |
6 files changed, 66 insertions, 4 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 diff --git a/stage5/EXPORT_IMAGE b/stage5/EXPORT_IMAGE deleted file mode 100644 index a81a844..0000000 --- a/stage5/EXPORT_IMAGE +++ /dev/null @@ -1,4 +0,0 @@ -IMG_SUFFIX="-full" -if [ "${USE_QEMU}" = "1" ]; then - export IMG_SUFFIX="${IMG_SUFFIX}-qemu" -fi |
