diff options
author | dianlujitao <dianlujitao@lineageos.org> | 2018-10-09 20:29:41 +0800 |
---|---|---|
committer | TingyiChen <tingyi364@gmail.com> | 2019-08-13 11:52:49 +0200 |
commit | edf6b1d8bff72cd64b15eb522368b690a2500345 (patch) | |
tree | eb01b9cf05be265e61ccf3a0eb15823d09585917 | |
parent | ce98e574a7ef38bcd2ffa15f91e6542cd5b437ae (diff) |
wayne-common: Bind mount /mnt/vendor/persist to /persist for sensors
* Oreo sensors.qcom cannot access to persist even with the symlink
Change-Id: Ifc43515c70b51aeb8c1b5db765051fb21fddb80d
-rw-r--r-- | Android.mk | 10 | ||||
-rw-r--r-- | rootdir/etc/fstab.qcom | 1 | ||||
-rw-r--r-- | rootdir/etc/fstab_AB.qcom | 1 |
3 files changed, 5 insertions, 7 deletions
@@ -54,7 +54,7 @@ $(LOCAL_BUILT_MODULE): FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/firmware_mnt BT_FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/bt_firmware DSP_MOUNT_POINT := $(TARGET_OUT_VENDOR)/dsp -PERSIST_MOUNT_POINT := $(TARGET_ROOT_OUT)/persist + $(FIRMWARE_MOUNT_POINT): @echo "Creating $(FIRMWARE_MOUNT_POINT)" @mkdir -p $(TARGET_OUT_VENDOR)/firmware_mnt @@ -73,12 +73,8 @@ $(DSP_MOUNT_POINT): ifneq ($(TARGET_MOUNT_POINTS_SYMLINKS),false) @ln -sf /vendor/dsp $(TARGET_ROOT_OUT)/dsp endif -$(PERSIST_MOUNT_POINT): - @echo "Creating $(PERSIST_MOUNT_POINT)" -ifneq ($(TARGET_MOUNT_POINTS_SYMLINKS),false) - @ln -sf /mnt/vendor/persist $(TARGET_ROOT_OUT)/persist -endif -ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MOUNT_POINT) $(BT_FIRMWARE_MOUNT_POINT) $(DSP_MOUNT_POINT) $(PERSIST_MOUNT_POINT) + +ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MOUNT_POINT) $(BT_FIRMWARE_MOUNT_POINT) $(DSP_MOUNT_POINT) IMS_LIBS := libimscamera_jni.so libimsmedia_jni.so diff --git a/rootdir/etc/fstab.qcom b/rootdir/etc/fstab.qcom index 1ccda28..3efed1e 100644 --- a/rootdir/etc/fstab.qcom +++ b/rootdir/etc/fstab.qcom @@ -19,6 +19,7 @@ /dev/block/bootdevice/by-name/dsp /vendor/dsp ext4 ro,nosuid,nodev,barrier=1 wait /dev/block/bootdevice/by-name/cache /cache ext4 nosuid,nodev,noatime,barrier=1 wait /dev/block/bootdevice/by-name/persist /mnt/vendor/persist ext4 nosuid,nodev,barrier=1,noatime wait,check +/mnt/vendor/persist /persist none bind wait /dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1 wait,recoveryonly /dev/block/bootdevice/by-name/vendor /vendor ext4 ro,barrier=1 wait,recoveryonly diff --git a/rootdir/etc/fstab_AB.qcom b/rootdir/etc/fstab_AB.qcom index 2a16f53..c4a781f 100644 --- a/rootdir/etc/fstab_AB.qcom +++ b/rootdir/etc/fstab_AB.qcom @@ -15,3 +15,4 @@ /devices/soc/a800000.ssusb/a800000.dwc3/xhci-hcd.0.auto* /storage/usbotg vfat nosuid,nodev wait,voldmanaged=usbotg:auto /dev/block/bootdevice/by-name/dsp /vendor/dsp ext4 ro,nosuid,nodev,barrier=1 wait,slotselect /dev/block/bootdevice/by-name/persist /mnt/vendor/persist ext4 nosuid,nodev,barrier=1,noatime wait,check +/mnt/vendor/persist /persist none bind wait |