grub/head build with pre-release GCC10 ; fail @ "grub-core/disk/mdraid1x_linux.c:181:15: error: ..."

2020-03-23 Thread PGNet Dev
 building curren head, git clone https://git.savannah.gnu.org/git/grub.git cd grub git describe grub-2.04-71-g552c9fd08 with soon(ish)-to-be-release GCC10 gcc --version gcc (SUSE Linux) 10.0.1 20200320 (experimental) [revision 7d45

Re: [PATCH] grub.d: Use linuxefi and initrdefi commands if platform is efi

2020-03-23 Thread Javier Martinez Canillas
On 3/23/20 7:31 PM, Julian Andres Klode wrote: > On Mon, Mar 23, 2020 at 07:26:59PM +0100, Javier Martinez Canillas wrote: >> On 3/23/20 12:53 PM, Tianjia Zhang wrote: >>> When the platform is EFI platform, use 'linuxefi' and 'initrdefi' >>> commands instead of 'linux' and 'initrd'. >>> >> >> These

Re: [PATCH] grub.d: Use linuxefi and initrdefi commands if platform is efi

2020-03-23 Thread Julian Andres Klode
On Mon, Mar 23, 2020 at 07:26:59PM +0100, Javier Martinez Canillas wrote: > On 3/23/20 12:53 PM, Tianjia Zhang wrote: > > When the platform is EFI platform, use 'linuxefi' and 'initrdefi' > > commands instead of 'linux' and 'initrd'. > > > > These two commands are added by most distros as a part o

Re: [PATCH] grub.d: Use linuxefi and initrdefi commands if platform is efi

2020-03-23 Thread Javier Martinez Canillas
On 3/23/20 12:53 PM, Tianjia Zhang wrote: > When the platform is EFI platform, use 'linuxefi' and 'initrdefi' > commands instead of 'linux' and 'initrd'. > These two commands are added by most distros as a part of their Secure Boot patch-set, but aren't present in upstream GRUB so this patch doesn

Re: [PATCH] efi/tpm: Fix memory leak in grub_tpm1/2_log_event()

2020-03-23 Thread Javier Martinez Canillas
Hello Tianjia, On 3/23/20 12:52 PM, Tianjia Zhang wrote: > The memory requested for the event is not released here, > causing memory leaks. This patch fixes this problem. > > Signed-off-by: Jia Zhang > Signed-off-by: Tianjia Zhang > --- Reviewed-by: Javier Martinez Canillas Best regards, --

Re: [PATCH] grub.d: Use linuxefi and initrdefi commands if platform is efi

2020-03-23 Thread Paul Menzel
Dear Tianjia, Am 23.03.20 um 12:53 schrieb Tianjia Zhang: When the platform is EFI platform, use 'linuxefi' and 'initrdefi' commands instead of 'linux' and 'initrd'. Signed-off-by: Jia Zhang Signed-off-by: Tianjia Zhang --- util/grub.d/10_linux.in | 11 +-- 1 file changed, 9 inser

[PATCH] grub.d: Use linuxefi and initrdefi commands if platform is efi

2020-03-23 Thread Tianjia Zhang
When the platform is EFI platform, use 'linuxefi' and 'initrdefi' commands instead of 'linux' and 'initrd'. Signed-off-by: Jia Zhang Signed-off-by: Tianjia Zhang --- util/grub.d/10_linux.in | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/util/grub.d/10_linux.in b

[PATCH] efi/tpm: Fix memory leak in grub_tpm1/2_log_event()

2020-03-23 Thread Tianjia Zhang
The memory requested for the event is not released here, causing memory leaks. This patch fixes this problem. Signed-off-by: Jia Zhang Signed-off-by: Tianjia Zhang --- grub-core/commands/efi/tpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grub-core/commands/efi/tpm.c b/grub-core/com