From 72992a82fd6fca48cf58ae93d4336859062350cd Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Wed, 1 Apr 2020 14:12:36 +0200 Subject: [PATCH] Try another way to remount /system r/w --- rw-system.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rw-system.sh b/rw-system.sh index ada6a02..2404970 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -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))