grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 7/8] efi: implement LoadFile2 initrd loading protocol for


From: Heinrich Schuchardt
Subject: Re: [PATCH v3 7/8] efi: implement LoadFile2 initrd loading protocol for Linux
Date: Fri, 2 Sep 2022 12:48:10 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1

On 8/18/22 16:51, Ard Biesheuvel wrote:
Recent Linux kernels will invoke the LoadFile2 protocol installed on
a well-known vendor media path to load the initrd if it is exposed by
the firmware. Using this method is preferred for two reasons:
- the Linux kernel is in charge of allocating the memory, and so it can
   implement any placement policy it wants (given that these tend to
   change between kernel versions),
- it is no longer necessary to modify the device tree provided by the
   firmware.

So let's install this protocol when handling the 'initrd' command if
such a recent kernel was detected (based on the PE/COFF image version),
and defer loading the initrd contents until the point where the kernel
invokes the LoadFile2 protocol.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>

Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]