From: Andrei Borzenkov Date: Sun, 11 Oct 2015 18:17:37 +0000 (+0300) Subject: install: --compress argument is not optional X-Git-Tag: 2.02-beta3~212 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76197d9be648adef902a86181493b297b3edce88;p=thirdparty%2Fgrub.git install: --compress argument is not optional Fixes crash if argument is not specified. Also use `|' to separate choices in list of compression methods to align it with --core-compress. --- diff --git a/include/grub/util/install.h b/include/grub/util/install.h index aedcd29f9..5ca4811cd 100644 --- a/include/grub/util/install.h +++ b/include/grub/util/install.h @@ -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", \