summaryrefslogtreecommitdiff
path: root/src/test/test-bootspec.c
Commit message (Collapse)AuthorAgeFilesLines
* test: check returned values are always initialized on successYu Watanabe2022-09-041-1/+4
|
* bootspec: properly parse tries done/tries left from bootspec file namesLennart Poettering2022-09-021-0/+53
| | | | | | | This has been a long-time omission in the userspace parser of bootspec files. Correct that. Fixes: #16457
* bootspec: normalize function names/parameter listsLennart Poettering2022-03-281-1/+1
| | | | | | | | | | | | | This normalizes naming of functions operating on BootConfig objects. Let's always call them boot_config_xyz(), like our usual way to name stuff. moreover, move the BootConfig parameter to the beginning, as it's not a return value (which we typically move to the end of the parameter list), but simply an object, that even happens to be initialized already. With these changes the functions are more like our usual way to call things, and less surprises are good.
* bootspec: assess default/selected entries *after* we augmented entry list ↵Lennart Poettering2022-03-281-1/+1
| | | | | | with entries from loader Fixes: #22580
* sd-boot+bootctl: invert order of entries w/o sort-keyZbigniew Jędrzejewski-Szmek2022-03-181-2/+2
| | | | | | | | | | | | With the changes in 20ec8f534f90c94669ac8f9a50869f22f94fd4c8, we would sort entries with sort-key as expected (higher versions earlier, i.e. at the top of the menu), but entries without the sort-key as before, with higher versions later. When we have a bunch of boot entries grouped by machine-id (or even in the typical case of all boot entries having the same machine id), sorting by id should generally give good results. Entries will be grouped by installation, and then newer entries should generally be at the top of the menu.
* test: add test that verifies correct order of boot entriesLennart Poettering2022-03-181-0/+96