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

Commit ef983596 authored by Alistair Strachan's avatar Alistair Strachan Committed by Gerrit Code Review
Browse files

Merge changes I99d46a2c,I6ff460d0

* changes:
  Skip logical partitions in non-AVB2 case too
  Allow non-A/B, non-retrofit devices to override super_partition
parents 93927189 53c5c623
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1603,9 +1603,6 @@ std::string fs_mgr_get_super_partition_name(int slot) {
        } else if (slot == -1) {
            suffix = fs_mgr_get_slot_suffix();
        }
        if (suffix.empty()) {
            LFATAL << "Super partition name can only be overridden on A/B devices.";
        }
        return super_partition + suffix;
    }
    return LP_METADATA_DEFAULT_PARTITION_NAME;
+3 −1
Original line number Diff line number Diff line
@@ -449,8 +449,10 @@ bool FirstStageMountVBootV1::GetDmVerityDevices() {
    // Includes the partition names of fstab records and verity_loc_device (if any).
    // Notes that fstab_rec->blk_device has A/B suffix updated by fs_mgr when A/B is used.
    for (auto fstab_rec : mount_fstab_recs_) {
        if (!fs_mgr_is_logical(fstab_rec)) {
            required_devices_partition_names_.emplace(basename(fstab_rec->blk_device));
        }
    }

    if (!verity_loc_device.empty()) {
        required_devices_partition_names_.emplace(basename(verity_loc_device.c_str()));