Skip to content

Commit

Permalink
rootdir: include /etc/recovery.fstab in recovery
Browse files Browse the repository at this point in the history
A few commits before had moved /etc/recovery.fstab to /etc/fstab,
saying that missing /etc/fstab makes /cache not mounted automatically
in case there isn't any update on /cache.

However, missing /etc/recovery.fstab cause the recovery's updater to be
unable to find the update reside in /cache on boot. Beside, this file
is needed by system-image-upgrader to determine what partitions are
available on the system. Missing this file cause system-image-upgrader
to be unable to flash raw partitions.

The solution is to include both files in recovery image. As both files
are actually the same content, I simply tell the build system to copy
the same file twice.

Change-Id: Id780fafd072db67e6e5b8d0debd2bc2681772d69
  • Loading branch information
peat-psuwit committed Jan 13, 2017
1 parent f95475f commit 2ae5f7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions FP2.mk
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ PRODUCT_COPY_FILES += \
device/fairphone/FP2/rootdir/root/init_bt.sh:root/init_bt.sh \
device/fairphone/FP2/rootdir/root/init.wcnss.wifi.sh:root/init.wcnss.wifi.sh \
device/fairphone/FP2/rootdir/root/fstab.qcom:root/fstab.qcom \
device/fairphone/FP2/rootdir/root/recovery.fstab:recovery/root/etc/recovery.fstab \
device/fairphone/FP2/rootdir/root/recovery.fstab:recovery/root/etc/fstab \
device/fairphone/FP2/rootdir/root/twrp.fstab:root/twrp.fstab \
device/fairphone/FP2/rootdir/root/init.qcom.rc:root/init.qcom.rc \
Expand Down

0 comments on commit 2ae5f7c

Please sign in to comment.