Andrew Ammerlaan 940eefc079 sys-boot/grub: implement USE=secureboot via grub-mkstandalone
This makes it possible to create a pre-built grub EFI executable signed for
secureboot via portage/`secureboot.eclass`.

It greatly simplifies setting up grub with secureboot, which is now a bit of a
tricky section in the handbook, and makes it possible to get a signed grub EFI
executable on systems that do not have the `SECUREBOOT_SIGN_KEY` available via
a `sys-boot/grub[secureboot]` binpkg.

Unfortunately, since the use of boot partitions, and the mounting point of
ESP's varies between systems we cannot rely on the default
`/boot/grub/grub.cfg` location to configure grub. Instead the standalone
executable reads the `grub.cfg` in the same directory it is in.

It is then up to the user to either:
- configure `sys-kernel/installkernel` to put the `grub.cfg` in a different
	location via `GRUB_CFG=`, or
- add a little `grub.cfg` that chainloads the real `grub.cfg`.

To make this even easier we could write some wrapper around grub-install which
would optionally install the prebuilt standalone EFI executable plus an
appropriate little `grub.cfg` to chainload the usual `grub.cfg`. But lets
leave that for later.

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/38007
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
2024-08-07 21:21:21 +02:00
2024-07-22 22:42:23 +09:00
2024-07-20 05:38:12 +01:00
2024-08-01 22:23:04 +03:00
2024-08-06 08:27:44 +01:00
2024-08-05 20:22:28 +02:00
2024-08-07 13:28:17 -05:00
2024-08-07 17:14:22 +02:00
2024-08-05 10:59:59 +02:00
2024-08-05 20:22:22 +02:00
2024-08-04 20:15:39 -04:00
2024-08-07 10:32:39 -04:00
2024-08-02 20:27:23 +02:00
2024-07-26 21:50:00 +02:00
2024-08-06 14:09:00 +02:00
2024-07-12 15:09:34 +03:00
2024-07-20 14:22:23 +03:00
2024-08-02 17:41:56 +02:00
2024-07-29 10:33:49 +03:00
2024-08-01 17:29:05 +02:00
2024-08-01 17:29:05 +02:00
2024-07-28 05:15:17 +01:00
2024-08-07 01:03:56 +02:00
2024-07-30 21:00:43 +02:00
2024-08-07 13:28:17 -05:00
2024-08-06 05:26:19 -04:00
2024-07-08 09:17:04 -07:00
2024-07-31 11:23:08 +02:00
2024-08-05 11:50:32 -07:00
2024-08-03 20:22:37 +02:00
2024-08-05 09:02:44 +03:00
…
S
Description
No description provided
9.8 GiB
Languages
Shell 97.9%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%