From c42102324767ecc10b721c63560ae4f348282b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=E1=BA=B9o=20K=C3=A9o?= Date: Thu, 25 Jan 2024 18:58:59 +0700 Subject: [PATCH] Update overlayrw --- module/common/overlayrw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/common/overlayrw b/module/common/overlayrw index 45acd9a..dd4b518 100644 --- a/module/common/overlayrw +++ b/module/common/overlayrw @@ -3,7 +3,7 @@ MODP="/data/overlayfs" TMPP="/data/overlayfs/tmp" if [ "$1" == "-ro" ];then mkdir -p "$MODP$2" -#setfattr -n trusted.overlay.opaque -v y $MODP$2 2>/dev/null +setfattr -n trusted.overlay.opaque -v y $MODP$2 2>/dev/null chcon -Rh "$(ls -nZld "$2" | awk '{print $5}')" "$MODP$2" chmod -R 755 "$MODP$2" chown -Rh $(ls -nZld "$2" | awk '{print $3":"$4}') "$MODP$2" @@ -11,7 +11,7 @@ mount -t overlay kakathic -o "lowerdir=$MODP$2:$2" "$2" && echo "Mount RO: $2 do [ "$(grep -cm1 "$2" /data/overlayfs/tmp/partition)" == 1 ] || echo "$2" >> /data/overlayfs/tmp/partition elif [ -d "$1" ];then mkdir -p "$MODP$1" -#setfattr -n trusted.overlay.opaque -v y $MODP$1 2>/dev/null +setfattr -n trusted.overlay.opaque -v y $MODP$1 2>/dev/null mkdir -p "$TMPP$1" chcon -Rh "$(ls -nZld "$1" | awk '{print $5}')" "$MODP$1" chmod -R 755 "$MODP$1"