In the situation where ZFS snapshots do not contain a .../etc
directory, the generation of /b/g/grub.cfg silently fails, providing no
"linux" kernel lines in the /b/g/grub.cfg file. This patch prevents this
type of failure from occurring. This issue is especially apparent on
systems running in FIPS mode with ZFS boot+root pools. (LP: #1965983)
Some UEFI implementations (notably U-Boot) don't implement the
SetVariable() runtime service. On these systems the GRUB installation
must be completed manually. Write a warning in this case but avoid
throwing an error. (LP: #1965288)
Signed-off-by: Heinrich Schuchardt <email address hidden>
* Upstream patches are added to build GRUB for RISC-V.
* Existing patches supporting secure boot via Shim are adjusted.
* New code to launch EFI binaries is provided in
grub-core/loader/efi/peimage.c
Signed-off-by: Heinrich Schuchardt <email address hidden>
Pending upstream patches use file name grub-core/loader/efi/linux.c.
To avoid merge conflicts we should use a different name (linux_sb.c)
for the file implementing our secure boot validation.
Signed-off-by: Heinrich Schuchardt <email address hidden>
Only run os-prober on first run and if it previously found other OS
This ensures that we do not regress the user experience where it
matters (installing Ubuntu alongside existing systems), but prevents
us from running os-prober if there was no other OS installed during
installation time.