mirror of
https://git.yoctoproject.org/poky
synced 2026-11-14 02:27:10 +00:00
files: respect overlayfs owner from lower layer
Permission model of overlayfs uses permissions/ownership from the upper layer after mounting. Fix up UID/GID of the upper layer, when lower layer already uses something custom. (From OE-Core rev: b19b734ec3c031ee594229e728ee077cd58b34a9) Signed-off-by: Vyacheslav Yurkov <v.yurkov@precitec.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
1 parent
5fc131c5a9
commit
366e7e620b
1 file changed
+3
@@ -6,3 +6,6 @@ lowerdir=$1
|
||||
datamountpoint=$2
|
||||
mkdir -p ${datamountpoint}/upper${lowerdir}
|
||||
mkdir -p ${datamountpoint}/workdir${lowerdir}
|
||||
if [ -d "$lowerdir" ]; then
|
||||
chown $(stat -c "%U:%G" ${lowerdir}) ${datamountpoint}/upper${lowerdir}
|
||||
fi
|
||||
Reference in new issue
Block a user