Adding command line parameter to remove persistence.
[live-boot-grml.git] / components / 9990-overlay.sh
index 54b75e5..92d0355 100755 (executable)
@@ -299,6 +299,9 @@ setup_unionfs ()
                fi || panic "mount ${UNIONTYPE} on ${unionmountpoint} failed with option ${unionmountopts}"
        done
 
+       # Remove persistence depending on boot parameter
+       Remove_persistence
+
        # Correct the permissions of /:
        chmod 0755 "${rootmnt}"