udisks2: mount/unmount without sudo, auto-mount before sync

- m key toggles mount/unmount of the selected device via udisksctl
  (resolves the block device from mount point or lsblk label)
- rsync-style device sync auto-mounts the target first
- mlove finalize unmounts via udisksctl, falling back to sudo -n umount
- keybar/help/README updated
This commit is contained in:
Sebastian
2026-08-22 10:12:13 +02:00
parent d1cf5af7fa
commit 4568080453
7 changed files with 139 additions and 10 deletions
+8
View File
@@ -39,6 +39,7 @@ cargo build --release
| `↑`/`↓` `j`/`k` | move selection |
| `s` / `Enter`| sync selected device |
| `a` | abort running sync |
| `m` | mount / unmount device (udisks2, no sudo) |
| `Tab` / `1-3`| switch tab |
| `r` | refresh device mounts |
| `f` | toggle log follow |
@@ -83,6 +84,13 @@ Firmware types: `apple` (podkit command), `rockbox`, `android`, `sony`
`sudo -n` to keep FAT directory order stable. If passwordless sudo is not
available the step is reported as a warning and the commands are printed.
## Mounting
Devices are mounted/unmounted without sudo via **udisks2**:
`m` in the TUI mounts/unmounts the selected device, and a sync automatically
mounts the target first (resolved by mount-point label via `lsblk`). Only the
mlove `fatsort` step needs root (raw block device).
## Development
```bash