• Matthew S. Turnbull's avatar
    grub-mkconfig/10_linux: Support multiple early initrd images · a698240d
    Matthew S. Turnbull authored
    Add support for multiple, shared, early initrd images. These early
    images will be loaded in the order declared, and all will be loaded
    before the initrd image.
    While many classes of data can be provided by early images, the
    immediate use case would be for distributions to provide CPU
    microcode to mitigate the Meltdown and Spectre vulnerabilities.
    There are two environment variables provided for declaring the early
    * GRUB_EARLY_INITRD_LINUX_STOCK is for the distribution declare
      images that are provided by the distribution or installed packages.
      If undeclared, this will default to a set of common microcode image
    * GRUB_EARLY_INITRD_LINUX_CUSTOM is for user created images. User
      images will be loaded after the stock images.
    These separate configurations allow the distribution and user to
    declare different image sets without clobbering each other.
    This also makes a minor update to ensure that UUID partition labels
    stay disabled when no initrd image is found, even if early images are
    This is a continuation of a previous patch published by Christian
    Hesse in 2016:
    Down stream Gentoo bug:
    https://bugs.gentoo.org/645088Signed-off-by: default avatarRobin H. Johnson <robbat2@gentoo.org>
    Signed-off-by: default avatarMatthew S. Turnbull <sparky@bluefang-logic.com>
    Reviewed-by: default avatarDaniel Kiper <daniel.kiper@oracle.com>
10_linux.in 9.68 KB