[SCM] live-boot branch, debian, updated. debian/3.0_a25-1-72-gfc7a680
Daniel Baumann
daniel at debian.org
Thu Apr 5 06:21:42 UTC 2012
The following commit has been merged in the debian branch:
commit a9d29ee385fb31d8e5bda0ba649afb54914673c5
Author: Tails developers <amnesia at boum.org>
Date: Thu Mar 22 19:43:55 2012 +0100
Remove cow dir contents that are in the way for custom mounts.
This is mostly relevant if you activate persistence post boot; in that
case you (or live-config) may have modified or added some file, which
makes it appear in the cow dir. If you later activate a persistent
volume which contains that file, the old file will "block" the one
from the persistent volume, which likely isn't what you expect.
diff --git a/scripts/live-helpers b/scripts/live-helpers
index db6d25c..0ab36b9 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -1490,6 +1490,13 @@ activate_custom_mounts ()
else
cow_dir="/live/cow/${dest}"
fi
+ if [ -e "${cow_dir}" ]
+ then
+ # If an earlier custom mount has files here
+ # it will "block" the current mount's files
+ # which is undesirable
+ rm -rf "${cow_dir}"
+ fi
mkdir -p ${cow_dir}
chown --reference "${source}" "${cow_dir}"
chmod --reference "${source}" "${cow_dir}"
--
live-boot
More information about the debian-live-changes
mailing list