Slim the armv7 rootfs: drop Rust and Wayland packages, dead code, and build residue
- Replace Rust sudo-rs with C sudo (sudo-virt provider at priority 100) and add a two-phase pruner so apk atomically swaps the conflicting provider. - Remove Wayland-purpose libwpebackend-fdo from the runtime set and add imv-x11 for the X11-only image viewer path. - Drop unused mesa-demos, postmarketos-artwork-wallpapers, ttyescape/hkdm, clickclack/sdl3, and font-twemoji; keep sfeed, w3m, htop, non-Latin fonts, and the documented SDK toolchain to avoid functional regressions. - Strip apk index caches, apk logs, and unused gettext locales before mke2fs, with a hard guard that fails the build if any residue survives. - Harden check-rebuild.sh with critical/forbidden package and guard checks. - Delete the unreferenced Sway-era configurator and patch; sync the docs.
This commit is contained in:
1 parent
0ab9367e28
commit
5d10b801ff
12 files changed
+187
-1024
No files matched your search
@@ -37,6 +37,9 @@ apk add --no-cache python3 kmod openssl >/dev/null
|
||||
|
||||
echo "[3/8] Installing the Bananarchy armv7 package set..."
|
||||
PKGS="$(grep -v '^[[:space:]]*#' "$PKGS_FILE" | grep -v '^[[:space:]]*$' | tr '\n' ' ')"
|
||||
# Retired world entries must go first: apk cannot install C sudo while the
|
||||
# Rust sudo-rs still owns cmd:sudo in world.
|
||||
"$REPO/scripts/prune-rootfs-packages.sh" "$ROOTFS" world
|
||||
if [ ! -f "$ROOTFS/lib/apk/db/installed" ]; then
|
||||
# shellcheck disable=SC2086
|
||||
apk --root "$ROOTFS" --arch armv7 add --initdb --no-scripts $PKGS >/dev/null
|
||||
@@ -48,6 +51,8 @@ fi
|
||||
ln -sf lua5.5 "$ROOTFS/usr/bin/lua"
|
||||
ln -sf luac5.5 "$ROOTFS/usr/bin/luac"
|
||||
|
||||
"$REPO/scripts/prune-rootfs-packages.sh" "$ROOTFS" purge
|
||||
|
||||
echo "[4/8] Creating system accounts and default credentials..."
|
||||
PW_HASH="$(openssl passwd -6 -salt bananarchy "$PASSWORD")"
|
||||
python3 - "$ROOTFS" "$PW_HASH" <<'PYEOF'
|
||||
|
||||
Reference in new issue
Block a user