diff --git a/BoardConfig.mk b/BoardConfig.mk index 1954b69..0494b5b 100755 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -170,7 +170,8 @@ BOARD_ROOT_EXTRA_SYMLINKS := \ /vendor/dsp:/dsp \ /vendor/firmware-modem:/firmware-modem \ /vendor/firmware_mnt:/firmware \ - /vendor/bt_firmware:/bt_firmware + /vendor/bt_firmware:/bt_firmware \ + /mnt/vendor/persist:/persist TARGET_USES_MKE2FS := true # Root diff --git a/rootdir/etc/fstab.qcom b/rootdir/etc/fstab.qcom index 93dd3be..05220ef 100644 --- a/rootdir/etc/fstab.qcom +++ b/rootdir/etc/fstab.qcom @@ -12,6 +12,7 @@ /dev/block/bootdevice/by-name/apnhlos /vendor/firmware_mnt vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait /dev/block/bootdevice/by-name/modem /vendor/firmware-modem vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait /dev/block/bootdevice/by-name/bluetooth /vendor/bt_firmware vfat ro,shortname=lower,uid=1002,gid=3002,dmask=227,fmask=337,context=u:object_r:bt_firmware_file:s0 wait +/dev/block/bootdevice/by-name/persist /mnt/vendor/persist ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait /dev/block/bootdevice/by-name/misc /misc emmc defaults defaults /dev/block/bootdevice/by-name/hidden /preload emmc defaults defaults diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 05177e5..44e4e8f 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -32,7 +32,6 @@ import /vendor/etc/init/hw/init.${ro.product.vendor.device}.rc import /vendor/etc/init/hw/init.${ro.product.vendor.name}.rc on early-init - mkdir /mnt/vendor/persist 0771 system system symlink /data/tombstones /tombstones on fs @@ -48,9 +47,6 @@ on fs chmod 0771 /efs restorecon -R /efs - wait /dev/block/bootdevice/by-name/persist - mount ext4 /dev/block/bootdevice/by-name/persist /mnt/vendor/persist nosuid nodev noatime noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic - restorecon_recursive /mnt/vendor/persist mkdir /mnt/vendor/persist/data 0700 system system mkdir /mnt/vendor/persist/rfs 0700 system system