mirror of
https://github.com/marcone/teslausb.git
synced 2025-04-18 14:59:07 +00:00

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.
11 lines
199 B
Bash
Executable File
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"
|