kexec fails to load a kernel if we add rhgb, quiet parameters to the kernel stanza

Solution Verified - Updated -

Issue

  • Current grub configuration and check that quiet and rhgb are present :
#cat /proc/cmdline 
ro root=/dev/mapper/myvg-rootvol rd_NO_LUKS  KEYBOARDTYPE=pc KEYTABLE=fr LANG=en_US.UTF-8 rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb  rd_LVM_LV=myvg/rootvol rd_NO_DM
  • Try this :
#kexec -l /boot/vmlinuz-`uname -r` --initrd=/boot/initramfs-`uname -r`.img --command-line=\"`cat /proc/cmdline`\"

It will crash.

  • Try this :
#kexec -l /boot/vmlinuz-`uname -r` --initrd=/boot/initramfs-`uname -r`.img --command-line="`sed 's/ rhgb\| quiet//g' /proc/cmdline`"

It works !

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content