diff options
| author | Yifan Hong <elsk@google.com> | 2020-04-28 00:44:11 +0000 |
|---|---|---|
| committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-04-28 00:44:11 +0000 |
| commit | f1f1b7719632fc0e50ee30ce5ab9d205a0d4ed4a (patch) | |
| tree | 274a0feb63d3a634c9bfed965c7b0a2b708626fd | |
| parent | eabac7a6ed91a7ced423add96afaa33785a4d880 (diff) | |
| parent | 4b28a53926e27d47fac7784be553c494ae44753f (diff) | |
Allow non-existing fstab.postinstall am: 4b28a53926
Change-Id: I2a40679b63b16cb64a5b7a76410192fa95370b9d
| -rw-r--r-- | dynamic_partition_control_android.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dynamic_partition_control_android.cc b/dynamic_partition_control_android.cc index a310f209..48ad5f03 100644 --- a/dynamic_partition_control_android.cc +++ b/dynamic_partition_control_android.cc @@ -547,7 +547,10 @@ std::optional<bool> DynamicPartitionControlAndroid::IsAvbEnabledInFstab( 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) { |
