fs_mgr: adapt to new A/B support
In the new A/B partition support suffixes don't have "_". So, fix fs_mgr code that assumes it has "_" Bug: 36533366 Test: boot Change-Id: I0f528cf1e8fecacb1b4ae34f6dc42e18ebe777bb Signed-off-by: Fernando Lugo <flugo@google.com>
This commit is contained in:
parent
6edabc75ab
commit
d1dcedd3fb
|
@ -37,8 +37,7 @@ int fs_mgr_update_for_slotselect(struct fstab *fstab)
|
|||
got_suffix = 1;
|
||||
}
|
||||
|
||||
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 {
|
||||
|
|
Loading…
Reference in New Issue