]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
support reboot -f for kexec kernel 938/head
authorThomas Blume <Thomas.Blume@suse.com>
Wed, 12 Aug 2015 06:11:15 +0000 (08:11 +0200)
committertblume <Thomas.Blume@suse.com>
Wed, 12 Aug 2015 06:11:15 +0000 (08:11 +0200)
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

index 4e850ea1cfa1078e7e5dc4edb020806e8c377a7d..1a9dbadbe143c8c3a07e202b1f40014d5787e395 100644 (file)
@@ -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;