[PATCH 1/6] kexec: Fix the -? option

Geoff Levand geoff at infradead.org
Thu Oct 3 16:19:20 EDT 2013


Add '?' to the short option string.  Fixes runtime errors like
these:

  kexec: invalid option -- '?'

Signed-off-by: Geoff Levand <geoff at infradead.org> for Huawei, Linaro
---
 kexec/kexec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kexec/kexec.h b/kexec/kexec.h
index 715b568..2904e03 100644
--- a/kexec/kexec.h
+++ b/kexec/kexec.h
@@ -230,7 +230,7 @@ extern int file_types;
 	{ "reuseinitrd",	0, 0, OPT_REUSE_INITRD }, \
 	{ "debug",		0, 0, OPT_DEBUG }, \
 
-#define KEXEC_OPT_STR "hvdfxluet:p"
+#define KEXEC_OPT_STR "h?vdfxluet:p"
 
 extern void die(const char *fmt, ...)
 	__attribute__ ((format (printf, 1, 2)));
-- 
1.8.1.2





More information about the kexec mailing list