]> git.ipfire.org Git - thirdparty/grub.git/commit
grub-mkconfig/20_linux_xen: Support multiple early initrd images
authorPeter Große <pegro@friiks.de>
Sat, 8 Dec 2018 13:35:03 +0000 (14:35 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 14 Jan 2019 10:56:19 +0000 (11:56 +0100)
commite86f6aafb8de4123a8738e540f83afc9f407399a
tree86cdaa430ec4bb17d59e89f60bce7085a126dbd1
parentad0ea7c444234ca519a3b528ddc70fff45810e25
grub-mkconfig/20_linux_xen: Support multiple early initrd images

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.

Xen has also support to load microcode updates provided as additional
modules by the bootloader.

There are two environment variables provided for declaring the early
images.

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

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

This is basically a copy of a698240d "grub-mkconfig/10_linux: Support
multiple early initrd images" by Matthew S. Turnbull.

Signed-off-by: Peter Große <pegro@friiks.de>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
util/grub.d/20_linux_xen.in