Thomas Eriksson
2017-Feb-27 22:34 UTC
[CentOS] Systemd debug logging turned on in CentOS 7
Hi, I noticed that some, but not all, of my CentOS 7 machines have these kernel parameters for turning on systemd debug level logging added to the grub.cfg file. systemd.log_level=debug systemd.log_target=kmsg The parameters are *not* in the /etc/default/grub file, so if I rebuild grub.cfg with grub2-mkconfig, they disappear. I am a bit puzzled over how they got introduced. Has anyone else seen this? thanks, Thomas
Oh wow, I was coming across this in my env last week and thought that it was something with the way they were kickstarted. You are not alone! On Feb 27, 2017, 5:35 PM -0500, Thomas Eriksson <thomas.eriksson at slac.stanford.edu>, wrote:> Hi, > > I noticed that some, but not all, of my CentOS 7 machines have these > kernel parameters for turning on systemd debug level logging added to > the grub.cfg file. > > systemd.log_level=debug systemd.log_target=kmsg > > The parameters are *not* in the /etc/default/grub file, so if I rebuild > grub.cfg with grub2-mkconfig, they disappear. > > I am a bit puzzled over how they got introduced. > Has anyone else seen this? > > thanks, > > Thomas > > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos
Once upon a time, Thomas Eriksson <thomas.eriksson at slac.stanford.edu> said:> I noticed that some, but not all, of my CentOS 7 machines have these > kernel parameters for turning on systemd debug level logging added to > the grub.cfg file.Yep, for each of the installed kernels, I have two GRUB entries: one with and one without debugging. It seems that when I install a new kernel, the debugging entry gets the "default" choice. I don't know what's adding them though. -- Chris Adams <linux at cmadams.net>
Last time I saw it, I had just upgraded my CentOS 7 box with the 3.10.0-514 kernel and it rebooted already configured into debug mode. Not sure if this is a ?feature? of the newer kernels or not but glad to see that i?m not the only one who had noticed this. # awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg 0 : CentOS Linux (3.10.0-514.6.2.el7.x86_64) 7 (Core) 1 : CentOS Linux (3.10.0-514.6.2.el7.x86_64) 7 (Core) with debugging 2 : CentOS Linux (0-rescue-7b37bcbe36eb420fb6426976c41b0aaf) 7 (Core) 3 : CentOS Linux (0-rescue-7b37bcbe36eb420fb6426976c41b0aaf) 7 (Core) with debugging On Feb 27, 2017, 8:40 PM -0500, Chris Adams <linux at cmadams.net>, wrote:> Once upon a time, Thomas Eriksson <thomas.eriksson at slac.stanford.edu> said: > > I noticed that some, but not all, of my CentOS 7 machines have these > > kernel parameters for turning on systemd debug level logging added to > > the grub.cfg file. > > Yep, for each of the installed kernels, I have two GRUB entries: one > with and one without debugging. It seems that when I install a new > kernel, the debugging entry gets the "default" choice. > > I don't know what's adding them though. > -- > Chris Adams <linux at cmadams.net > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos