try harder to make system rw
This commit is contained in:
parent
71f0000b6a
commit
d815e2bd67
@ -314,11 +314,11 @@ fi
|
|||||||
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
|
||||||
remount system
|
|
||||||
mount -o remount,rw /
|
mount -o remount,rw /
|
||||||
major="$(stat -c '%D' /.|sed -E 's/^([0-9a-f]+)([0-9a-f]{2})$/\1/g')"
|
major="$(stat -c '%D' /.|sed -E 's/^([0-9a-f]+)([0-9a-f]{2})$/\1/g')"
|
||||||
minor="$(stat -c '%D' /.|sed -E 's/^([0-9a-f]+)([0-9a-f]{2})$/\2/g')"
|
minor="$(stat -c '%D' /.|sed -E 's/^([0-9a-f]+)([0-9a-f]{2})$/\2/g')"
|
||||||
mknod /dev/tmp-phh b $((0x$major)) $((0x$minor))
|
mknod /dev/tmp-phh b $((0x$major)) $((0x$minor))
|
||||||
|
blockdev --setrw /dev/tmp-phh
|
||||||
resize2fs /dev/root || true
|
resize2fs /dev/root || true
|
||||||
resize2fs /dev/tmp-phh || true
|
resize2fs /dev/tmp-phh || true
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user