From 98d52feb9681d8e281addc1c907fc30a19b50105 Mon Sep 17 00:00:00 2001 From: Thomas Blume Date: Wed, 12 Aug 2015 08:11:15 +0200 Subject: 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. --- src/systemctl/systemctl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3-54-g00ecf