Ignore empty lines in live.persist.
authorTails developers <amnesia@boum.org>
Thu, 9 Feb 2012 11:16:56 +0000 (12:16 +0100)
committerDaniel Baumann <daniel@debian.org>
Sun, 1 Apr 2012 20:07:37 +0000 (22:07 +0200)
Otherwise they're interpreted as / which isn't good.

scripts/live

index d774284..7be2fcc 100755 (executable)
@@ -1603,9 +1603,9 @@ setup_unionfs ()
                        [ "${DEBUG}" = "Yes" ] && cp ${include_list} ${persistent_backing}/${persistence_list}.${device_name}
                        while read source dest options # < ${include_list}
                        do
-                               if echo ${source} | grep -qe "^[[:space:]]*#"
+                               if echo ${source} | grep -qe "^[[:space:]]*\(#.*\)\?$"
                                then
-                                       # skipping commented line
+                                       # skipping empty or commented lines
                                        continue
                                fi