Make clean-clone OS rebuilds autonomous
A fresh clone can now bootstrap a complete armv7 rootfs, apply the Bananarchy overlay, regenerate boot artifacts, and produce a flashable image without local build artifacts. - Add a shared package list and Docker-based rootfs bootstrap, wired into rebuild-image.sh and chroot-shell.sh. - Add offline rebuild preflight checks and prebuilt-to-overlay artifact synchronization. - Vendor the patched EDL client and provision host flashing dependencies. - Remove the hardcoded credential from the power menu helper. - Refresh documentation and changelog for the autonomous workflow.
This commit is contained in:
1 parent
a9b72700ac
commit
0ab9367e28
31 files changed
+3809
-181
No files matched your search
+15
-106
@@ -6,12 +6,14 @@ set -eu
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
if [ -n "${ROOTFS_DIR:-}" ]; then
|
||||
ROOTFS_HOST="$(realpath "$ROOTFS_DIR")"
|
||||
ROOTFS_PATH="$ROOTFS_DIR"
|
||||
elif [ -d "$SCRIPT_DIR/rootfs-sxmo" ]; then
|
||||
ROOTFS_HOST="$(realpath "$SCRIPT_DIR/rootfs-sxmo")"
|
||||
ROOTFS_PATH="$SCRIPT_DIR/rootfs-sxmo"
|
||||
else
|
||||
ROOTFS_HOST="$(realpath "$SCRIPT_DIR/rootfs")"
|
||||
ROOTFS_PATH="$SCRIPT_DIR/rootfs"
|
||||
fi
|
||||
mkdir -p "$ROOTFS_PATH"
|
||||
ROOTFS_HOST="$(realpath "$ROOTFS_PATH")"
|
||||
|
||||
mkdir -p "${IMAGES_DIR:-$SCRIPT_DIR/images}"
|
||||
IMAGES_HOST="$(realpath "${IMAGES_DIR:-$SCRIPT_DIR/images}")"
|
||||
@@ -103,6 +105,15 @@ ensure_prebuilt_artifacts() {
|
||||
|
||||
ensure_prebuilt_artifacts
|
||||
|
||||
# prebuilt/ is the single source of truth for compiled artifacts.
|
||||
"$BANANARCHY_DIR/scripts/sync-prebuilt-overlay.sh"
|
||||
|
||||
# Verify that this clone can rebuild before touching any rootfs data.
|
||||
"$BANANARCHY_DIR/scripts/check-rebuild.sh"
|
||||
|
||||
# Create a complete armv7 rootfs from scratch when it is missing or stale.
|
||||
"$BANANARCHY_DIR/scripts/bootstrap-rootfs.sh" "$ROOTFS_HOST" "$TARGET_DEVICE"
|
||||
|
||||
docker run --rm -v "$ROOTFS_HOST:/rootfs" alpine:3.24 chown -R "$(id -u):$(id -g)" /rootfs
|
||||
|
||||
if [ -x "$BANANARCHY_DIR/scripts/apply-bananarchy-overlay.sh" ]; then
|
||||
@@ -161,109 +172,7 @@ EOF
|
||||
mkdir -p "$ROOTFS/etc/apk/keys"
|
||||
cp /bananarchy/keys/* "$ROOTFS/etc/apk/keys/" 2>/dev/null || true
|
||||
|
||||
REQUIRED_PKGS="
|
||||
adwaita-icon-theme
|
||||
alpine-base
|
||||
alsa-utils
|
||||
bash
|
||||
bc
|
||||
brightnessctl
|
||||
clickclack
|
||||
coreutils
|
||||
doas
|
||||
ed
|
||||
evtest
|
||||
fcitx5
|
||||
fcitx5-gtk3
|
||||
font-droid
|
||||
font-droid-nonlatin
|
||||
font-fira-code
|
||||
font-noto
|
||||
font-noto-emoji
|
||||
font-twemoji
|
||||
frotz
|
||||
g++
|
||||
gcc
|
||||
git
|
||||
gst-libav
|
||||
gst-plugins-bad
|
||||
gst-plugins-good
|
||||
harfbuzz
|
||||
htop
|
||||
i2c-tools
|
||||
imv
|
||||
ip6tables
|
||||
iproute2
|
||||
iptables
|
||||
janet
|
||||
janet-dev
|
||||
jpm
|
||||
lang
|
||||
less
|
||||
libwpe
|
||||
libwpebackend-fdo
|
||||
libxcvt
|
||||
libxft
|
||||
libxinerama
|
||||
libxtst
|
||||
linux-postmarketos-qcom-msm8916
|
||||
lua5.4
|
||||
lua5.4-dev
|
||||
lua5.5
|
||||
lua5.5-dev
|
||||
make
|
||||
mandoc
|
||||
mesa-demos
|
||||
mesa-utils
|
||||
modemmanager
|
||||
musl-dev
|
||||
nano
|
||||
openssh
|
||||
openssh-server-pam
|
||||
openvpn
|
||||
perl
|
||||
perl-io-socket-ssl
|
||||
postmarketos-artwork-wallpapers
|
||||
postmarketos-base
|
||||
postmarketos-base-nofde
|
||||
postmarketos-base-ui
|
||||
postmarketos-base-ui-audio-backend-pipewire
|
||||
postmarketos-base-ui-wifi-wpa_supplicant
|
||||
postmarketos-ui-sxmo-de-dwm
|
||||
postmarketos-ui-sxmo-de-dwm-openrc
|
||||
qmi-utils
|
||||
rlwrap
|
||||
scrot
|
||||
setxkbmap
|
||||
sfeed
|
||||
soc-qcom-msm8909
|
||||
soc-qcom-msm8909-modem
|
||||
soc-qcom-msm8909-modem-openrc
|
||||
soc-qcom-msm8916
|
||||
soc-qcom-msm8916-rproc
|
||||
soc-qcom-msm8916-rproc-openrc
|
||||
soc-qcom-msm8916-ucm
|
||||
sqlite
|
||||
sqlite-tcl
|
||||
sudo-rs
|
||||
tcl
|
||||
tcl-lib
|
||||
tcl-tls
|
||||
tor
|
||||
ttyescape
|
||||
v4l-utils
|
||||
w3m
|
||||
webkit2gtk-4.1
|
||||
wireguard-tools
|
||||
wireguard-tools-wg
|
||||
wireguard-tools-wg-quick
|
||||
xf86-input-libinput
|
||||
xf86-video-fbdev
|
||||
yabasic
|
||||
yabasic-doc
|
||||
zram-init
|
||||
zram-init-openrc
|
||||
"
|
||||
REQUIRED_PKGS="$(grep -v "^[[:space:]]*#" /bananarchy/scripts/rootfs-packages.txt | grep -v "^[[:space:]]*$" | tr "\n" " ")"
|
||||
|
||||
MISSING_PKGS=""
|
||||
INSTALLED_DB="$ROOTFS/lib/apk/db/installed"
|
||||
|
||||
Reference in new issue
Block a user