Merge "fs_mgr: overlay: preserve errno android::gsi::IsGsiRunning()"
This commit is contained in:
commit
6c5c085e41
1 changed files with 4 additions and 3 deletions
|
|
@ -769,9 +769,10 @@ bool fs_mgr_overlayfs_invalid() {
|
||||||
|
|
||||||
// in recovery, fastbootd, or gsi mode, not allowed!
|
// in recovery, fastbootd, or gsi mode, not allowed!
|
||||||
if (fs_mgr_access("/system/bin/recovery")) return true;
|
if (fs_mgr_access("/system/bin/recovery")) return true;
|
||||||
if (android::gsi::IsGsiRunning()) return true;
|
auto save_errno = errno;
|
||||||
|
auto ret = android::gsi::IsGsiRunning();
|
||||||
return false;
|
errno = save_errno;
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue