Skip to content

Commit

Permalink
Update overlayrw
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenlua authored Dec 1, 2024
1 parent e07f2a3 commit 6d03242
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/common/overlayrw
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ if [ -e "$2" ];then
mkdir -p "$MODP$2"
[ "$1" == "-rw" ] && mkdir -p "$TMPP$2"
setfattr -n trusted.overlay.opaque -v y $MODP$2 2>/dev/null
chcon "$(ls -nZld "$2" | awk '{print $5}')" "$MODP$2"
chcon "$($TMPP/busybox ls -nZld "$2" | awk '{print $5}')" "$MODP$2"
chmod 755 "$MODP$2"
chown $(ls -nZld "$2" | awk '{print $3":"$4}') "$MODP$2"
chown $($TMPP/busybox ls -nZld "$2" | awk '{print $3":"$4}') "$MODP$2"
[ "$(grep -cm1 "$2" $TMPP/path)" == 1 ] || echo "$2" >> $TMPP/path
fi

Expand Down

0 comments on commit 6d03242

Please sign in to comment.