mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
volatile-binds: Change cp to use -a instead of -p.
This is needed on SELinux systems, so the labels (xattrs) are preserved. (From OE-Core rev: ab7e3caf3e29f2d8db55e2901e0a9b01061afd88) Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
37e5436e1e
commit
af790692f5
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user