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:
parent
c32e0c40f7
commit
f8d0ceb46b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user