Skip to content

Commit

Permalink
Update overlayrw
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenlua authored Jan 17, 2024
1 parent 80ef812 commit d904e29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion module/common/overlayrw
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit d904e29

Please sign in to comment.