Prevent custom mounting in /live.
authorTails developers <amnesia@boum.org>
Mon, 6 Feb 2012 10:22:05 +0000 (11:22 +0100)
committerDaniel Baumann <daniel@debian.org>
Sun, 1 Apr 2012 20:00:16 +0000 (22:00 +0200)
scripts/live

index 821103a..d9a8972 100755 (executable)
@@ -1636,9 +1636,10 @@ setup_unionfs ()
                                then
                                        dest="${source}"
                                fi
-                               if echo ${dest} | grep -qe "^/\+$"
+                               if echo ${dest} | grep -qe "^/\+$\|^/\+live\(/.*\)\?$"
                                then
-                                       log_warning_msg "Skipping custom mount on /"
+                                       # mounting on / or /live could cause trouble
+                                       log_warning_msg "Skipping unsafe custom mount on ${dest}"
                                        continue
                                fi