Remove the correct file.
[live-boot-grml.git] / scripts / live
index d774284..abdc87c 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
 
@@ -1763,7 +1763,7 @@ setup_unionfs ()
                        PERSISTENCE_IS_ON="1"
                        export PERSISTENCE_IS_ON
                done < ${custom_mounts}
-               rm -f ${bindings}
+               rm -f ${custom_mounts}
 
                # Look for other snapshots to copy in
                try_snap "${root_snapdata}" "${rootmnt}" "ROOT"