grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v0] Make clear that passing --grub-mkimage to grub-install is not


From: Jon McCune
Subject: [PATCH v0] Make clear that passing --grub-mkimage to grub-install is not supported.
Date: Mon, 2 Dec 2013 11:13:15 -0800

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 <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]