[PATCH] grub-core/genmoddep.awk: Replace asorti with portable alternative

2025-06-04 Thread Ismael Luceno
asorti is only implemented by GAWK; replace by the sort system command, so that we can build with other implementations. Fixes: 87648e9c12a3 ("grub-core/genmoddep.awk: Ensure output is deterministic", 2023-06-01) Signed-off-by: Ismael Luceno --- grub-core/genmoddep.awk | 11 -

[PATCH v3 2/2] grub-install: Add point of no return for IEEE1275 on powerpc

2022-09-05 Thread Ismael Luceno
Signed-off-by: Ismael Luceno --- util/grub-install.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util/grub-install.c b/util/grub-install.c index da50bd58b73b..45f549c25867 100644 --- a/util/grub-install.c +++ b/util/grub-install.c @@ -1859,6 +1859,7 @@ main (int argc, char *argv

[PATCH v3 0/2] Fix installation issues on ppc64le

2022-09-05 Thread Ismael Luceno
RUB! error: ../../grub-core/kern/dl.c:380:symbol `grub_disk_get_size' not found. Entering rescue mode... grub rescue> Introduce a point of no return after embedding grub in the PReP partition, and make sure /dev/nvram is functional or fail early. Ismael Luceno (2): grub-insta

[PATCH v3 1/2] grub-install: Ensure a functional /dev/nvram

2022-09-05 Thread Ismael Luceno
This enables an early failure; for i386-ieee1275 and powerpc-ieee1275 on Linux, without /dev/nvram the system may be left in an unbootable state. Signed-off-by: Ismael Luceno --- util/grub-install.c | 24 1 file changed, 24 insertions(+) diff --git a/util/grub

Re: [PATCH 2/2] Ensure nvram is available and functional on IEEE1275

2022-08-29 Thread Ismael Luceno
On Thu, 25 Aug 2022 12:24:17 +0800 Michael Chang wrote: <...> > Apparently there's missing grub_set_install_backup_ponr between > successful image embedding and grub_install_register_ieee1275 and we > should fix that as well. Thanks for the feedback; I've sent v2. <...> > > + if (linux_kmod_lo

[PATCH v2 2/2] grub-install: Ensure a functional /dev/nvram

2022-08-29 Thread Ismael Luceno
This enables an early failure; for i386-ieee1275 and powerpc-ieee1275 on Linux, without /dev/nvram the system may be left in an unbootable state. Signed-off-by: Ismael Luceno --- util/grub-install.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/util/grub-install.c

[PATCH v2 0/2] Fix installation issues on ppc64le

2022-08-29 Thread Ismael Luceno
RUB! error: ../../grub-core/kern/dl.c:380:symbol `grub_disk_get_size' not found. Entering rescue mode... grub rescue> The patches in this series introduce a couple of points of no return before updating the nvram, and make sure /dev/nvram is functional or fail early. Ismael Luc

[PATCH v2 1/2] grub-install: Add missing points of no return for IEEE1275 on i386/powerpc

2022-08-29 Thread Ismael Luceno
Signed-off-by: Ismael Luceno --- util/grub-install.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/grub-install.c b/util/grub-install.c index 7b04bd3c534b..527b85e27aa7 100644 --- a/util/grub-install.c +++ b/util/grub-install.c @@ -1835,6 +1835,7 @@ main (int argc, char *argv

[PATCH 1/2] Add helper to load linux kmods

2022-08-24 Thread Ismael Luceno
The function checks for already loaded (incl. built-in) modules first at /sys/module/, then tries to load it. Abort when unable to load efivarfs/efivars. Signed-off-by: Ismael Luceno --- grub-core/osdep/unix/platform.c | 24 1 file changed, 20 insertions(+), 4

[PATCH 2/2] Ensure nvram is available and functional on IEEE1275

2022-08-24 Thread Ismael Luceno
escue> Signed-off-by: Ismael Luceno --- grub-core/osdep/unix/platform.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/grub-core/osdep/unix/platform.c b/grub-core/osdep/unix/platform.c index a5bf064b7cf5..fd23176e58a0 100644 --- a/grub-core/osdep/unix/platform.c +++ b/grub-co

[PATCH 0/2] Fix installation issues on ppc64le

2022-08-24 Thread Ismael Luceno
When the /dev/nvram device is unavailable, the installation fails and leaves the system in an unbootable state. The patches in this series introduce a handler for the boilerplate code and make sure nvram is available. Ismael Luceno (2): Add helper to load linux kmods Ensure nvram is

[RESEND PATCH] templates: Set defaults using var substitution

2022-08-24 Thread Ismael Luceno
Signed-off-by: Ismael Luceno --- util/grub.d/10_linux.in | 6 ++ util/grub.d/20_linux_xen.in | 6 ++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in index c6a1ec935bfc..321e590da192 100644 --- a/util/grub.d/10_linux.in