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 6e70379 commit d133d11
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 @@ 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"
mount -t overlay kakathic -o "lowerdir=$MODP$2:$2" "$2" && checkk=1 || checkk=0
[ "$checkk" == 0 ] && ( mount -t overlay kakathic -o "lowerdir=$MODP$2:$2" "$2" ) || echo "Mount RO: $1 done"
[ "$checkk" == 0 ] && ( mount -t overlay kakathic -o "lowerdir=$MODP$2:$2" "$2" ) || echo "Mount RO: $2 done"
[ "$(grep -cm1 "$2" /data/overlayfs/tmp/partition)" == 1 ] || echo "$2" >> /data/overlayfs/tmp/partition
elif [ -d "$1" ];then
mkdir -p "$MODP$1"
Expand Down

0 comments on commit d133d11

Please sign in to comment.