[PATCH v3 00/16] First Distro-agnostic series taken from Fedora Rawhide

2024-10-10 Thread Leo Sandoval
This is the first patch series, taken from Fedora Rawhide spec [1] that is distro-agnostic. The goal is to merge most of them so all the community/distros would benefit. Changes since v2: - modified 0003-Disable-GRUB-video-support-for-IBM-power-machines.patch shorter commit description

[PATCH v3 12/16] 10_linux.in: Don't require a password to boot entries generated by grub-mkconfig.

2024-10-10 Thread Leo Sandoval
From: Peter Jones When we set a password, we just want that to mean you can't /edit/ an entry. Resolves: rhbz#1030176 Signed-off-by: Peter Jones --- util/grub.d/10_linux.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in in

[PATCH v3 08/16] normal: Add fw_path variable (revised)

2024-10-10 Thread Leo Sandoval
From: Paulo Flabiano Smorigo This patch makes grub look for its config file on efi where the app was found. It was originally written by Matthew Garrett, and adapted to fix the "No modules are loaded on grub2 network boot" issue: https://bugzilla.redhat.com/show_bug.cgi?id=857936 Signed-off-by:

[PATCH v3 01/16] ieee1275/openfw: IBM client architecture (CAS) reboot support

2024-10-10 Thread Leo Sandoval
From: Paulo Flabiano Smorigo This is an implementation of IBM client architecture (CAS) reboot for GRUB. There are cases where the POWER firmware must reboot in order to support specific features requested by a kernel. The kernel calls ibm,client-architecture-support and it may either return or

[PATCH v3 03/16] ieee1275: Disable GRUB video support for IBM power machines

2024-10-10 Thread Leo Sandoval
From: Paulo Flabiano Smorigo GRUB gets the display card node address from OpenFirmware, however this address is truncated to 32-bits (OpenFirmware works on 32-bits, so GRUB) effectively getting an invalid address. This change disables the video support on IBM power machines. More details can be f

[PATCH v3 14/16] normal/main: Try mac/guid/etc before grub.cfg on tftp config files.

2024-10-10 Thread Leo Sandoval
From: Peter Jones Signed-off-by: Peter Jones --- grub-core/normal/main.c | 93 ++--- 1 file changed, 49 insertions(+), 44 deletions(-) diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c index fd8be685a..973e7d733 100644 --- a/grub-core/normal/mai

[PATCH v3 11/16] Makefile.common: Add .eh_frame to list of relocations stripped

2024-10-10 Thread Leo Sandoval
From: Fedora Ninjas Signed-off-by: Peter Jones --- conf/Makefile.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/Makefile.common b/conf/Makefile.common index b8f216f6c..ece9ed8a1 100644 --- a/conf/Makefile.common +++ b/conf/Makefile.common @@ -41,7 +41,7 @@ CFLAG

[PATCH v3 06/16] efi/init: Make efi machines load an env block from a variable

2024-10-10 Thread Leo Sandoval
From: Peter Jones Signed-off-by: Peter Jones --- grub-core/Makefile.core.def | 1 + grub-core/kern/efi/init.c | 34 ++ 2 files changed, 35 insertions(+) diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def index 1571421d7..0bffbfea9 100644 -

[PATCH v3 10/16] 10_linux.in: Add devicetree loading

2024-10-10 Thread Leo Sandoval
From: Peter Jones Signed-off-by: Peter Jones Switch to use APM Mustang device tree, for hardware testing. Signed-off-by: David A. Marlin Use the default device tree from the grub default file instead of hardcoding a value. Signed-off-by: David A. Marlin --- util/grub-mkconfig.in | 3 +

[PATCH v3 05/16] misc: Make "exit" take a return code.

2024-10-10 Thread Leo Sandoval
From: Peter Jones This adds "exit" with a return code. With this patch, any "exit" command /may/ include a return code, and on platforms that support returning with an exit status, we will do so. By default we return the same exit status we did before this patch. Signed-off-by: Peter Jones --

