shutdown: use correct kexec options

The kexec man page is awful and misleading.
This commit is contained in:
Brett Witherspoon
2011-01-19 00:35:21 +01:00
committed by Lennart Poettering
parent c32e0c40f7
commit f8d0ceb46b
+1 -1
View File
@@ -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;
}