]> git.ipfire.org Git - thirdparty/systemd.git/commit
boot: Deduplicate old-style loader entries. 13953/head
authorSpencer Michaels <sxmichaels@gmail.com>
Wed, 20 Nov 2019 22:18:32 +0000 (14:18 -0800)
committerSpencer Michaels <sxmichaels@gmail.com>
Thu, 21 Nov 2019 23:50:03 +0000 (15:50 -0800)
commit15b82eecb6461b55c8a70abd3276318af8dee0b9
treec4891c4dcc6b6d4f4ff0dd8afde9ca2a5499a6fe
parentae474efc3f6508bc4a0e50505f205f0b0b7c7617
boot: Deduplicate old-style loader entries.

In cases where systemd (and thus bootctl) is updated to a version
including the earlier unique-ID fix, but the corresponding new version
of systemd-boot is not installed to the ESP and run at least once,
the bootloader will report old-style entry IDs cached in the
LoaderEntries EFI variable, while bootctl will report new-style IDs for
the same entries, producing duplicate entries. This commit makes bootctl
compute and retain old-style IDs for non-auto entries so that it can
properly deduplicate entries even if the cache contains old-style IDs.
src/shared/bootspec.c
src/shared/bootspec.h