[SCM] live-boot branch, debian, updated. debian/3.0_a25-1-72-gfc7a680

Daniel Baumann daniel at debian.org
Thu Apr 5 06:21:41 UTC 2012


The following commit has been merged in the debian branch:
commit c9942ec95d623173c331a6ff9431b6bb36f5fb0f
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