kernel or/and systemd in debug mode after 7.3 upgrade

General support questions
Post Reply
drknut
Posts: 50
Joined: 2016/12/13 11:59:42

kernel or/and systemd in debug mode after 7.3 upgrade

Post by drknut » 2016/12/13 12:29:02

Hello All,

Just upgraded to 7.3. After reboot, my syslog is flooded with message from "systemd-logind".

It seems that the "debug" option was active at boot time :

Code: Select all

#cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.10.0-514.2.2.el7.x86_64 root=/dev/mapper/system-root ro rd.md.uuid=44ccb56e:af67069d:b20f699d:ac1abd13 crashkernel=auto rd.lvm.lv=system/swap rd.md.uuid=4a02a644:2af742f7:2558735b:8b6f7c76 rd.lvm.lv=system/root rhgb quiet LANG=en_US.UTF-8 systemd.debug systemd.log_level=debug systemd.log_target=kmsg
Of course I didn't set this option myself.

How can I revert to the original boot options ?

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: kernel or/and systemd in debug mode after 7.3 upgrade

Post by TrevorH » 2016/12/13 15:47:15

This is a known bug that's caused by a line MAKEDEBUG=yes in /etc/sysconfig/kernel

I don't know what puts that line there but grubby sees it and adds kernel stanzas to grub for both debug and non-debug versions. Remove the parameter, delete the wrong stanzas from grub.cfg and you should be done.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

drknut
Posts: 50
Joined: 2016/12/13 11:59:42

Re: kernel or/and systemd in debug mode after 7.3 upgrade

Post by drknut » 2016/12/13 21:55:08

Thank you Trevor.

I've set the MAKEDEBUG to "no" in /etc/sysconfig/kernel.

Could you be more explicit with "deleting the wrong stanzas" ?

I'm a total newbie as far as grub is concerned and I don't want to corrupt my grub.cfg by deleting an entry without updating a pointer to that entry.

Should I post my grub.cfg (300 lines) ?

drknut
Posts: 50
Joined: 2016/12/13 11:59:42

[SOLVED] kernel or/and systemd in debug mode after 7.3 upgrade

Post by drknut » 2016/12/14 07:23:18

Found how to "delete the wrong stanzas".

Do not edit grub.cfg, as it is generated by grub2-mkconfig.

Just rerun grub2-mkconfig.

Feeling less newbie now ;)

Post Reply