From d904e29a4df63b93eca1ab565e5afe54cd3b21b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=E1=BA=B9o=20K=C3=A9o?= Date: Wed, 17 Jan 2024 10:30:55 +0700 Subject: [PATCH] Update overlayrw --- module/common/overlayrw | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/common/overlayrw b/module/common/overlayrw index e6dd6f5..0302633 100644 --- a/module/common/overlayrw +++ b/module/common/overlayrw @@ -1,8 +1,10 @@ +MODPATH="/data/adb/modules/overlayfs" +MODTMP="/dev" if [ -d $1 ] && [ ! -L $1 ];then mkdir -p $MODPATH$1 #setfattr -n trusted.overlay.opaque -v y $MODPATH$1 mkdir -p $MODPATH/zption/tmp$1 -mount -t overlay kakathic -o upperdir=$MODPATH$1,lowerdir=$1,workdir=/$MODPATH/zption/tmp$1 $1 && echo "Mount: $1 done" || echo "Mount: $1 failure !" +mount -t overlay kakathic -o upperdir=$MODPATH$1,lowerdir=$1,workdir=/$MODTMP/overlayrw$1 $1 && echo "Mount: $1 done" || echo "Mount: $1 failure !" elif [ -z $1 ] || [ "$1" == "--help" ];then echo "Use: overlayrw [path_folder_rw]" echo "Instruct: overlayrw /system/app"