grub-devel
[Top][All Lists]
Advanced

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

[PATCH] grub-install-common: Fix the key of the --core-compress option


From: Ákos Nagy
Subject: [PATCH] grub-install-common: Fix the key of the --core-compress option
Date: Fri, 5 May 2023 14:04:28 +0200

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




reply via email to

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