1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

shutdown: use correct kexec options

The kexec man page is awful and misleading.
This commit is contained in:
Brett Witherspoon 2011-01-14 21:50:26 -06:00 committed by Lennart Poettering
parent c32e0c40f7
commit f8d0ceb46b

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;
}