[systemd-devel] [PATCH] systemctl: refuse to do kexec, if no kernel is loaded

Harald Hoyer harald at redhat.com
Tue Mar 25 02:39:31 PDT 2014


Am 24.03.2014 20:43, schrieb Lennart Poettering:
> On Tue, 18.03.14 14:14, harald at redhat.com (harald at redhat.com) wrote:
> 
>> From: Harald Hoyer <harald at redhat.com>
>>
>> Doing a kexec with no kernel loaded would currently issue a normal reboot.
>> This might not be wanted, if the goal of kexec is to circumvent the boot
>> loader. Better fail to kexec, than to reboot into a maybe broken setup.
> 
> Hmm, my assumption was always that we should support uploading a kernel
> from a service at shutdown kexed. THis patch of yours would break a
> setup like that?
> 
> Lennart
> 

Ok, makes sense... I modified dracut to do a reboot, if no kexec kernel is loaded.


More information about the systemd-devel mailing list