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
|
[ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user