TUISTREAM/internal/drives
28allday 3786d6bae1 Fix media drive not mounting after reboot (stale fstab entries)
Every fstab writer deduped on the exact line, so a stale entry for the
same mount point (e.g. the UUID of a pool that was since recreated)
survived forever. systemd-fstab-generator only creates one mount unit
per mount point and the FIRST line wins — if that line is stale, the
pool never mounts at boot, shows up as detached, and the user has to
re-import it every reboot (manual `mount -a` walks fstab sequentially,
so the import itself appeared to work).

All four writers (add-drive, create-pool, import-pool, jellyfin bind
mounts) now remove any existing entry for the target mount point
before appending the fresh line — idempotent and self-healing.

Also add a --version flag, stamped at build time via
-ldflags "-X main.version=...".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-03 22:05:37 +01:00
..
detect.go Initial commit: TUISTREAM — headless Jellyfin TUI for Omarchy/Arch 2026-05-31 16:47:18 +01:00
format.go Initial commit: TUISTREAM — headless Jellyfin TUI for Omarchy/Arch 2026-05-31 16:47:18 +01:00
mount.go Fix media drive not mounting after reboot (stale fstab entries) 2026-06-03 22:05:37 +01:00
pool.go Fix media drive not mounting after reboot (stale fstab entries) 2026-06-03 22:05:37 +01:00
pool_import.go Fix media drive not mounting after reboot (stale fstab entries) 2026-06-03 22:05:37 +01:00
prereqs.go Initial commit: TUISTREAM — headless Jellyfin TUI for Omarchy/Arch 2026-05-31 16:47:18 +01:00