From: Brett Witherspoon Date: Sat, 15 Jan 2011 03:50:26 +0000 (-0600) Subject: shutdown: use correct kexec options X-Git-Tag: v17~19 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8d0ceb46b8c617abce8eaf99812ca7f4ce1c658;p=systemd shutdown: use correct kexec options The kexec man page is awful and misleading. --- diff --git a/src/shutdown.c b/src/shutdown.c index 10d84130..94deb854 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; }