Fixing persistence backward-compatibility mode (Closes: #681176).
authorTails developers <amnesia@boum.org>
Thu, 12 Jul 2012 23:22:40 +0000 (17:22 -0600)
committerTails developers <amnesia@boum.org>
Fri, 20 Jul 2012 23:03:09 +0000 (01:03 +0200)
scripts/boot/9990-misc-helpers.sh

index cc39fcb..117876f 100755 (executable)
@@ -1304,7 +1304,7 @@ get_custom_mounts ()
                        local source="${dir}"
                        if [ -n "${opt_source}" ]
                        then
-                               if echo ${opt_source} | grep -q -e "^/" -e "^\(.*/\)\?\.\.\?\(/.*\)\?$" && [ "${source}" != "." ]
+                               if echo ${opt_source} | grep -q -e "^/" -e "^\(.*/\)\?\.\.\?\(/.*\)\?$" && [ "${opt_source}" != "." ]
                                then
                                        log_warning_msg "Skipping unsafe custom mount with option source=${opt_source}: must be either \".\" (the media root) or a relative path w.r.t. the media root that contains neither comas, nor the special \".\" and \"..\" path components"
                                        continue