commit | 8d5e2b337916fd8df3175f39e7b56e146a1f8ba3 | [log] [tgz] |
---|---|---|
author | Connor O'Brien <connoro@google.com> | Fri Oct 27 15:31:01 2017 -0700 |
committer | Connor O'Brien <connoro@google.com> | Tue Oct 31 18:40:34 2017 -0700 |
tree | cf68156dca7977ce20d646e60cf0578e57fb2326 | |
parent | 93a61da1e6caf7ed7c6ba935ead48f4f7fde4382 [diff] |
bootcontrol: count slots correctly Currently slots are miscounted on marlin because the count includes both the bootlocker and boot partitions for each slot. Modify the name used to find boot partitions to avoid this double counting. Add a check to catch changes to slot suffixes that would break slot counting. Bug: 68012387 Test: bootctl get-number-slots returns 2 on marlin Change-Id: I5480273cf6de07fac2f47e4f8e249e2d547b686e Signed-off-by: Connor O'Brien <connoro@google.com>