~arbell/grub:lp1965983

Last commit made on 2022-03-23
Get this branch:
git clone -b lp1965983 https://git.launchpad.net/~arbell/grub
Only Adam Bell can upload to this branch. If you are Adam Bell please log in for upload directions.

Branch merges

Branch information

Name:
lp1965983
Repository:
lp:~arbell/grub

Recent commits

b466085... by Adam Bell

ZFS snapshots causing grub.cfg generation failure

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)

f89a09a... by Dimitri John Ledkov

Do not validate kernels twice.

LP: #1964943

03a1d35... by Heinrich Schuchardt

efivar: check that efivarfs is writeable

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>

5a8f593... by Julian Andres Klode

releasing package grub2 version 2.06-2ubuntu5

5c3c88b... by Julian Andres Klode

Re-enable peimage code on other archs outside secure boot

This allows us to run the new code in the autopkgtest cloud
on arm64.

It should be enabled for secure environments later, once it
recevied security review.

83da65b... by Heinrich Schuchardt

Enable building for RISC-V

The following new packages will be built:

- grub-efi-riscv64-bin
- grub-efi-riscv64-dbg
- grub-efi-riscv64

Signed-off-by: Heinrich Schuchardt <email address hidden>
LP: #1876620

20b3957... by Heinrich Schuchardt

fat: fix listing the root directory

Listing the root directory of a FAT file system fails.
As the EFI system partition uses FAT formatting we need this fixed.

Signed-off-by: Heinrich Schuchardt <email address hidden>

fc012a8... by Heinrich Schuchardt

Add patches for GRUB on RISC-V

* 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>

38ea656... by Heinrich Schuchardt

Rename grub-core/loader/efi/linux.c

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>

533c36f... by Julian Andres Klode

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.

LP: #1955109