[ -b "$device" ] \
|| infolog "block device $device for $media not found" \
|| return $?
-
infolog "media $media with device $device found"
-
local key=$(cat "config.yaml" \
| yq --raw-output ".media.\"$media\".key")
[ "$key" != "null" ] \
[ "$volume" != "null" ] \
|| errlog "config.yaml volume for $media missing" \
|| return $?
- infolog "volume mount $volume"
+ infolog "volume open $volume"
cryptsetup open --key-file "$key" \
"$device" \
"$volume" \