From 4e547a0fe57ec14e5b81ccb66a9d72f7eec0b95f Mon Sep 17 00:00:00 2001 From: Luis-ADFA Date: Fri, 21 Aug 2026 03:38:55 -0600 Subject: [PATCH] chore(installer): upgrade base packages, clean .deb cache, add jq MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Each run now upgrades already-installed packages (non-interactive, keep existing conffiles) so installs start from a fully patched base, and runs `apt-get clean` at the end to drop downloaded .deb archives — the repo index under /var/lib/apt/lists is kept, only the dead-weight tarballs go. Also add jq to the initial dependency set. --- iiab-android | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/iiab-android b/iiab-android index f6ff2ae8d..ae4ffb8e0 100644 --- a/iiab-android +++ b/iiab-android @@ -524,7 +524,9 @@ install_iiaboa_dashboard() { #----------------------------- # Update package db + deps #----------------------------- +export DEBIAN_FRONTEND=noninteractive apt-get update +apt-get -y -o Dpkg::Options::=--force-confold -o Dpkg::Options::=--force-confdef upgrade apt-get install -y ca-certificates \ coreutils \ curl \ @@ -690,6 +692,12 @@ install_welcome_zim # Install dashboard install_iiaboa_dashboard +#----------------------------- +# Reclaim disk: drop downloaded .deb archives +#----------------------------- +log "Cleaning apt package cache (.deb archives) to reclaim space..." +apt-get clean + if [ -d "/sdcard/.iiab_state" ]; then touch /sdcard/.iiab_state/flag_iiab_ready 2>/dev/null || true fi