From a87df3eddde73e612a2955ca8c49962ce6166653 Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Sat, 27 Jul 2013 13:51:56 +0100 Subject: [PATCH] eat: Support v2 fstabs Change-Id: I5220d7e9232174e2acbdc2d6c931827af959f212 --- envsetup.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/envsetup.sh b/envsetup.sh index ab2598996..13164f032 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -1709,8 +1709,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 -- 2.11.0