mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-31 00:24:17 +00:00
4c64ca631a
Since we sort the boot options prior to selecting the new default entry, we need to use the index of the entry in the list prior to being sorted, vs always setting it as 1. This fixes setting/booting of the default OS target where the list entries are changed when calling sort. Test: perform OEM factory reset with Fedora 32 installed, verify default boot succeeds followng reset. Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>