Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/bootconfig-parser: Write BLS fragment fields in a deterministic o…
…rder Currently the BLS fragments fields write is non-determinisitc. The order of the fields will depend on how the iterator of the options GHashTable iterates over the key/value pairs. But some bootloaders expect the fields to be written in a certain order. For example the zipl bootloader (used in the s390x architecture) fails to parse BLS files if the first field is not the 'title' field, since that's used to name the zipl boot sections that are created from the BLS files. Write the fields in a deterministic order, following what is used in the example file of the BootLoaderspec document: https://systemd.io/BOOT_LOADER_SPECIFICATION Related: #1888 Closes: #1904 Approved by: cgwalters
- Loading branch information