summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris PeBenito <Christopher.PeBenito@microsoft.com>2019-06-17 20:05:22 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-18 15:55:59 +0100
commitab7e3caf3e29f2d8db55e2901e0a9b01061afd88 (patch)
tree0662db60611ddb2148e3d1042cd5f62ac76c3199
parent96f1225d47985d94d9ed91eb5e7affdd70671c79 (diff)
downloadopenembedded-core-contrib-ab7e3caf3e29f2d8db55e2901e0a9b01061afd88.tar.gz
volatile-binds: Change cp to use -a instead of -p.
This is needed on SELinux systems, so the labels (xattrs) are preserved. Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xmeta/recipes-core/volatile-binds/files/mount-copybind4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/volatile-binds/files/mount-copybind b/meta/recipes-core/volatile-binds/files/mount-copybind
index fddf520053..e32e675308 100755
--- a/meta/recipes-core/volatile-binds/files/mount-copybind
+++ b/meta/recipes-core/volatile-binds/files/mount-copybind
@@ -42,14 +42,14 @@ if [ -d "$mountpoint" ]; then
if ! mount -t overlay overlay -olowerdir="$mountpoint",upperdir="$spec",workdir="$overlay_workdir" "$mountpoint" > /dev/null 2>&1; then
if [ "$specdir_existed" != "yes" ]; then
- cp -pPR "$mountpoint"/. "$spec/"
+ cp -aPR "$mountpoint"/. "$spec/"
fi
mount -o "bind$options" "$spec" "$mountpoint"
fi
elif [ -f "$mountpoint" ]; then
if [ ! -f "$spec" ]; then
- cp -pP "$mountpoint" "$spec"
+ cp -aP "$mountpoint" "$spec"
fi
mount -o "bind$options" "$spec" "$mountpoint"