teslausb/run/mountimage
Marco Nelissen 36592adff2 Support car-formatted disk images
Determine the disk image format at run time, to support
mounting images that have been formatted by the car.
Add note about ExFAT not being recommended due to not
supporting TRIM.
2021-10-30 11:04:07 -07:00

11 lines
199 B
Bash
Executable File

#!/bin/bash -eu
source="$1"
mountpoint="$2"
shift 3
opts="$*"
read -r fstype moreopts <<<"$(/root/bin/mountoptsforimage "$source")"
mount -t "$fstype" -o "$opts,$moreopts" "$source" "$mountpoint"