3 which cryptsetup >/dev/null 2>&1 && [ -n "`dmcryptmap $device`" ]
8 echo " cryptsetup (luks and dmcrypt)"
13 # Step 2: Find the crypted volume defined for this partition
21 offset="`cryptsetup luksDump $device 2>/dev/null | awk '/^Payload offset/{print $3}'`"
23 if [ -z "$offset" ]; then
31 cryptdev="`dmcryptmap $device`"
33 if [ -z "$cryptdev" ]; then
34 echo "! Failed to find decrypted mapper device for $device"
38 cryptsector="`dc -e "$sector $offset - p"`" #`"
41 echo "device $cryptdev crypt"
43 echo "sector $cryptsector"
49 register_mapper "crypt"