[PATCH v3 15/16] 10_linux.in: Generate OS and CLASS in 10_linux from /etc/os-release

2024-10-10 Thread Leo Sandoval
From: Peter Jones This makes us use pretty names in the titles we generate in grub2-mkconfig when GRUB_DISTRIBUTOR isn't set. Resolves: rhbz#996794 Signed-off-by: Peter Jones --- util/grub.d/10_linux.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/grub.d/10_linux

[PATCH v3 09/16] commands: Pass "\x[[:hex:]][[:hex:]]" straight through unmolested.

2024-10-10 Thread Leo Sandoval
From: Peter Jones Don't munge raw spaces when we're doing our cmdline escaping (#923374) Signed-off-by: Peter Jones --- grub-core/commands/wildcard.c | 16 - grub-core/lib/cmdline.c | 25 ++-- grub-core/script/execute.c| 43 ++--

[PATCH v3 04/16] configure.ac: Move bash completion script

2024-10-10 Thread Leo Sandoval
From: Peter Jones Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=922997 Apparently these go in a new place now. --- configure.ac | 11 +++ util/bash-completion.d/Makefile.am | 1 - 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/configure.ac

[PATCH v3 16/16] normal/main: Try $prefix if $fw_path doesn't work.

2024-10-10 Thread Leo Sandoval
From: Peter Jones Related: rhbz#1148652 Signed-off-by: Peter Jones --- grub-core/kern/ieee1275/init.c | 28 +++ grub-core/net/net.c| 2 +- grub-core/normal/main.c| 132 - 3 files changed, 81 insertions(+), 81 deletions(-) diff --git a

[PATCH v3 07/16] 20_ppc_terminfo.in: Migrate ieee1275/PPC from Yaboot to Grub2

2024-10-10 Thread Leo Sandoval
From: Mark Hamzy Add configuration support for ieee1275/PPC ofconsole serial terminal. Signed-off-by: Mark Hamzy Signed-off-by: Robbie Harwood --- Makefile.util.def | 7 ++ util/grub.d/20_ppc_terminfo.in | 114 + 2 files changed, 121 insertions(+

[PATCH v3 13/16] normal/main: fw_path prefix when fallback searching for grub config

2024-10-10 Thread Leo Sandoval
From: Fedora Ninjas When PXE booting via UEFI firmware, grub was searching for grub.cfg in the fw_path directory where the grub application was found. If that didn't exist, a fallback search would look for config file names based on MAC and IP address. However, the search would look in the prefix

[PATCH v3 02/16] term/terminfo: for ppc, reset console display attr when clear screen

2024-10-10 Thread Leo Sandoval
From: Paulo Flabiano Smorigo v2: Also use \x0c instead of a literal ^L to make future patches less awkward. This should fix this bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=908519 Signed-off-by: Peter Jones Signed-off-by: Paulo Flabiano Smorigo Signed-off-by: Robbie Harwood --- gr

Re: [PATCH v2 09/17] commands: Pass "\x[[:hex:]][[:hex:]]" straight through unmolested.

2024-10-10 Thread Leo Sandoval
On Mon, Oct 7, 2024 at 1:05 PM wrote: > On 10/7/24 11:18 AM, Leo Sandoval wrote: > > From: Peter Jones > > > > Don't munge raw spaces when we're doing our cmdline escaping (#923374) > > > > Signed-off-by: Peter Jones > > --- > > grub-core/commands/wildcard.c | 16 - > > grub-core

Re: [PATCH v1 37/37] chainloader: Use grub_efi_...() memory helpers where reasonable.

2024-10-10 Thread Leo Sandoval
On Mon, Oct 7, 2024 at 1:44 PM wrote: > On 10/7/24 11:21 AM, Leo Sandoval wrote: > > From: Peter Jones > > > > This uses grub_efi_allocate_pool(), grub_efi_free_pool(), and > > grub_efi_free_pages() instead of open-coded efi_call_N() calls, so we > > get more reasonable type checking. > > While