aboutsummaryrefslogtreecommitdiff
path: root/rootdir/etc/fstab.qcom
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2018-02-27 20:00:45 +0000
committerCosme Domínguez Díaz <cosme.ddiaz@gmail.com>2018-03-02 00:02:48 +0100
commitd1db139ac0bab3d0a9c47596d618cc16b4ae7a4c (patch)
treefcca7994ccbbb952a176c1621a20b5f620f18e5c /rootdir/etc/fstab.qcom
parent2dc1a7bc0c5a382adf9a2ae12b9fd38f21993348 (diff)
msm8996-common: Get rid of recovery-only fstab
* Mounting /system and /vendor partitions is handled in kernel now, however removing the entries from fstab caused issues building the OTA. The workaround was to have a separate fstab, but turns out that simply setting the recoveryonly flag does the trick because those are then ignored during a normal Android boot. Change-Id: I2944384d0a1c41bc9f9f51e2e29daff2bed0a0f4
Diffstat (limited to 'rootdir/etc/fstab.qcom')
-rw-r--r--rootdir/etc/fstab.qcom4
1 files changed, 3 insertions, 1 deletions
diff --git a/rootdir/etc/fstab.qcom b/rootdir/etc/fstab.qcom
index b1bc993..9133cbd 100644
--- a/rootdir/etc/fstab.qcom
+++ b/rootdir/etc/fstab.qcom
@@ -2,7 +2,7 @@
# The filesystem that contains the filesystem e2fsck binary (typically /system) cannot
# specify 'check', and must come before any filesystems that do specify 'check'
-# NOTE: /system and /vendor (/factory mounted as /vendor) partitions are now early-mounted and the fstab entry is specified in device tree:
+# NOTE: /system and /vendor (/factory mounted as /vendor) partitions are now early-mounted and the fstab entry is specified in device tree (duplicated below for recovery image purposes only):
# /proc/device-tree/firmware/android/fstab/system
# /proc/device-tree/firmware/android/fstab/vendor
@@ -11,6 +11,8 @@
/dev/block/bootdevice/by-name/recovery /recovery emmc defaults defaults
/dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,inline_xattr,data_flush wait,check,encryptable=footer
/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,noatime,barrier=1,noauto_da_alloc wait,check,encryptable=footer
+/dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1 wait,recoveryonly
+/dev/block/bootdevice/by-name/factory /vendor ext4 ro,barrier=1 wait,recoveryonly
/dev/block/bootdevice/by-name/cache /cache f2fs nosuid,nodev,noatime,inline_xattr,flush_merge,data_flush wait,check
/dev/block/bootdevice/by-name/cache /cache ext4 nosuid,nodev,noatime,barrier=1 wait,check
/dev/block/bootdevice/by-name/persist /persist ext4 nosuid,nodev,noatime,barrier=1 wait