summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorThomas Blume <Thomas.Blume@suse.com>2015-08-12 08:11:15 +0200
committertblume <Thomas.Blume@suse.com>2015-08-12 08:11:15 +0200
commit98d52feb9681d8e281addc1c907fc30a19b50105 (patch)
tree8a42de9e133c49836967413a705904544d390b60 /src/systemctl
parent3f1818cf70ac34cf93f1f033b4f1bbb7a89b3dff (diff)
support reboot -f for kexec kernel
Fix error message: -->-- Code should not be reached 'Unknown action.' at src/systemctl/systemctl.c:6382, function halt_now(). Aborting. Aborted --<-- when executing 'reboot -f' from a system running a kexec kernel.
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 4e850ea1cf..1a9dbadbe1 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -7292,6 +7292,7 @@ static int halt_now(enum action a) {
reboot(RB_POWER_OFF);
return -errno;
+ case ACTION_KEXEC:
case ACTION_REBOOT: {
_cleanup_free_ char *param = NULL;