After updating systems from RHEL 7.2 to later versions, the system is booted in kernel debugging mode
Issue
After adding MAKEDEBUG=yes" line in /etc/sysconfig/kernel ,two grub menu entries will be added for the current kernel, one entry will have "with debugging" in its name and will contain "systemd.log_level=debug systemd.log_target=kmsg", the second entry has no debugging at all, as described further in the article:
Why is there a new kernel boot menu entry "with debugging" in Red Hat Enterprise Linux 7.1
If we make the 1st one default using "grub2-set-default 0" then kernel upgrade will create two new menu entries. One of them will have "with debugging" in its name the other one wouldn't. However, both will now have "systemd.log_level=debug systemd.log_target=kmsg" in kernel command line options, and after booting numerous kernel debug messages will flood the system.
Environment
- Red Hat Enterprise Linux 7.2 before upgrading
- System with MAKEDEBUG=yes in /etc/sysconfig/kernel
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
