echo " cryptsetup (luks and dmcrypt)"
}
-map_crypt()
+do_crypt()
{
# Step 2: Find the crypted volume defined for this partition
local cryptsector
local type
+ echo "# $device: cryptsetup detected" 1>&2
+
offset="`cryptsetup luksDump $device 2>/dev/null | awk '/^Payload offset/{print $3}'`"
if [ -z "$offset" ]; then
device="$cryptdev"
sector="$cryptsector"
+
+ return 1
}
register_mapper "crypt"