sd-boot: simplify the implementation of entry uniquification
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 20 Oct 2017 15:51:54 +0000 (17:51 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 23 Oct 2017 11:40:54 +0000 (13:40 +0200)
commita2fa605a653faff46a39f069e28441e89b3db6dd
tree4daf8824e00048210d2855a93619d5cb7ff0b393
parent02fa054dc44916f4840e2020a5ebac3042d4bf65
sd-boot: simplify the implementation of entry uniquification

There's a slight change in implementation: we first try to append the
version, then look for any non-unique pairs again. Before, we would only
mark as possibly unique those entries we changed. But if there are two
entries that e.g. have the same title and version, but only one has the
machine-id specified, we would treat one of them as still non-unique after
appending the machine-id to the other one. So the new algorithm is simpler
but more robust (not that it matters).
src/boot/efi/boot.c