msm8226-common: cleanup filesystem mounting when starting in offline charger mode

This commit is contained in:
Francescodario Cuzzocrea 2019-09-27 10:28:04 +02:00
parent 011268be6b
commit 51e63aa497

View file

@ -99,13 +99,8 @@ on init
write /dev/cpuset/camera-daemon/cpus 0-3
on charger
mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system /system wait ro
wait /dev/block/platform/msm_sdcc.1/by-name/userdata
check_fs /dev/block/platform/msm_sdcc.1/by-name/userdata ext4
mount ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata /data nosuid nodev noatime noauto_da_alloc,discard,journal_async_commit,errors=panic
chown system system /data
chmod 0771 /data
wait /dev/block/platform/msm_sdcc.1/by-name/system
mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system /system ro barrier=1 errors=panic
class_start charger
write /sys/devices/system/cpu/cpu1/online 1