From: Thomas Blume Date: Wed, 12 Aug 2015 06:11:15 +0000 (+0200) Subject: support reboot -f for kexec kernel X-Git-Tag: v225~78^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98d52feb9681d8e281addc1c907fc30a19b50105;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 4e850ea1cfa..1a9dbadbe14 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;