From 76aefc9bc3adfb806d5f8803138ab6babd71ce91 Mon Sep 17 00:00:00 2001 From: Paul Keith Date: Fri, 5 May 2017 07:59:23 -0500 Subject: [PATCH] update-binary: Simplify mounting of /system * This workaround for recovery.fstab was only necessary for CM recovery, however the recovery will be fixed properly soon, so there is no need for this workaround Change-Id: Ib7db0997d1059e9829d9ca4b4a8c208d43bc46b6 Signed-off-by: Paul Keith --- build/meta/com/google/android/update-binary | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/build/meta/com/google/android/update-binary b/build/meta/com/google/android/update-binary index 1a72b3a..5e76f04 100644 --- a/build/meta/com/google/android/update-binary +++ b/build/meta/com/google/android/update-binary @@ -34,14 +34,8 @@ ui_print "Mounting /system" if mount /system; then ui_print "/system mounted" else - # Try to get the block from /etc/recovery.fstab - block=`cat /etc/recovery.fstab | cut -d '#' -f 1 | grep /system | grep -o '/dev/[^ ]*' | head -1` - if [ -n "$block" ] && mount $block /system; then - ui_print "Could not mount /system! Aborting" - exit 1 - else - ui_print "/system mounted" - fi + ui_print "Could not mount /system! Aborting" + exit 1 fi if [ -f /system/bin/toybox ]; then