Debian installs show the Controller drive wizard

wrolpi-bootstrap.sh created controller.yaml on installed systems, which
hid the onboarding wizard.  Installed systems now wait for the wizard,
whose repair.sh finishes setup.

"Run repair without external drive" now writes controller.yaml before
starting repair, so the wizard does not return after repair.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Roland 2026-10-13 15:42:55 -06:00
parent 697a8180c7
commit f3232f30ac
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
6 changed files with 119 additions and 1 deletions

View file

@ -165,6 +165,31 @@ def cancel_probe() -> dict:
return {"success": True}
def onboard_without_drive() -> dict:
"""
Set up WROLPi with the library on the internal disk, then start repair.
controller.yaml marks the primary drive as set up; without it the wizard
would be shown again after repair.
Returns:
dict with success, mounts, and repair_started
"""
config_dir = get_media_directory() / "config"
config_dir.mkdir(parents=True, exist_ok=True)
save_config()
repair_result = start_script("repair")
if not repair_result.get("success"):
logger.warning("Failed to start repair: %s", repair_result.get("error"))
return {
"success": True,
"mounts": [],
"repair_started": bool(repair_result.get("success")),
}
def commit_onboarding(
device_path: str,
fstype: str,