From ff4f310e3a2beb0c25e73b78a1cf924eee73761f Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Tue, 13 Aug 2019 09:16:34 -0300 Subject: [PATCH] Backend: support TWRP devices with /system_root in fstab --- META-INF/com/google/android/update-binary | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index afaebbb..260ea54 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -127,7 +127,7 @@ if [ -f /system/system/build.prop ]; then if [ $? != 0 ]; then $bb umount /system; $bb umount /system 2>/dev/null; - $bb mount -o ro -t auto /dev/block/bootdevice/by-name/system /system_root; + $bb mount -o ro -t auto /system_root || $bb mount -o ro -t auto /dev/block/bootdevice/by-name/system /system_root; fi; $bb mount -o bind /system_root/system /system; fi;