add blockdev calls for RW system

EXPERIMENTAL
This commit is contained in:
Victor Bo 2021-05-28 14:46:31 -04:00
parent 438255bb25
commit 57f07cd0ec
2 changed files with 10 additions and 0 deletions

View File

@ -12,6 +12,11 @@ do
[ -d $MOUNTPOINT ] && mountpoint -q $MOUNTPOINT && break [ -d $MOUNTPOINT ] && mountpoint -q $MOUNTPOINT && break
done 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 mount -o remount,rw $MOUNTPOINT
remount remount

View File

@ -266,6 +266,11 @@ if [ "$(getprop ro.product.vendor.manufacturer)" = motorola ] && getprop ro.vend
setprop persist.sys.overlay.devinputjack true setprop persist.sys.overlay.devinputjack true
fi 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 if mount -o remount,rw /system; then
resize2fs "$(grep ' /system ' /proc/mounts | cut -d ' ' -f 1)" || true resize2fs "$(grep ' /system ' /proc/mounts | cut -d ' ' -f 1)" || true
else else