Allow non-existing fstab.postinstall am: 93cde30635
Change-Id: I8471f57cfc0cc3614e55ec3bac3a43bf0e95351d
diff --git a/dynamic_partition_control_android.cc b/dynamic_partition_control_android.cc
index 20e02ac..7486d09 100644
--- a/dynamic_partition_control_android.cc
+++ b/dynamic_partition_control_android.cc
@@ -556,7 +556,10 @@
const std::string& path) {
Fstab fstab;
if (!ReadFstabFromFile(path, &fstab)) {
- LOG(WARNING) << "Cannot read fstab from " << path;
+ PLOG(WARNING) << "Cannot read fstab from " << path;
+ if (errno == ENOENT) {
+ return false;
+ }
return std::nullopt;
}
for (const auto& entry : fstab) {