Wednesday 29 March 2017

rhel7, fastboot

1

How to boot kernel and bypass the BIOS

Kexec is a fastboot mechanism which allows botting linux from the context of already running kernel without going to BIOS

Check if kexec tools installed

rpm -q kexec-tools

To load a kernel, the syntax is as follows:

#    kexec -l kernel-image --append="any command-line-options" --initrd=initrd-image

Easy way to boot current kernel is:

# krnl=`uname -r` ; kexec -l /boot/vmlinuz-$krnl \
--initrd=/boot/initramfs-"$krnl".img --reuse-cmdline

No comments:

Post a Comment