summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2012-02-29 16:03:32 +0100
committerDaniel Baumann <daniel@debian.org>2012-04-05 07:47:38 +0200
commitc9942ec95d623173c331a6ff9431b6bb36f5fb0f (patch)
treef8827e1e8ed01c8d7d67bd7deae8e2c6f12e04c5 /scripts
parent5ca613caa8948bb2686b592880f45caaa61e4662 (diff)
downloadlive-boot-c9942ec95d623173c331a6ff9431b6bb36f5fb0f.tar.gz
live-boot-c9942ec95d623173c331a6ff9431b6bb36f5fb0f.zip
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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/live-helpers2
1 files changed, 2 insertions, 0 deletions
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