Fix/finish modularization
[mapsector.git] / lib / 50_map_crtypt.sh
index 4ec0ec0..927633b 100644 (file)
@@ -8,7 +8,7 @@ describe_crypt()
     echo "    cryptsetup (luks and dmcrypt)"
 }
 
-map_crypt()
+do_crypt()
 {
     # Step 2: Find the crypted volume defined for this partition
 
@@ -18,6 +18,8 @@ map_crypt()
     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
@@ -44,6 +46,8 @@ map_crypt()
     
     device="$cryptdev"
     sector="$cryptsector"
+
+    return 1
 }
 
 register_mapper "crypt"