[systemd-devel] [PATCH] use systemd.debug on the kernel command line, not "debug"

Greg KH gregkh at linuxfoundation.org
Wed Apr 2 16:52:27 PDT 2014


On Wed, Apr 02, 2014 at 07:43:14PM -0400, Dave Reisner wrote:
> On Wed, Apr 02, 2014 at 03:27:52PM -0700, Greg KH wrote:
> > If the kernel is started with "debug", that's for the kernel to switch
> > into debug mode.  We should rely on a namespace for our options, like
> > everything else (with the exception of "quiet").  Some people want to
> > only debug the kernel, not systemd, and the opposite as well so make
> > everyone happy.
> > 
> > 
> > diff --git a/src/core/main.c b/src/core/main.c
> > index 41605ee8d5cd..291b18519388 100644
> > --- a/src/core/main.c
> > +++ b/src/core/main.c
> > @@ -416,7 +416,7 @@ static int parse_proc_cmdline_item(const char *key, const char *value) {
> >                  if (arg_show_status == _SHOW_STATUS_UNSET)
> >                          arg_show_status = SHOW_STATUS_AUTO;
> >  
> > -        } else if (streq(key, "debug") && !value) {
> > +        } else if (streq(key, "systemd.debug") && !value) {
> 
> I think kernel-command-line(7) will need an update to go with this.

Oops, missed that, I'll fix that up after dinner, thanks.

greg k-h


More information about the systemd-devel mailing list