A library on the internal disk gets a database

"Run repair without external drive" kept the library on the internal disk,
but the API's unmounted-media guard refuses to create or use a database
beneath /media/wrolpi when it is not a mount.  After onboarding without a
drive the API restarted forever with no database, and downloads were
blocked as "media not mounted".

The Controller now records the choice as drives.library_on_internal_disk in
controller.yaml -- the only source of it.  The database guard and the
media_mounted check both read that marker, so require_media_mounted keeps
its meaning and needs no change.  Onboarding a drive later clears the
marker, so it is never copied onto the drive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Roland 2026-10-14 16:09:44 -06:00
parent 559bfebc56
commit 3acb7439a4
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
8 changed files with 119 additions and 10 deletions

View file

@ -14,6 +14,9 @@ DEFAULT_CONFIG = {
"supported_filesystems": ["ext4", "btrfs", "vfat", "exfat"],
"auto_mount": True,
"mounts": [], # Populated from controller.yaml after drive mount
# True when the user chose "Run repair without external drive"; the
# API then accepts an unmounted /media/wrolpi as the library.
"library_on_internal_disk": False,
},
"managed_services": [