mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01: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:
committed by
Richard Purdie
parent
5fc131c5a9
commit
366e7e620b
@@ -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