Looking for persistency partitions on luks devices only if we boot with persistent...
[live-boot-grml.git] / scripts / live-helpers
index 978aa06..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