Try another way to remount /system r/w

This commit is contained in:
Pierre-Hugues Husson 2020-04-01 14:12:36 +02:00
parent 9fe8e103e9
commit 72992a82fd
1 changed files with 3 additions and 1 deletions

View File

@ -152,7 +152,9 @@ changeKeylayout() {
if mount -o remount,rw /system; then
resize2fs "$(grep ' /system ' /proc/mounts | cut -d ' ' -f 1)" || true
elif mount -o remount,rw /; then
else
remount system
mount -o remount,rw /
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')"
mknod /dev/tmp-phh b $((0x$major)) $((0x$minor))