~dannf/grub:sb

Last commit made on 2020-03-03
Get this branch:
git clone -b sb https://git.launchpad.net/~dannf/grub
Only dann frazier can upload to this branch. If you are dann frazier please log in for upload directions.

Branch merges

Branch information

Name:
sb
Repository:
lp:~dannf/grub

Recent commits

05da553... by dann frazier

change version to 2.04-1ubuntu22 (UNRELEASED)
Update our EFI Secure Boot patch set on rhboot/fedora-32, fixing
arm64 Secure Boot support. LP: #1862279.

13d173f... by Dimitri John Ledkov

uefi-firmware: rename fwsetup menuentry to UEFI Firmware Settings

LP: #1864547

30005f2... by Heinrich Schuchardt

lsefisystab: Add support for device tree table

The device tree may passed by the firmware as UEFI configuration
table. Let lsefisystab display a short text and not only the GUID
for the device tree.

Here is an example output:

  grub> lsefisystab
  Address: 0xbff694d8
  Signature: 5453595320494249 revision: 00020046
  Vendor: Das U-Boot, Version=20190700
  2 tables:
  0xbe741000 eb9d2d31-2d88-11d3-9a160090273fc14d SMBIOS
  0x87f00000 b1b621d5-f19c-41a5-830bd9152c69aae0 DEVICE TREE

Signed-off-by: Heinrich Schuchardt <email address hidden>
Reviewed-by: Leif Lindholm <email address hidden>
Reviewed-by: Daniel Kiper <email address hidden>
(cherry picked from commit 15cfd02b74e862bda20626a6e4e2f8a1d201733a)
Patch-Name: cherrypick-lsefisystab-show-dtb.patch

55d823e... by dm0

smbios: Add a module for retrieving SMBIOS information

The following are two use cases from Rajat Jain <email address hidden>:

  1) We have a board that boots Linux and this board itself can be plugged
     into one of different chassis types. We need to pass different
     parameters to the kernel based on the "CHASSIS_TYPE" information
     that is passed by the bios in the DMI/SMBIOS tables.

  2) We may have a USB stick that can go into multiple boards, and the
     exact kernel to be loaded depends on the machine information
     (PRODUCT_NAME etc) passed via the DMI.

Signed-off-by: David Michael <email address hidden>
Reviewed-by: Daniel Kiper <email address hidden>
(cherry picked from commit 688023cd0ac4c985fd0e2ec477fcf1ec33a0e49c)
Patch-Name: cherrypick-smbios-module.patch

380f130... by dm0

lsefisystab: Define SMBIOS3 entry point structures for EFI

This adds the GUID and includes it in lsefisystab output.

Signed-off-by: David Michael <email address hidden>
Reviewed-by: Leif Lindholm <email address hidden>
Reviewed-by: Daniel Kiper <email address hidden>
(cherry picked from commit 261df54f170c6d87258eb37ef17d62690720696b)
Patch-Name: cherrypick-lsefisystab-define-smbios3.patch

0ad8a2b... by Dimitri John Ledkov

UBUNTU: Allow chainloading EFI apps from loop mounts.

Proposed at https://github.com/rhboot/grub2/pull/65.patch

Signed-off-by: Dimitri John Ledkov <email address hidden>
Patch-Name: ubuntu-efi-allow-loopmount-chainload.patch

6e75d05... by Mathieu Trudel-Lapierre

tpm: Pass unknown error as non-fatal, but debug print the error we got

Signed-off-by: Mathieu Trudel-Lapierre <email address hidden>
Patch-Name: ubuntu-tpm-unknown-error-non-fatal.patch

24962e1... by Rafael David Tinoco

Skip /dev/disk/by-id/lvm-pvm-uuid entries from device iteration

The following LVM2 commit:

commit 417e52c13a8156b11c25c411d44bda8b32bf87e4
Author: Peter Rajnoha <email address hidden>
Date: Tue Feb 18 07:27:21 2014

    udev: create /dev/disk/by-id/lvm-pv-uuid-<PV_UUID> symlink for a PV

    We already have /dev/disk/by-id/dm-uuid-... (which encompasses the
    VG UUID and LV UUID in case of LVs since the mapping's UUID is
    VG+LV UUID together) and /dev/disk/by-id/dm-name-... (which encompasses
    the VG and LV name in case of LVs).

    This patch addds /dev/disk/by-id/lvm-pv-uuid-<PV_UUID> that completes
    this scheme and makes navigation a bit easier using PV UUIDs since
    one can navigate using PV UUIDs only and there's no need to do extra
    PV UUID <--> kernel name matching (the PV UUID is stable across reboots).
    This may come in handy in various scripts.

    Since we already have the PV UUID stored in udev database (as a result
    of blkid call - returned in ID_FS_UUID blkid's variable), this operation
    is very cheap indeed, just creating the extra one symlink.

creates a udev rule that populates /dev/disk/by-id with LVM PVs
according to discovered UUIDs. That will trigger a bad logic in
debian-installer as the installer depends on grub_util_iterate_devices()
logic to discover the disks that can have grub installed.

This change only ignores those entries, so debian-installer bad
execution path is not triggered, just like grub_iterate_devices()
already does for other similar entries, like the partition ones.

Author: Rafael David Tinoco <email address hidden>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1838525
Last-Update: 2019-10-07
Patch-Name: ubuntu-skip-disk-by-id-lvm-pvm-uuid-entries.patch

4168faa... by Michael Hudson-Doyle

UBUNTU: Boot from multipath-dependent symlink when / is multipathed.

If / is multipathed, there will be multiple paths to the partition, so
using root=UUID= exposes the boot process to udev races. In addition
grub-probe --target device / in this case reports /dev/dm-1 or similar
-- better to use a symlink that depends on the multipath name.

Signed-off-by: Michael Hudson-Doyle <email address hidden>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1429327
Patch-Name: ubuntu-boot-from-multipath-dependent-symlink.patch

0762755... by Dimitri John Ledkov

Add devicetree command, if a dtb is present.

Specically support dtb paths as installed by flash-kernel.

Signed-off-by: Dimitri John Ledkov <email address hidden>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929427
Bug-Upstream: https://lists.gnu.org/archive/html/grub-devel/2019-05/msg00121.html
Patch-Name: ubuntu-add-devicetree-command-support.patch