]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
install: --compress argument is not optional
authorAndrei Borzenkov <arvidjaar@gmail.com>
Sun, 11 Oct 2015 18:17:37 +0000 (21:17 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Sun, 11 Oct 2015 18:17:37 +0000 (21:17 +0300)
Fixes crash if argument is not specified. Also use `|' to separate choices
in list of compression methods to align it with --core-compress.

include/grub/util/install.h

index aedcd29f905ad4abb89489f9a3d0b142c7894367..5ca4811cd130f6810f07e6fbce89af1de36827c7 100644 (file)
@@ -39,7 +39,7 @@
   { "locales", GRUB_INSTALL_OPTIONS_INSTALL_LOCALES, N_("LOCALES"),\
     0, N_("install only LOCALES [default=all]"), 1 },                    \
   { "compress", GRUB_INSTALL_OPTIONS_INSTALL_COMPRESS,           \
-    "no,xz,gz,lzo", OPTION_ARG_OPTIONAL,                                 \
+    "no|xz|gz|lzo", 0,                           \
     N_("compress GRUB files [optional]"), 1 },                           \
   {"core-compress", GRUB_INSTALL_OPTIONS_INSTALL_CORE_COMPRESS,                \
       "xz|none|auto",                                          \