Merge "Disable DSU in recovery mode" into main

This commit is contained in:
Chun-Wei Wang 2023-12-19 03:57:26 +00:00 committed by Gerrit Code Review
commit db6cb42d5f

View file

@ -716,7 +716,7 @@ bool ReadFstabFromFile(const std::string& path, Fstab* fstab) {
if (!ReadFstabFromFileCommon(path, fstab)) {
return false;
}
if (path != kProcMountsPath) {
if (path != kProcMountsPath && !InRecovery()) {
if (!access(android::gsi::kGsiBootedIndicatorFile, F_OK)) {
std::string dsu_slot;
if (!android::gsi::GetActiveDsu(&dsu_slot)) {