Extending bootloader installation #375

Open
opened 2024-07-14 15:36:21 +00:00 by rafaelsgirao · 1 comment
rafaelsgirao commented 2024-07-14 15:36:21 +00:00 (Migrated from github.com)

It would be great if there was a way of directly extending the bootloader installation process.

In nixpkgs, this is possible by setting the boot.loader.systemd-boot.extraInstallCommands option, but lanzaboote does not make use of it.

I don't think there's any clean way to do this right now, since lanzaboote uses boot.loader.external for itself.

Would it make sense for lanzaboote to make use of this option, adding its contents to the end of the install hook; or perhaps creating a new one for itself, while still using the nixpkgs option for its default value?

It would be great if there was a way of directly extending the bootloader installation process. In nixpkgs, this is possible by setting the `boot.loader.systemd-boot.extraInstallCommands` option, but lanzaboote does not make use of it. I don't think there's any clean way to do this right now, since lanzaboote uses `boot.loader.external` for itself. Would it make sense for lanzaboote to make use of this option, adding its contents to the end of [the install hook](https://github.com/nix-community/lanzaboote/blob/0e6457c98547ec8866714d4222545e7e8c1ae429/nix/modules/lanzaboote.nix#L125); or perhaps creating a new one for itself, while still using the nixpkgs option for its default value?
kuflierl commented 2024-07-31 14:01:32 +00:00 (Migrated from github.com)

I would also be chuffed if there were a pre-install hook in addition to the post install hook

I would also be chuffed if there were a pre-install hook in addition to the post install hook
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: raito/lanzaboote#375
No description provided.