Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1311297 authored by Steve Kondik's avatar Steve Kondik
Browse files

envsetup: Fix installrecovery for new fstab format

Change-Id: I26ab441c28350cce70bb976b249b16c6b83ab8da
parent 3dfd176e
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -1515,10 +1515,16 @@ function installrecovery()
    fi
    PARTITION=`grep "^\/recovery" $OUT/recovery/root/etc/recovery.fstab | awk {'print $3'}`
    if [ -z "$PARTITION" ];
    then
        # 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 recovery partition."
            return 1
        fi
    fi
    adb start-server
    adb root
    sleep 1