Skip to content

Commit

Permalink
Update overlayrw
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenlua authored Jan 21, 2024
1 parent 54418de commit b2b6383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/common/overlayrw
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mkdir -p "$TMPP$1"
chcon -Rh "$(ls -nZld "$1" | awk '{print $5}')" "$MODP$1"
chmod -R 755 "$MODP$1"
chown -Rh $(ls -nZld "$1" | awk '{print $3":"$4}') "$MODP$1"
mount -t overlay kakathic -o "upperdir=$MODP$1,lowerdir=$1,workdir=$TMPP$1" "$1" && echo "Mount: $1 done" || echo "Mount: $1 failure !"
mount -t overlay kakathic -o "upperdir=$MODP$1,lowerdir=$1,workdir=$TMPP$1" "$1" && echo "Mount: $1 done"
[ "$(grep -cm1 "$1" /data/overlayfs/tmp/partition)" == 1 ] || echo "$1" >> /data/overlayfs/tmp/partition
elif [ -z "$1" ] || [ "$1" == "--help" ];then
echo "Use: overlayrw [path_folder_rw]"
Expand Down

0 comments on commit b2b6383

Please sign in to comment.