Mount persist partition in early-init

The graphics hal might need to access /persist early in the boot
process. So mount persist early for 4K devices.

Test: boot 4K device
Bug: 338504890
Change-Id: I4b2a0a61ebaff5d85a4daac445d81ae3d21aa9c3
This commit is contained in:
Kelvin Zhang 2024-06-20 21:04:40 -07:00
parent 763984677a
commit 73a68dd6d3
2 changed files with 10 additions and 6 deletions

View file

@ -15,8 +15,10 @@ on post-fs-data && property:ro.boot.hardware.cpu.pagesize=16384
restorecon_recursive /data/vendor/ss restorecon_recursive /data/vendor/ss
setprop ro.vendor.persist.status mounted setprop ro.vendor.persist.status mounted
on late-fs && property:ro.boot.hardware.cpu.pagesize=4096 on early-init && property:ro.boot.hardware.cpu.pagesize=4096
mount_all /vendor/etc/fstab.efs mount_all /vendor/etc/fstab.persist --early
mount_all /vendor/etc/fstab.persist
setprop ro.vendor.persist.status mounted setprop ro.vendor.persist.status mounted
on late-fs && property:ro.boot.hardware.cpu.pagesize=4096
mount_all /vendor/etc/fstab.efs --early

View file

@ -1,4 +1,6 @@
on late-fs on early-init
mount_all /vendor/etc/fstab.efs mount_all /vendor/etc/fstab.persist --early
mount_all /vendor/etc/fstab.persist
setprop ro.vendor.persist.status mounted setprop ro.vendor.persist.status mounted
on late-fs
mount_all /vendor/etc/fstab.efs --early