From f8d0ceb46b8c617abce8eaf99812ca7f4ce1c658 Mon Sep 17 00:00:00 2001 From: Brett Witherspoon Date: Fri, 14 Jan 2011 21:50:26 -0600 Subject: shutdown: use correct kexec options The kexec man page is awful and misleading. --- src/shutdown.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shutdown.c b/src/shutdown.c index 10d8413092..94deb85441 100644 --- a/src/shutdown.c +++ b/src/shutdown.c @@ -349,7 +349,7 @@ int main(int argc, char *argv[]) { log_warning("kexec failed. Falling back to normal reboot."); } else { /* Child */ - const char *args[5] = { "/sbin/kexec", "-e", "-f", "-x", NULL }; + const char *args[3] = { "/sbin/kexec", "-e", NULL }; execv(args[0], (char * const *) args); return EXIT_FAILURE; } -- cgit v1.2.3-54-g00ecf