[SCM] live-boot branch, tmp-persistent-custom, updated. debian/3.0_a25-1-39-g58c4370

Tails developers amnesia at boum.org
Fri Mar 2 14:27:34 UTC 2012


The following commit has been merged in the tmp-persistent-custom branch:
commit 33f557451c58cbb99541d390c974b1a2df02ba5d
Author: Tails developers <amnesia at boum.org>
Date:   Wed Feb 29 16:03:32 2012 +0100

    Copy ownership/perms from source to rw-branch in read-only mode.
    
    The union mountpoint inherits ownership/permissions from the rw-branch,
    which in this case is a directory created by root, and not the source,
    which has the correct ownership/perms.

diff --git a/scripts/live-helpers b/scripts/live-helpers
index 243256a..797cae1 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -1458,6 +1458,8 @@ do_custom_mounts ()
 				cow_dir="/live/cow/${dest}"
 			fi
 			mkdir -p ${cow_dir}
+			chown --reference "${source}" "${cow_dir}"
+			chmod --reference "${source}" "${cow_dir}"
 			do_union ${dest} ${cow_dir} ${source} ${rofs_dest_backing}
 		fi
 

-- 
live-boot



More information about the debian-live-changes mailing list