systemd-boot: Make automatic entries configurable
authorJan Janssen <medhefgo@web.de>
Sun, 28 Jan 2018 16:06:22 +0000 (17:06 +0100)
committerJan Janssen <medhefgo@web.de>
Sun, 28 Jan 2018 16:20:41 +0000 (17:20 +0100)
commitc1d4e298bc5b80788ab0cbfdfc066140678612a8
tree2c060e6d3f28cc350d0c309603b4f1d3bc3b82fe
parent33d4ba32c93cba64832ce73c50cfd316200c0be3
systemd-boot: Make automatic entries configurable

Hiding automatic entries allows for giving custom entry names like
"Windows 10" instead of "Windows Boot Manager" by creating an appropriate
loader file in the loader/entries folder.
Note that it is already doable by renaming bootmgfw.efi (or the other auto-detected
boot loaders) and then using the renamed file for a custom entry. But windows will
automatically recreate the boot loader on updates, including the default EFI
bootloader entry if that one is missing.

Make hiding EFI reboot a separate option because there is no simple way to create
it with a custom loader entry and people may still want that around while still
hiding the other auto entries.

Also, turn no_editor into a positive boolean name while we're touching this code.
src/boot/efi/boot.c
src/shared/bootspec.c
src/shared/bootspec.h