borg-backup-ui
borg-backup-ui copied to clipboard
Guard initial setup from runtime fallback writes
Fresh installations intentionally keep GLOBAL_DATA_DIR empty until the setup wizard has selected a runtime data directory. During that initial state, Borg Backup UI must not use legacy fallback runtime paths such as /mnt/user/backup-status for status, restore-test, widget, or background runtime writes.
Goal:
- Detect when the runtime data directory is not configured yet.
- Keep setup/login endpoints available.
- Do not start runtime/background write services that could create directories below /mnt.
- Log the initial setup pending state clearly.
- Add tests for the fresh-install reboot path.
User impact: Prevents accidental creation of /mnt/user fallback directories during early boot or before the setup wizard has configured storage.