Revert "restore support for old persistence media"
authorEvgeni Golov <evgeni@grml.org>
Mon, 24 Aug 2015 17:52:54 +0000 (19:52 +0200)
committerEvgeni Golov <evgeni@grml.org>
Mon, 24 Aug 2015 17:52:54 +0000 (19:52 +0200)
This reverts commit 14f658f90367f29d20e4fed7ad3a228994057e58.

We do not want to support this old stuff anymore.

components/9990-aaa-fixme.sh
components/9990-misc-helpers.sh
components/9990-overlay.sh

index d1181e6..c6b7082 100755 (executable)
@@ -26,8 +26,5 @@ then
        export PATH
 fi
 
-old_root_overlay_label="live-rw"
-old_home_overlay_label="home-rw"
 custom_overlay_label="persistence"
-old_custom_overlay_label="custom-ov"
 persistence_list="persistence.conf"
index 5a4c8b8..3355d60 100755 (executable)
@@ -1646,32 +1646,6 @@ activate_custom_mounts ()
        echo ${used_devices}
 }
 
-fix_backwards_compatibility ()
-{
-       local device dir opt backing include_list
-       device=${1}
-       dir=${2}
-       opt=${3}
-
-       if [ -n "${PERSISTENCE_READONLY}" ]
-       then
-               return
-       fi
-
-       backing="$(mount_persistence_media ${device})"
-       if [ -z "${backing}" ]
-       then
-               return
-       fi
-
-       include_list="${backing}/${persistence_list}"
-       if [ ! -r "${include_list}" ] && [ ! -r "${backing}/${old_persistence_list}" ]
-       then
-               echo "# persistence backwards compatibility:
-${dir} ${opt},source=." > "${include_list}"
-       fi
-}
-
 is_mountpoint ()
 {
        directory="$1"
index 25192c5..58828f6 100755 (executable)
@@ -190,7 +190,7 @@ setup_unionfs ()
 
                if is_in_comma_sep_list overlay ${PERSISTENCE_METHOD}
                then
-                       overlays="${old_root_overlay_label} ${old_home_overlay_label} ${custom_overlay_label} ${old_custom_overlay_label}"
+                       overlays="${custom_overlay_label}"
                fi
 
                local overlay_devices
@@ -202,27 +202,10 @@ setup_unionfs ()
                                media="$(echo ${media} | tr ":" " ")"
 
                                case ${media} in
-                                       ${old_root_overlay_label}=*)
-                                               device="${media#*=}"
-                                               fix_backwards_compatibility ${device} / union
-                                               overlay_devices="${overlay_devices} ${device}"
-                                               ;;
-
-                                       ${old_home_overlay_label}=*)
-                                               device="${media#*=}"
-                                               fix_backwards_compatibility ${device} /home bind
-                                               overlay_devices="${overlay_devices} ${device}"
-                                               ;;
-
                                        ${custom_overlay_label}=*)
                                                device="${media#*=}"
                                                overlay_devices="${overlay_devices} ${device}"
                                                ;;
-
-                                       ${old_custom_overlay_label}=*)
-                                               device="${media#*=}"
-                                               overlay_devices="${overlay_devices} ${device}"
-                                               ;;
                                 esac
                        done
                fi