"custom osprober" (or basically custom boot preparation)

Specifically id like to copy uefi shell and ext efi driver to my esp in a deterministic fashion.

Generally I’d like to perform actions everytime a new generation is enabled for boot.

How can I achieve this?

I’m not looking for “extra entries” in grub etc …

Currently, that would be handled by the bootloader module you’re using.

If you’re using systemd-boot, you can set boot.loader.systemd-boot.extraFiles.

If you’re using GRUB, you can set boot.loader.grub.extraFiles.

1 Like

And i guess extraInstallCommands in the same group. Thanks