Allow non-existing fstab.postinstall am: 93cde30635 am: 60a481cbb7 am: 5a5c88e459
Change-Id: I1f8908a8c8b7027f4c6ace3e44a531e3b6f8ee60
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) {