Merge changes I0ad349f2,I0f528cf1 am: 27a091d4a1 am: 69482cc127

am: 89573b397d

Change-Id: Id087881d88f87e2b31a77aab6f818118c04c25c6
This commit is contained in:
Fernando Lugo 2017-03-23 17:01:12 +00:00 committed by android-build-merger
commit 9e0c682e61
1 changed files with 3 additions and 2 deletions

View File

@ -35,10 +35,11 @@ int fs_mgr_update_for_slotselect(struct fstab *fstab)
return -1;
}
got_suffix = 1;
// remove below line when bootloaders fix androidboot.slot_suffix param
if (suffix[0] == '_') suffix.erase(suffix.begin());
}
if (asprintf(&tmp, "%s%s", fstab->recs[n].blk_device,
suffix.c_str()) > 0) {
if (asprintf(&tmp, "%s_%s", fstab->recs[n].blk_device, suffix.c_str()) > 0) {
free(fstab->recs[n].blk_device);
fstab->recs[n].blk_device = tmp;
} else {