From 3a682eb57ebf462f0bce391dae195d1c32d725db Mon Sep 17 00:00:00 2001 From: Tails developers Date: Thu, 1 Nov 2012 20:31:23 +0100 Subject: [PATCH] Adding support for the previous persistence configuration file name, for compatibility with systems that have been deployed with live-persistence.conf already. --- scripts/boot/9990-aaa-fixme.sh | 1 + scripts/boot/9990-misc-helpers.sh | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/boot/9990-aaa-fixme.sh b/scripts/boot/9990-aaa-fixme.sh index b213bba..a1eb14a 100755 --- a/scripts/boot/9990-aaa-fixme.sh +++ b/scripts/boot/9990-aaa-fixme.sh @@ -44,6 +44,7 @@ old_root_overlay_label="live-rw" old_home_overlay_label="home-rw" custom_overlay_label="persistence" persistence_list="persistence.conf" +old_persistence_list="live-persistence.conf" if [ ! -f /live.vars ] then diff --git a/scripts/boot/9990-misc-helpers.sh b/scripts/boot/9990-misc-helpers.sh index 06fef87..ace130b 100755 --- a/scripts/boot/9990-misc-helpers.sh +++ b/scripts/boot/9990-misc-helpers.sh @@ -1258,9 +1258,14 @@ get_custom_mounts () continue fi - local include_list="${backing}/${persistence_list}" - if [ ! -r "${include_list}" ] + local include_list + if [ -r "${backing}/${persistence_list}" ] then + include_list="${backing}/${persistence_list}" + elif [ -r "${backing}/${old_persistence_list}" ] + then + include_list="${backing}/${old_persistence_list}" + else continue fi -- 2.1.4