grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v0] Make clear that passing --grub-mkimage to grub-install is not supported.
@ 2013-12-02 19:13 Jon McCune
  2013-12-02 19:20 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 3+ messages in thread
From: Jon McCune @ 2013-12-02 19:13 UTC (permalink / raw)
  To: grub-devel; +Cc: Jon McCune

A reasonable alternative would be to completely remove all traces
of --grub-mkimage, and simply have it fail like any other unrecognized
flag to grub-install, but this will not be as clear to those who may
go looking for what has happened to --grub-mkimage.

Signed-off-by: Jon McCune <jonmccune@google.com>
---
 util/grub-install-common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/util/grub-install-common.c b/util/grub-install-common.c
index 03c6f13..fcb4d66 100644
--- a/util/grub-install-common.c
+++ b/util/grub-install-common.c
@@ -359,7 +359,8 @@ grub_install_parse (int key, char *arg)
 	}
       grub_util_error (_("Unrecognized compression `%s'"), arg);
     case GRUB_INSTALL_OPTIONS_GRUB_MKIMAGE:
-      return 1;
+      grub_util_error (_("Option --grub-mkimage is no longer supported"));
+      return 0;
     default:
       return 0;
     }
-- 
1.8.4.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-02 19:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-02 19:13 [PATCH v0] Make clear that passing --grub-mkimage to grub-install is not supported Jon McCune
2013-12-02 19:20 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-02 19:29   ` Jonathan McCune

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).