* [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
* Re: [PATCH v0] Make clear that passing --grub-mkimage to grub-install is not supported.
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
0 siblings, 1 reply; 3+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2013-12-02 19:20 UTC (permalink / raw)
To: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 1225 bytes --]
On 02.12.2013 20:13, Jon McCune wrote:
> 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.
>
The reason for this option was to specify where grub-mkimage is located.
Your ways of using it were unsupported interface abuses. I have never
seen any script abusing grub-mkimage such way (that is other than yours).
> 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;
> }
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 291 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v0] Make clear that passing --grub-mkimage to grub-install is not supported.
2013-12-02 19:20 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2013-12-02 19:29 ` Jonathan McCune
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan McCune @ 2013-12-02 19:29 UTC (permalink / raw)
To: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 701 bytes --]
On Mon, Dec 2, 2013 at 11:20 AM, Vladimir 'φ-coder/phcoder' Serbinenko <
phcoder@gmail.com> wrote:
> On 02.12.2013 20:13, Jon McCune wrote:
> > 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.
> >
> The reason for this option was to specify where grub-mkimage is located.
> Your ways of using it were unsupported interface abuses. I have never
> seen any script abusing grub-mkimage such way (that is other than yours).
>
Okay, nevermind this patch then.
-Jon
[-- Attachment #2: Type: text/html, Size: 1102 bytes --]
^ permalink raw reply [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).