All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] grub-install-common: Fix the key of the --core-compress option
@ 2023-05-05 12:04 Ákos Nagy
  2023-05-09 14:08 ` Daniel Kiper
  0 siblings, 1 reply; 2+ messages in thread
From: Ákos Nagy @ 2023-05-05 12:04 UTC (permalink / raw)
  To: grub-devel

Commit f23bc6510 ("Transform -C option to grub-mkstandalone to
--core-compress available in all grub-install flavours.") declared a new
long option for specifying the compression method to use for the core
image.

However, the option key has not been replaced in the parser function, it
still expects the old one formerly used by grub-mkstandalone. Because of
this the option is not recognized by any of the utils for which it is
listed as supported.

Signed-off-by: Ákos Nagy <nagyakos@outlook.com>
---
 util/grub-install-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/grub-install-common.c b/util/grub-install-common.c
index e45fb2903..383626d5a 100644
--- a/util/grub-install-common.c
+++ b/util/grub-install-common.c
@@ -472,7 +472,7 @@ grub_install_parse (int key, char *arg)
 {
   switch (key)
     {
-    case 'C':
+    case GRUB_INSTALL_OPTIONS_INSTALL_CORE_COMPRESS:
       if (grub_strcmp (arg, "xz") == 0)
 	{
 #ifdef HAVE_LIBLZMA
-- 
2.40.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] grub-install-common: Fix the key of the --core-compress option
  2023-05-05 12:04 [PATCH] grub-install-common: Fix the key of the --core-compress option Ákos Nagy
@ 2023-05-09 14:08 ` Daniel Kiper
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Kiper @ 2023-05-09 14:08 UTC (permalink / raw)
  To: Ákos Nagy; +Cc: grub-devel

On Fri, May 05, 2023 at 02:04:28PM +0200, Ákos Nagy wrote:
> Commit f23bc6510 ("Transform -C option to grub-mkstandalone to
> --core-compress available in all grub-install flavours.") declared a new
> long option for specifying the compression method to use for the core
> image.
>
> However, the option key has not been replaced in the parser function, it
> still expects the old one formerly used by grub-mkstandalone. Because of
> this the option is not recognized by any of the utils for which it is
> listed as supported.
>
> Signed-off-by: Ákos Nagy <nagyakos@outlook.com>

Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>

Daniel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-05-09 14:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-05 12:04 [PATCH] grub-install-common: Fix the key of the --core-compress option Ákos Nagy
2023-05-09 14:08 ` Daniel Kiper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.