lineage: env: fixup recovery fstab path
Change-Id: I36860bdee4f9d3c186ca643becb37ad20213628c
diff --git a/build/envsetup.sh b/build/envsetup.sh
index b73acf8..e06b0e6 100644
--- a/build/envsetup.sh
+++ b/build/envsetup.sh
@@ -358,7 +358,7 @@
function installboot()
{
- if [ ! -e "$OUT/recovery/root/etc/recovery.fstab" ];
+ if [ ! -e "$OUT/recovery/root/system/etc/recovery.fstab" ];
then
echo "No recovery.fstab found. Build recovery first."
return 1
@@ -368,12 +368,12 @@
echo "No boot.img found. Run make bootimage first."
return 1
fi
- PARTITION=`grep "^\/boot" $OUT/recovery/root/etc/recovery.fstab | awk {'print $3'}`
+ PARTITION=`grep "^\/boot" $OUT/recovery/root/system/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'}`
+ PARTITION=`grep "[[:space:]]\/boot[[:space:]]" $OUT/recovery/root/system/etc/recovery.fstab | awk {'print $1'}`
+ PARTITION_TYPE=`grep "[[:space:]]\/boot[[:space:]]" $OUT/recovery/root/system/etc/recovery.fstab | awk {'print $3'}`
if [ -z "$PARTITION" ];
then
echo "Unable to determine boot partition."
@@ -407,7 +407,7 @@
function installrecovery()
{
- if [ ! -e "$OUT/recovery/root/etc/recovery.fstab" ];
+ if [ ! -e "$OUT/recovery/root/system/etc/recovery.fstab" ];
then
echo "No recovery.fstab found. Build recovery first."
return 1
@@ -417,12 +417,12 @@
echo "No recovery.img found. Run make recoveryimage first."
return 1
fi
- PARTITION=`grep "^\/recovery" $OUT/recovery/root/etc/recovery.fstab | awk {'print $3'}`
+ PARTITION=`grep "^\/recovery" $OUT/recovery/root/system/etc/recovery.fstab | awk {'print $3'}`
if [ -z "$PARTITION" ];
then
# Try for RECOVERY_FSTAB_VERSION = 2
- PARTITION=`grep "[[:space:]]\/recovery[[:space:]]" $OUT/recovery/root/etc/recovery.fstab | awk {'print $1'}`
- PARTITION_TYPE=`grep "[[:space:]]\/recovery[[:space:]]" $OUT/recovery/root/etc/recovery.fstab | awk {'print $3'}`
+ PARTITION=`grep "[[:space:]]\/recovery[[:space:]]" $OUT/recovery/root/system/etc/recovery.fstab | awk {'print $1'}`
+ PARTITION_TYPE=`grep "[[:space:]]\/recovery[[:space:]]" $OUT/recovery/root/system/etc/recovery.fstab | awk {'print $3'}`
if [ -z "$PARTITION" ];
then
echo "Unable to determine recovery partition."