How to use kexec
in Fedora Linux to fast-reboot automatically to the newest installed kernel?
kexec --load
command line usage is rather verbose — you have to provide:
- kernel image, like
/boot/vmlinuz-3.18.8-201.fc21.x86_64
, - corresponding initrd file, like
--initrd=/boot/initramfs-3.18.8-201.fc21.x86_64.img
, - kernel command-line arguments, like
--append="root=/dev/sda1 ro rhgb quiet LANG=en_US.UTF-8"
, from/proc/cmdline
.
It is tedious to type it all, as even tab completion does not help too much, because there are usually multiple kernels installed.
With UEFI systems and Windows 8 dual-boot laptop it is easy to miss just a right moment to interrupt reboot to select non-default system. If you miss then you have to wait for Windows 8 to start, maybe automatically login, reboot and try again.