From 98834dd7e8153347eddf35d76804c6e21ddbaf4a Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Wed, 18 Feb 2026 21:12:02 +0100 Subject: [PATCH] v0.15.0: Attach existing drive wizard (bind mount, no format) New Settings wizard to attach drives with existing filesystems without formatting. Mounts partition at staging path, lets user browse and pick a subfolder, then bind-mounts it at /mnt/ with fstab entries. Co-Authored-By: Claude Opus 4.6 --- CHANGELOG.md | 12 + controller/internal/storage/attach.go | 22 + controller/internal/storage/attach_linux.go | 408 +++++++++++++ controller/internal/storage/attach_other.go | 30 + controller/internal/web/server.go | 5 + controller/internal/web/storage_handlers.go | 267 +++++++++ .../internal/web/templates/settings.html | 1 + .../web/templates/storage_attach.html | 566 ++++++++++++++++++ 8 files changed, 1311 insertions(+) create mode 100644 controller/internal/storage/attach.go create mode 100644 controller/internal/storage/attach_linux.go create mode 100644 controller/internal/storage/attach_other.go create mode 100644 controller/internal/web/templates/storage_attach.html diff --git a/CHANGELOG.md b/CHANGELOG.md index 21aa035..33e1642 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ ## Changelog +### What was just completed (2026-02-18 session 50) +- **v0.15.0 — Attach Existing Drive (bind mount wizard):** + + New feature: Settings → "Meglévő meghajtó csatolása" wizard. Allows attaching a drive that already has a filesystem (ext4, etc.) without formatting. Solves the real-world scenario where a customer's drive contains existing data that must be preserved. + + **How it works:** The partition is mounted read-only at a hidden staging path (`/mnt/.felhom-raw/