summaryrefslogtreecommitdiffstats
path: root/envsetup.sh
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-07-27 13:51:56 +0100
committerAdnan Begovic <adnan@cyngn.com>2015-10-06 16:12:22 -0700
commit9e4c4a783b62108956269bc2291e35e4d64c054a (patch)
treec4be04daaba434164f9228040c2424b89fff200b /envsetup.sh
parentb89b324fb27a2ca977064ddf0c71f66b2773311b (diff)
downloadbuild-9e4c4a783b62108956269bc2291e35e4d64c054a.zip
build-9e4c4a783b62108956269bc2291e35e4d64c054a.tar.gz
build-9e4c4a783b62108956269bc2291e35e4d64c054a.tar.bz2
eat: Support v2 fstabs
Change-Id: I5220d7e9232174e2acbdc2d6c931827af959f212
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/envsetup.sh b/envsetup.sh
index 29f4360..4a47617 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -1617,8 +1617,14 @@ function installboot()
PARTITION=`grep "^\/boot" $OUT/recovery/root/etc/recovery.fstab | awk {'print $3'}`
if [ -z "$PARTITION" ];
then
- echo "Unable to determine boot partition."
- return 1
+ # Try for RECOVERY_FSTAB_VERSION = 2
+ PARTITION=`grep "[[:space:]]\/boot[[:space:]]" $OUT/recovery/root/etc/recovery.fstab | awk {'print $1'}`
+ PARTITION_TYPE=`grep "[[:space:]]\/boot[[:space:]]" $OUT/recovery/root/etc/recovery.fstab | awk {'print $3'}`
+ if [ -z "$PARTITION" ];
+ then
+ echo "Unable to determine boot partition."
+ return 1
+ fi
fi
adb start-server
adb root