summaryrefslogtreecommitdiff
path: root/rootdir/etc/init.target.rc
diff options
context:
space:
mode:
authorVinay Verma <vvinay@codeaurora.org>2018-05-11 21:55:09 +0530
committerTingyiChen <tingyi364@gmail.com>2019-08-13 11:52:28 +0200
commit55e4b01daa330f0644ebc4194592a313da28a184 (patch)
treecd57b343c438caa1ca5cbd41b56af209eeb0bafc /rootdir/etc/init.target.rc
parent17064c84a5f2e8561dbceb8c35ce3d670c5caca8 (diff)
wayne-common: Moving persist mount point to /mnt/vendor/persist
Move persist entry to fstab and mount at /mnt/vendor/persist Apply required user, group and permissions once persist folder is created through __mount and parititon is mounted. Run restorecon on /mnt/vendor/persist. Change-Id: I20a16f3669bc7abf9844525c6ba0db1521a5a8e2
Diffstat (limited to 'rootdir/etc/init.target.rc')
-rwxr-xr-xrootdir/etc/init.target.rc57
1 files changed, 32 insertions, 25 deletions
diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc
index b054763..5b78ba6 100755
--- a/rootdir/etc/init.target.rc
+++ b/rootdir/etc/init.target.rc
@@ -49,20 +49,27 @@ on fs
mount_all /vendor/etc/fstab.qcom
swapon_all /vendor/etc/fstab.qcom
+ # Set permissions for persist partition
+ chown root system /mnt/vendor/persist
+ chmod 0771 /mnt/vendor/persist
+ mkdir /mnt/vendor/persist/bms 0700 root system
+ mkdir /mnt/vendor/persist/data 0700 system system
+ restorecon_recursive /mnt/vendor/persist
+
# Keeping following partitions outside fstab file. As user may not have
# these partition flashed on the device. Failure to mount any partition in fstab file
# results in failure to launch late-start class.
- mkdir /persist/data 0700 system system
- mkdir /persist/bms 0700 root system
- restorecon_recursive /persist
- mkdir /persist/wlan_bt 0777 root system
+ mkdir /vendor/mnt/persist/data 0700 system system
+ mkdir /vendor/mnt/persist/bms 0700 root system
+ restorecon_recursive /vendor/mnt/persist
+ mkdir /vendor/mnt/persist/wlan_bt 0777 root system
#add by Quanyu.Lee for MI-feature
#only needed on Factory version,DO NOT push to MIUI!
- chmod 0644 /persist/wlan_bt/bt.mac
- chmod 0644 /persist/wlan_bt/wlan.mac
- chown system system /persist/wlan_bt/bt.mac
- chown system system /persist/wlan_bt/wlan.mac
+ chmod 0644 /vendor/mnt/persist/wlan_bt/bt.mac
+ chmod 0644 /vendor/mnt/persist/wlan_bt/wlan.mac
+ chown system system /vendor/mnt/persist/wlan_bt/bt.mac
+ chown system system /vendor/mnt/persist/wlan_bt/wlan.mac
write /sys/kernel/boot_adsp/boot 1
@@ -81,7 +88,7 @@ on post-fs-data
mkdir /data/tombstones/lpass 0771 system system
mkdir /data/tombstones/wcnss 0771 system system
mkdir /data/tombstones/dsps 0771 system system
- mkdir /persist/qti_fp 0700 system system
+ mkdir /vendor/mnt/persist/qti_fp 0700 system system
mkdir /data/misc/seemp 0700 system system
mkdir /data/misc/tloc 0700 system drmrpc
mkdir /data/thermal 0771 system system
@@ -96,22 +103,22 @@ on boot
write /dev/cpuset/system-background/cpus 0-7
write /dev/cpuset/restricted/cpus 0-7
####Regionalization config and prop files####
- chmod 0644 /persist/speccfg/spec
- chmod 0644 /persist/speccfg/devicetype
- chmod 0644 /persist/speccfg/mbnversion
- chmod 0644 /persist/speccfg/.not_triggered
- chmod 0644 /persist/speccfg/vendor_ro.prop
- chmod 0644 /persist/speccfg/vendor_persist.prop
- chmod 0644 /persist/speccfg/submask
- chmod 0644 /persist/speccfg/partition
- chown system system /persist/speccfg/spec
- chown system system /persist/speccfg/devicetype
- chown system system /persist/speccfg/mbnversion
- chown system system /persist/speccfg/.not_triggered
- chown system system /persist/speccfg/vendor_ro.prop
- chown system system /persist/speccfg/vendor_persist.prop
- chown system system /persist/speccfg/submask
- chown system system /persist/speccfg/partition
+ chmod 0644 /vendor/mnt/persist/speccfg/spec
+ chmod 0644 /vendor/mnt/persist/speccfg/devicetype
+ chmod 0644 /vendor/mnt/persist/speccfg/mbnversion
+ chmod 0644 /vendor/mnt/persist/speccfg/.not_triggered
+ chmod 0644 /vendor/mnt/persist/speccfg/vendor_ro.prop
+ chmod 0644 /vendor/mnt/persist/speccfg/vendor_persist.prop
+ chmod 0644 /vendor/mnt/persist/speccfg/submask
+ chmod 0644 /vendor/mnt/persist/speccfg/partition
+ chown system system /vendor/mnt/persist/speccfg/spec
+ chown system system /vendor/mnt/persist/speccfg/devicetype
+ chown system system /vendor/mnt/persist/speccfg/mbnversion
+ chown system system /vendor/mnt/persist/speccfg/.not_triggered
+ chown system system /vendor/mnt/persist/speccfg/vendor_ro.prop
+ chown system system /vendor/mnt/persist/speccfg/vendor_persist.prop
+ chown system system /vendor/mnt/persist/speccfg/submask
+ chown system system /vendor/mnt/persist/speccfg/partition
chmod 0660 /proc/nvt_wake_gesture
chown system system /proc/nvt_wake_gesture