diff --git a/fs_mgr/fs_mgr_fstab.cpp b/fs_mgr/fs_mgr_fstab.cpp index 0825a7716..f333a8561 100644 --- a/fs_mgr/fs_mgr_fstab.cpp +++ b/fs_mgr/fs_mgr_fstab.cpp @@ -408,16 +408,17 @@ std::string ReadFstabFromDt() { return fstab_result; } -// Identify path to fstab file. Lookup is based on pattern fstab., -// fstab. in folders /odm/etc, vendor/etc, or /. +// Identify path to fstab file. Lookup is based on pattern +// fstab., fstab., fstab. in +// folders /odm/etc, vendor/etc, or /. std::string GetFstabPath() { - for (const char* prop : {"hardware", "hardware.platform"}) { - std::string hw; + for (const char* prop : {"fstab_suffix", "hardware", "hardware.platform"}) { + std::string suffix; - if (!fs_mgr_get_boot_config(prop, &hw)) continue; + if (!fs_mgr_get_boot_config(prop, &suffix)) continue; for (const char* prefix : {"/odm/etc/fstab.", "/vendor/etc/fstab.", "/fstab."}) { - std::string fstab_path = prefix + hw; + std::string fstab_path = prefix + suffix; if (access(fstab_path.c_str(), F_OK) == 0) { return fstab_path; } diff --git a/init/README.md b/init/README.md index b70366b8f..0dd14900f 100644 --- a/init/README.md +++ b/init/README.md @@ -547,13 +547,16 @@ provides the `aidl_lazy_test_1` interface. * `ref`: use the systemwide DE key * `per_boot_ref`: use the key freshly generated on each boot. -`mount_all [ ]\* [--