Implemented a persistence exclude list.
[live-boot-grml.git] / scripts / live
index 5be6fe2..0f4ef0d 100755 (executable)
@@ -1151,9 +1151,16 @@ setup_unionfs ()
                        # snapshots to be sure to really store some e.g key config files,
                        # but not on the same media
                        blacklistdev="${cowprobe}"
+                       PERSISTENCE_IS_ON="Yes"
+                       export PERSISTENCE_IS_ON
                fi
                # homecow just mount something on /home, this should be generalized some way
                homecow=$(find_cow_device "${home_persistence}" "${blacklistdev}")
+               if [ -b "${homecow}" ]
+               then
+                       PERSISTENCE_IS_ON="Yes"
+                       export PERSISTENCE_IS_ON
+               fi
                root_snapdata=$(find_snap "${root_snapshot_label}" "${blacklistdev}")
                # This second type should be removed when snapshot will get smarter,
                # hence when "/etc/live-snapshot*list" will be supported also by