init: support 2SI devices with skip_initramfs

This commit is contained in:
vvb2060
2024-08-24 02:23:28 +08:00
committed by John Wu
parent 8e82113bce
commit b38fd1ca5f
3 changed files with 12 additions and 9 deletions

View File

@@ -230,7 +230,9 @@ kv_pairs load_partition_map() {
}
bool check_two_stage() {
if (access("/apex", F_OK) == 0)
if (access("/first_stage_ramdisk", F_OK) == 0)
return true;
if (access("/second_stage_resources", F_OK) == 0)
return true;
if (access("/system/bin/init", F_OK) == 0)
return true;