This commit is contained in:
Victor Bo 2022-06-03 16:46:09 +03:00 committed by GitHub
commit 477bea4bd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -21,6 +21,11 @@ do
[ -d $MOUNTPOINT ] && mountpoint -q $MOUNTPOINT && break
done
#experimental
blockdev --setrw /dev/block/mapper/system
blockdev --setrw /dev/block/by-name/system_a
blockdev --setrw /dev/block/by-name/system_b
mount -o remount,rw $MOUNTPOINT
remount

View File

@ -274,6 +274,11 @@ if [ "$(getprop ro.product.vendor.manufacturer)" = motorola ] && getprop ro.vend
setprop persist.sys.overlay.devinputjack true
fi
#experimental
blockdev --setrw /dev/block/mapper/system
blockdev --setrw /dev/block/by-name/system_a
blockdev --setrw /dev/block/by-name/system_b
if mount -o remount,rw /system; then
resize2fs "$(grep ' /system ' /proc/mounts | cut -d ' ' -f 1)" || true
else