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 <javelinanddart@bestas.gr>
This commit is contained in:
Paul Keith 2017-05-05 07:59:23 -05:00
parent c2f5b4707d
commit 76aefc9bc3

View File

@ -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