summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2020-10-28 18:27:43 -0700
committerYifan Hong <elsk@google.com>2020-10-29 12:59:36 -0700
commit3337e782e6f8462c6a2954617e4c59c01ec502be (patch)
tree427de52541a20e7195d9036737c1e118d028c6b0 /trusty/coverage/coverage_test.cpp
parentdf17454a84e3ab0808d62f72ce811faca3cd15d6 (diff)
Move e2fsck into /first_stage_ramdisk.
On devices without a dedicated recovery partition, it is possible that e2fsck exists in /system/bin, not /first_stage_ramdisk/system/bin, if it is using generic ramdisk. When force_normal_boot, /system/bin/e2fsck would not exist during first stage mount. In this case, move /first_stage_ramdisk/system/bin/e2fsck to /system/bin/e2fsck before switching root into /first_stage_ramdisk. Abort if the operation fails. On devices launching with R, e2fsck should already exist in the correct place, so skip moving if force_normal_boot and /first_stage_ramdisk/system/bin/e2fsck already exists. On devices launching before R, it is possible that /system/bin/e2fsck does not exist. Skip moving if force_normal_boot and /system/bin/e2fsck does not exist. Fixes: 171326057 Test: boot with GKI and move_recover_resources_to_vendor_boot, and check serial output Change-Id: I8008a4cad54c7c74a84cbcabe56723bf0e193025
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions