add blockdev calls for RW system
EXPERIMENTAL
This commit is contained in:
parent
438255bb25
commit
57f07cd0ec
@ -12,6 +12,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
|
||||
|
||||
|
@ -266,6 +266,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
|
||||
|
Loading…
Reference in New Issue
Block a user