From 73a68dd6d3794ed8a4e791f2c86c4e55a61ea2aa Mon Sep 17 00:00:00 2001 From: Kelvin Zhang Date: Thu, 20 Jun 2024 21:04:40 -0700 Subject: [PATCH] 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 --- conf/init.efs.16k.rc | 8 +++++--- conf/init.efs.4k.rc | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/conf/init.efs.16k.rc b/conf/init.efs.16k.rc index 89e2b57f..e39ac23f 100644 --- a/conf/init.efs.16k.rc +++ b/conf/init.efs.16k.rc @@ -15,8 +15,10 @@ on post-fs-data && property:ro.boot.hardware.cpu.pagesize=16384 restorecon_recursive /data/vendor/ss setprop ro.vendor.persist.status mounted -on late-fs && property:ro.boot.hardware.cpu.pagesize=4096 - mount_all /vendor/etc/fstab.efs - mount_all /vendor/etc/fstab.persist +on early-init && property:ro.boot.hardware.cpu.pagesize=4096 + mount_all /vendor/etc/fstab.persist --early setprop ro.vendor.persist.status mounted +on late-fs && property:ro.boot.hardware.cpu.pagesize=4096 + mount_all /vendor/etc/fstab.efs --early + diff --git a/conf/init.efs.4k.rc b/conf/init.efs.4k.rc index 60a07a9c..8b48bdfb 100644 --- a/conf/init.efs.4k.rc +++ b/conf/init.efs.4k.rc @@ -1,4 +1,6 @@ -on late-fs - mount_all /vendor/etc/fstab.efs - mount_all /vendor/etc/fstab.persist +on early-init + mount_all /vendor/etc/fstab.persist --early setprop ro.vendor.persist.status mounted + +on late-fs + mount_all /vendor/etc/fstab.efs --early