borg-backup-ui icon indicating copy to clipboard operation
borg-backup-ui copied to clipboard

Guard initial setup from runtime fallback writes

Open borg-codex-bot opened this issue 3 months ago • 0 comments

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.

borg-codex-bot avatar Aug 10 '26 21:08 borg-codex-bot