Allow non-existing fstab.postinstall am: 4b28a53926 am: f1f1b77196
Change-Id: I6e1099bc6407690244492153065695b5728d9c9c
diff --git a/dynamic_partition_control_android.cc b/dynamic_partition_control_android.cc
index a310f20..48ad5f0 100644
--- a/dynamic_partition_control_android.cc
+++ b/dynamic_partition_control_android.cc
@@ -547,7 +547,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) {