mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-22 16:06:19 -05:00
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:
parent
559bfebc56
commit
3acb7439a4
8 changed files with 119 additions and 10 deletions
|
|
@ -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": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue