systemboot
systemboot copied to clipboard
Implement localboot via BLS
This was brought up by @davide125
See https://systemd.io/BOOT_LOADER_SPECIFICATION
Considering implementing this at the coreboot/LB hackathon this week
RHEL 8 (and probably CentOS8) uses this by default and populates loader/entries/*.conf
files inside the efi/boot partition.
I think it is nicer to parse those files, as they follow a specification, instead of parsing grub configs. I only intend to implement the non-EFI parts of the spec (called Type#1). The other part is EFI specific and requires loading an EFI PE binary, which is out of scope for now. (Although it is nice for things like signing/secureboot as everything is in a single file (kernel, initrd, commandline, metadata))
Need to discuss with @insomniacslk and @hugelgupf how we want to organize the multiple localboots.
I am going to open this PR against u-root as soon as the move is done, I don't want to delay this any longer.