From 76197d9be648adef902a86181493b297b3edce88 Mon Sep 17 00:00:00 2001 From: Andrei Borzenkov Date: Sun, 11 Oct 2015 21:17:37 +0300 Subject: [PATCH] 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. --- include/grub/util/install.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", \