Releasing version 1.157.3-1.
[live-boot-grml.git] / scripts / live-helpers
index 35fb8cf..d5ad29f 100644 (file)
@@ -328,7 +328,7 @@ find_cow_device ()
                        fi
 
                        # Checking for a luks device
-                       if [ -e /sbin/cryptsetup ] && /sbin/cryptsetup isLuks ${devname}
+                       if [ "${PERSISTENT}" = "cryptsetup" ] && [ -e /sbin/cryptsetup ] && /sbin/cryptsetup isLuks ${devname}
                        then
                                while true
                                do
@@ -367,7 +367,7 @@ find_cow_device ()
                        then
                                # do not mount the device to find for image files
                                # just skip this
-                               break
+                               continue
                        fi
 
                        case "$(get_fstype ${devname})" in