system/core
修訂 | b10d1ac14a927c7948e1d19a09f5f3d9aaf1c848 (tree) |
---|---|
時間 | 2019-04-20 07:14:08 |
作者 | Alistair Strachan <astrachan@goog...> |
Commiter | Android (Google) Code Review |
Merge "Don't assume an A/B device when overriding the super partition name." into qt-dev
@@ -1695,11 +1695,12 @@ bool fs_mgr_verity_is_check_at_most_once(const android::fs_mgr::FstabEntry& entr | ||
1695 | 1695 | |
1696 | 1696 | std::string fs_mgr_get_super_partition_name(int slot) { |
1697 | 1697 | // Devices upgrading to dynamic partitions are allowed to specify a super |
1698 | - // partition name, assumed to be A/B (non-A/B retrofit is not supported). | |
1699 | - // For devices launching with dynamic partition support, the partition | |
1700 | - // name must be "super". | |
1698 | + // partition name. This includes cuttlefish, which is a non-A/B device. | |
1701 | 1699 | std::string super_partition; |
1702 | 1700 | if (fs_mgr_get_boot_config_from_kernel_cmdline("super_partition", &super_partition)) { |
1701 | + if (fs_mgr_get_slot_suffix().empty()) { | |
1702 | + return super_partition; | |
1703 | + } | |
1703 | 1704 | std::string suffix; |
1704 | 1705 | if (slot == 0) { |
1705 | 1706 | suffix = "_a"; |