systemctl: make sure the kernel is loaded before kexec'ing
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 21 Oct 2017 08:55:32 +0000 (10:55 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 19 Nov 2017 11:33:35 +0000 (12:33 +0100)
commit4bb2e9d466a0f2ed28608e09639b2cedeb08a814
treee064992bfed62eeb996e87023f28b70c4d4b494f
parent1ae17672a23a48185ac951c884beeeab874df22d
systemctl: make sure the kernel is loaded before kexec'ing

We just load the same kernel that would be loaded by default by sd-boot, with
the same options. Changing the kernel or initramfs or options is left for
later.

Now we will refuse to continue if loading fails. This makes 'systemctl kexec'
more predictable: it will not fall back to normal reboot if the kernel is
not loaded.
src/systemctl/systemctl.c