Skip to content
This repository was archived by the owner on Apr 12, 2026. It is now read-only.

Commit 329133f

Browse files
authored
Update overlayrw
1 parent 0e040b0 commit 329133f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

module/common/overlayrw

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/system/bin/sh
22
MODP="/data/overlayfs"
3+
TMPP="/data/overlayfs/tmp"
34
if [ -d $1 ];then
45
mkdir -p $MODP$1
56
setfattr -n trusted.overlay.opaque -v y $MODP$1 2>/dev/null
6-
mkdir -p $MODP/zoption$1
7+
mkdir -p $TMPP$1
78
chcon -Rh "$(ls -nZld "$1" | awk '{print $5}')" "$MODP$1"
89
chmod -R 755 "$MODP$1"
910
chown -Rh $(ls -nZld "$1" | awk '{print $3":"$4}') "$MODP$1"
10-
mount -t overlay kakathic -o upperdir=$MODP$1,lowerdir=$1,workdir=$MODP/zoption$1 $1 && echo "Mount: $1 done" || echo "Mount: $1 failure !"
11+
mount -t overlay kakathic -o upperdir=$MODP$1,lowerdir=$1,workdir=$TMPP$1 $1 && echo "Mount: $1 done" || echo "Mount: $1 failure !"
1112
elif [ -z $1 ] || [ "$1" == "--help" ];then
1213
echo "Use: overlayrw [path_folder_rw]"
1314
echo "Instruct: overlayrw /system/app"

0 commit comments

Comments
 (0)