You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fails if there are both read-only and read-write mounts and findmnt returns a ro mountpoint
In order to fix it I think it would be sufficient to add --options rw MNT=$(findmnt --types btrfs --first-only --options rw --noheadings --output "TARGET" --source "$DEVICE")
Example output from Fedora IoT on BTRFS filesystem with /sysroot mounted as ro
I encountered one issue while using the option to automatically process all mountpoints
BTRFS_SCRUB_MOUNTPOINTS="auto"
The script returns a single mountpoint for each filesystem
MNT=$(findmnt --types btrfs --first-only --noheadings --output "TARGET" --source "$DEVICE")
https://github.com/kdave/btrfsmaintenance/blob/b1e70f6c99797def13c1d302a603e18cce701a8d/btrfsmaintenance-functions#L25C10-L25C84
This fails if there are both read-only and read-write mounts and findmnt returns a ro mountpoint
In order to fix it I think it would be sufficient to add --options rw
MNT=$(findmnt --types btrfs --first-only --options rw --noheadings --output "TARGET" --source "$DEVICE")
Example output from Fedora IoT on BTRFS filesystem with /sysroot mounted as ro
The text was updated successfully, but these errors were encountered: