From 9ab12eda9ed52faf41b3cad8c99e1775433f47e9 Mon Sep 17 00:00:00 2001 From: Tails developers Date: Thu, 9 Feb 2012 12:16:56 +0100 Subject: [PATCH] Ignore empty lines in live.persist. Otherwise they're interpreted as / which isn't good. --- scripts/live | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/live b/scripts/live index d774284..7be2fcc 100755 --- a/scripts/live +++ b/scripts/live @@ -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 -- 2.11.4.GIT