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

Commit d1dcedd3 authored by Fernando Lugo's avatar Fernando Lugo
Browse files

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: default avatarFernando Lugo <flugo@google.com>
parent 6edabc75
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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 {