Browse Source

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 <[email protected]>
Paul Keith 8 years ago
parent
commit
76aefc9bc3
1 changed files with 2 additions and 8 deletions
  1. 2 8
      build/meta/com/google/android/update-binary

+ 2 - 8
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