Commit graph fp6-img/install.sh
Author SHA1 Message Date
f457bac198 install.sh: capture fastboot output before testing it - grep -q SIGPIPE wedge
The lock-check piped 'fastboot oem device-info' into grep -q, which exits
on first match; fastboot dies of SIGPIPE mid-transaction and leaves the
bootloader's fastboot state machine wedged, hanging the NEXT command
(the mysterious erase-dtbo stall). Capture-then-test everywhere.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-09 02:35:00 +02:00
7ada46a1a5 install.sh: timeout+retry on all fastboot commands; lock-check preflight; promptless ssh
Every fastboot step gets a deadline and one retry (this bootloader hangs
per-command occasionally, and desktop ModemManager probes freshly
enumerated fastboot devices, blocking the USB claim). Refuse to run on a
locked bootloader before touching anything. SSH_ASKPASS_REQUIRE=force
self-answers the login password on OpenSSH >= 8.4.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-09 02:31:18 +02:00
8f688024b3 install.sh: self-answering ssh login via SSH_ASKPASS_REQUIRE=force
OpenSSH deliberately reads passwords from the terminal only; since 8.4
an askpass helper overrides that even with a tty. The fresh image's
public default now answers both ssh and sudo - the installer runs with
zero typed credentials on any modern distro (older OpenSSH falls back
to one prompt).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-09 02:24:47 +02:00
3e9fce9d81 install.sh: explain host-side USB network failure with a hands-on fix
When the wait times out the phone has usually booted fine; it is the
PC's side of the gadget link that nobody configured (or a network
manager grabbed it with the wrong profile - bitten by that ourselves).
Spell out the ip-link/ip-addr recovery and that rerunning is safe.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-09 01:59:10 +02:00
40ccc12a18 install.sh: self-answering credentials - zero sudo prompts
ssh ControlMaster keeps one authenticated connection (login typed at
most once, or never with sshpass installed); sudo answers itself via a
SUDO_ASKPASS helper carrying the image's public default password (sudo
-S would have eaten the boot image's first bytes from stdin). Helper
lives on tmpfs and evaporates with the install reboot.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-09 01:57:46 +02:00
ccf23abf81 install.sh: one-command modem-preserving installer
erase dtbo + flash userdata + RAM-boot + dd boot_a from Linux + verify
modem NV and report honestly. Shipped in dist/ with every release; README
points at it. The one believed-safe-but-unisolated step (userdata flash)
is self-verified by the script's final check.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-09 01:29:17 +02:00