mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 15:06:19 -05:00
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:
parent
697a8180c7
commit
f3232f30ac
6 changed files with 119 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue