]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
util/grub-install-common: Fix the key of the --core-compress option
authorÁkos Nagy <nagyakos@outlook.com>
Fri, 5 May 2023 12:04:28 +0000 (14:04 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 17 May 2023 16:19:02 +0000 (18:19 +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>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
util/grub-install-common.c

index 57ac4456cec567848ce5af04331356d123c37ed1..52a29d1cb8e05d0811746d71808f5906db3f801a 100644 (file)
@@ -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