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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user