Merge "first_stage_mount: Fix log typo "check_at_most_once""
This commit is contained in:
commit
4bc5277152
1 changed files with 7 additions and 7 deletions
|
|
@ -507,16 +507,16 @@ bool FirstStageMount::TrySwitchSystemAsRoot() {
|
||||||
SaveRamdiskPathToSnapuserd();
|
SaveRamdiskPathToSnapuserd();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MountPartition(system_partition, false /* erase_same_mounts */)) {
|
if (!MountPartition(system_partition, false /* erase_same_mounts */)) {
|
||||||
if (dsu_not_on_userdata_ && fs_mgr_verity_is_check_at_most_once(*system_partition)) {
|
|
||||||
LOG(ERROR) << "check_most_at_once forbidden on external media";
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
SwitchRoot("/system");
|
|
||||||
} else {
|
|
||||||
PLOG(ERROR) << "Failed to mount /system";
|
PLOG(ERROR) << "Failed to mount /system";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (dsu_not_on_userdata_ && fs_mgr_verity_is_check_at_most_once(*system_partition)) {
|
||||||
|
LOG(ERROR) << "check_at_most_once forbidden on external media";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
SwitchRoot("/system");
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue