bootcontrol: return error if set active for partitions fails

Do not continue in case of an error setting active slot for all
partitions. Otherwise, boot LUN will be changed causing XBL to be read
from the new slot but other parts of the bootloader will be read from
old slot. This may cause the bootloader to crash and device will be
bricked

Bug: 77969086
Test: bootctl set-active-boot-slot 0
Change-Id: Ief029f314d3b1197e43b6e85ac78aba9761cf736
Signed-off-by: Fernando Lugo <flugo@google.com>
1 file changed
tree: 61942ca22e03e502cf97b3196f8366efbcf20c1d
  1. Android.mk
  2. boot_control.cpp
  3. NOTICE