~jibel/grub2/+git/zfs_fixes_01:ubuntu

Last commit made on 2019-11-18
Get this branch:
git clone -b ubuntu https://git.launchpad.net/~jibel/grub2/+git/zfs_fixes_01
Only Jean-Baptiste Lallement can upload to this branch. If you are Jean-Baptiste Lallement please log in for upload directions.

Branch merges

Branch information

Name:
ubuntu
Repository:
lp:~jibel/grub2/+git/zfs_fixes_01

Recent commits

d22469d... by Jean-Baptiste Lallement

Update changelog

Co-authored-by: Didier Roche <email address hidden>

a447f49... by Jean-Baptiste Lallement

merge patched-ubuntu into ubuntu

0e919e4... 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

9163c6a... 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

00956c9... 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

3609456... 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

b64e645... by Mathieu Trudel-Lapierre

UBUNTU: Temporarily keep grub-install's --auto-nvram.

Signed-off-by: Mathieu Trudel-Lapierre <email address hidden>
Patch-Name: ubuntu-temp-keep-auto-nvram.patch

08c05db... by Mathieu Trudel-Lapierre

UBUNTU: Clear up incorrect spacing when not using early initrds

Signed-off-by: Mathieu Trudel-Lapierre <email address hidden>
Patch-Name: ubuntu-clear-invalid-initrd-spacing.patch

0938057... by Mathieu Trudel-Lapierre

UBUNTU: Have the lzma decompressor image only contain the .text section

Previously binutils/objcopy did that correctly, now it seems to be padding to
an arbitrary size with zeros. Work around this broken by being explicit about
what we want.

Patch-Name: ubuntu-fix-lzma-decompressor-objcopy.patch

Signed-off-by: Mathieu Trudel-Lapierre <email address hidden>

9043aab... by Mathieu Trudel-Lapierre

UBUNTU: grub-mkconfig: leave a trace of what files were sourced to generate the config

Patch-Name: ubuntu-mkconfig-leave-breadcrumbs.patch
Signed-off-by: Mathieu Trudel-Lapierre <email address hidden>