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:
Luxferre committed 2026-11-05 13:40:53 +02:00
1 parent a9b72700ac
commit 0ab9367e28
31 files changed
+3809 -181

No files matched your search

+14 -3
View File
@@ -11,11 +11,22 @@ import usb.core
import usb.util
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.join(BASE_DIR, "edl"))
DEFAULT_USER_PASSWORD = os.environ.get("BANANARCHY_USER_PASSWORD", "147147")
# The EDL client library is vendored under vendor/edl so a clean clone can
# flash without any manual download. A local edl/ checkout takes precedence
# for development, and BANANARCHY_EDL_DIR overrides both.
EDL_DIR = os.environ.get("BANANARCHY_EDL_DIR", "")
if not EDL_DIR:
local_edl = os.path.join(BASE_DIR, "edl")
vendor_edl = os.path.join(BASE_DIR, "vendor", "edl")
EDL_DIR = local_edl if os.path.isfile(os.path.join(local_edl, "Library", "usb.py")) else vendor_edl
if not os.path.isfile(os.path.join(EDL_DIR, "Library", "usb.py")):
sys.exit("Error: the EDL client library is missing from " + EDL_DIR)
sys.path.insert(0, EDL_DIR)
from Library.usb import usb_class
from Library.gpt import gpt
from Library.sahara import qualcomm_sahara
from Library.firehose import qualcomm_firehose, xmlparser
@@ -569,7 +580,7 @@ def main():
print(" BANANARCHY EDL FLASHING COMPLETED SUCCESSFULLY")
print("============================================================")
print(" The phone will now boot via lk2nd into Bananarchy Linux (Sxmo).")
print(" Default login: user / 147147 | USB SSH: ssh user@172.16.42.1")
print(" Default login: user / " + DEFAULT_USER_PASSWORD + " | USB SSH: ssh user@172.16.42.1")
print("============================================================")