From c9942ec95d623173c331a6ff9431b6bb36f5fb0f Mon Sep 17 00:00:00 2001 From: Tails developers Date: Wed, 29 Feb 2012 16:03:32 +0100 Subject: 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. --- scripts/live-helpers | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') 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 -- cgit v1.2.3