Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4694b5ca authored by David Anderson's avatar David Anderson Committed by android-build-merger
Browse files

Merge "Don't assume an A/B device when overriding the super partition name." am: 8f37d23f

am: da9d1a66

Change-Id: I8d13e597b8e0dee27939ee4cc48c6bd75effe797
parents 59b89404 da9d1a66
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1695,11 +1695,12 @@ bool fs_mgr_verity_is_check_at_most_once(const android::fs_mgr::FstabEntry& entr

std::string fs_mgr_get_super_partition_name(int slot) {
    // Devices upgrading to dynamic partitions are allowed to specify a super
    // partition name, assumed to be A/B (non-A/B retrofit is not supported).
    // For devices launching with dynamic partition support, the partition
    // name must be "super".
    // partition name. This includes cuttlefish, which is a non-A/B device.
    std::string super_partition;
    if (fs_mgr_get_boot_config_from_kernel_cmdline("super_partition", &super_partition)) {
        if (fs_mgr_get_slot_suffix().empty()) {
            return super_partition;
        }
        std::string suffix;
        if (slot == 0) {
            suffix = "_a";