Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518636 - sys-apps/systemd Apply systemd.debug patch?
Summary: sys-apps/systemd Apply systemd.debug patch?
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-31 02:58 UTC by Mike Gilbert
Modified: 2016-05-30 16:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Ignore 'debug' kernel parameter (215-systemd.debug.patch,1.96 KB, patch)
2014-08-03 18:25 UTC, Mike Gilbert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2014-07-31 02:58:19 UTC
I am considering applying some variation of Greg's systemd.debug patch in our systemd ebuild. For reference:

https://www.mail-archive.com/systemd-devel%40lists.freedesktop.org/msg18094.html

There is currently no way to enable kernel debug output without also enabling systemd debug output -- and that really sucks.

This is probably never getting applied upstream. I am willing to update/maintain the patch moving forward.

Are there any strong objections to this idea?
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-07-31 07:27:06 UTC
I don't see the final (working) version of the patch there.
Comment 2 Richard Freeman gentoo-dev 2014-07-31 10:59:13 UTC
Concept seems like a good one to me - a bit annoying that it won't be upstreamed.

What are other distros doing?  The only refinement I'd suggest is that if everybody but Fedora/RHEL/CentOS is doing it a slightly different way that we do it the same way. 

But, like I said I agree in concept.  I don't want one debug flag that makes every log on the system 100x larger.
Comment 3 Mike Gilbert gentoo-dev 2014-07-31 13:22:07 UTC
(In reply to Michał Górny from comment #1)
> I don't see the final (working) version of the patch there.

I still need to track that down, or more likely just implement the missing pieces myself. If you would like to review what I come up with, that's not a problem.

I'm looking for feedback on the idea at this point.
Comment 4 Mike Gilbert gentoo-dev 2014-07-31 13:25:17 UTC
(In reply to Richard Freeman from comment #2)
> What are other distros doing?  The only refinement I'd suggest is that if
> everybody but Fedora/RHEL/CentOS is doing it a slightly different way that
> we do it the same way. 

OK. I will look around a bit to see if I can find anything.
Comment 5 Mike Gilbert gentoo-dev 2014-07-31 13:53:03 UTC
(In reply to Michał Górny from comment #1)
> I don't see the final (working) version of the patch there.

Here is the latest version of the patch I see on the systemd-devel list.

http://thread.gmane.org/gmane.comp.sysutils.systemd.devel/18251/focus=18309
Comment 6 Mike Gilbert gentoo-dev 2014-08-03 18:25:09 UTC
Created attachment 382160 [details, diff]
Ignore 'debug' kernel parameter

Seems that part of the effected code has been removed, so the ML patches are no longer valid.

Here's a patch that works.
Comment 7 Mike Gilbert gentoo-dev 2014-08-03 18:31:58 UTC
(In reply to Richard Freeman from comment #2)
> What are other distros doing?  The only refinement I'd suggest is that if
> everybody but Fedora/RHEL/CentOS is doing it a slightly different way that
> we do it the same way. 

I checked the Debian, Arch, and Fedora git repos, and did not find any indication that they are doing something similar.