commit | 16e48de4b6fb070b2f8a93fc91699fa29be9e399 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Sat Aug 26 03:53:42 2023 +0200 |
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Sun Aug 27 08:21:07 2023 +0200 |
tree | 46bbe0e1d6384a30f2d7096284cfae23dadc4e91 | |
parent | 441dc54449cc1acc681ed63f75094d2e2068fada [diff] |
cmd: fix gpt enumerate Do not assume that partitions are numbered continuously starting at 1. Only a single partition table type can exist on a block device. If we found a GPT partition table, we must not re-enumerate with the MBR partition driver which would find the protective partition. Fixes: 12fc1f3bb223 ("cmd: gpt: add eMMC and GPT support") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>