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

2014-04-03 Thread Hannes Reinecke
From: Greg KH gre...@linuxfoundation.org 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

[systemd-devel] [PATCH] libsystemd-network: Support setting DHCP client initial delay

2014-04-03 Thread Patrik Flykt
Section 4.4.1 in RFC 2131 says that a DHCP client SHOULD wait a random time between one and ten seconds to desynchronize DHCP clients on startup. This is supported such that the application can optionally set an initial delay of approximately two and eight seconds or leave the initial value unset

Re: [systemd-devel] systemd-networkd and After=network.target

2014-04-03 Thread Ivan Shapovalov
On Wednesday 02 April 2014 at 12:00:07, Umut Tezduyar Lindskog wrote: Hi Ivan, On Wed, Apr 2, 2014 at 11:41 AM, Ivan Shapovalov intelfx...@gmail.com wrote: Hello all, I've noticed that systemd-networkd.service (ordered Before=network.target) finishes its startup before the

[systemd-devel] sd-rtnl: broken test cases

2014-04-03 Thread Susant Sahani
Hi, I am trying to fix the broken test cases which was working previously . With the new refactorization and I tryied to fix them with the attached paatch does not work . Not sure I am doing something wrong or sd-rtnl is broken. -- Thanks ! Susant From

Re: [systemd-devel] [PATCH] libsystemd-network: Support setting DHCP client initial delay

2014-04-03 Thread Tom Gundersen
On Thu, Apr 3, 2014 at 9:28 AM, Patrik Flykt patrik.fl...@linux.intel.com wrote: Section 4.4.1 in RFC 2131 says that a DHCP client SHOULD wait a random time between one and ten seconds to desynchronize DHCP clients on startup. This is supported such that the application can optionally set an

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

2014-04-03 Thread Tom Gundersen
On Thu, Apr 3, 2014 at 12:27 AM, Greg KH gre...@linuxfoundation.org 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). Just a quick note, we do in fact

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

2014-04-03 Thread Tom Gundersen
On Thu, Apr 3, 2014 at 11:08 AM, Tom Gundersen t...@jklm.no wrote: Is the rationale for this, simply a matter of preference, i.e., is the claim simply that we believe most users would benefit more from the 'kernel only' compared to 'all low-level stuff' behavior? If that's the case, I don't

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

2014-04-03 Thread David Herrmann
Hi On Thu, Apr 3, 2014 at 11:08 AM, Tom Gundersen t...@jklm.no wrote: Or is there actually a bug going on here? My impression from reading related discussions was that systemd.log_level=debug loglevel=debug triggers some bug (so in particular debug now triggers the bug). It was not clear to

[systemd-devel] LXC not working with systemd 209 or later

2014-04-03 Thread John Lane
Hello, I have a number of LXC containers that have been working with systemd for some time. I have just tried to perform some upgrades, taking them from 204 to 212 (actually they are scripted rebuilds rather than upgrades). I have found that they do not work properly with any systemd versions

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

2014-04-03 Thread Colin Guthrie
'Twas brillig, and Greg KH at 03/04/14 02:02 did gyre and gimble: +} else if (streq(key, systemd.debug) !value) { Just as a small not to user typos, perhaps we should also check for system.debug? It's a bit of a namespace crime, but it might avoid some unneeded round trips requesting

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

2014-04-03 Thread Thomas Bächler
Am 03.04.2014 11:36, schrieb David Herrmann: On Thu, Apr 3, 2014 at 11:08 AM, Tom Gundersen t...@jklm.no wrote: Or is there actually a bug going on here? My impression from reading related discussions was that systemd.log_level=debug loglevel=debug triggers some bug (so in particular debug now

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

2014-04-03 Thread Florian Albrechtskirchinger
On 03.04.2014 00:27, 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

Re: [systemd-devel] https://bugzilla.redhat.com/show_bug.cgi?id=1047614

2014-04-03 Thread Reindl Harald
Am 12.02.2014 21:19, schrieb Lennart Poettering: On Wed, 12.02.14 20:05, Reindl Harald (h.rei...@thelounge.net) wrote: maybe systemd-upstream should consider slow down development and spend more energy in quality and stability Well, firstly, it's hardly your business how we spend our time

Re: [systemd-devel] [PATCHv3] use systemd.debug on the kernel command line, not debug

2014-04-03 Thread Colin Guthrie
'Twas brillig, and Hannes Reinecke at 03/04/14 07:52 did gyre and gimble: systemd.restore_state=0|1 Restore backlight/rfkill state at boot\n); + systemd.debug Enable debugging

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

2014-04-03 Thread Colin Guthrie
'Twas brillig, and Florian Albrechtskirchinger at 03/04/14 11:53 did gyre and gimble: On 03.04.2014 00:27, 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

Re: [systemd-devel] [PATCHv3] use systemd.debug on the kernel command line, not debug

2014-04-03 Thread Hannes Reinecke
On 04/03/2014 01:02 PM, Colin Guthrie wrote: 'Twas brillig, and Hannes Reinecke at 03/04/14 07:52 did gyre and gimble: systemd.restore_state=0|1 Restore backlight/rfkill state at boot\n); + systemd.debug

Re: [systemd-devel] [PATCH] networkd: smooth transition from ipv4ll to dhcp address

2014-04-03 Thread Tom Gundersen
Applied. Thanks! Cheers, Tom On Wed, Apr 2, 2014 at 9:31 PM, Umut Tezduyar Lindskog umut.tezdu...@axis.com wrote: Currently when both ipv4ll and dhcp are enabled, ipv4ll address (if one has been claimed) is removed when dhcp address is aquired. This is not the best thing to do since there

Re: [systemd-devel] [PATCH] networkd: drop routes when lease expires

2014-04-03 Thread Tom Gundersen
Applied. Thanks! Cheers, Tom On Tue, Apr 1, 2014 at 10:55 PM, Umut Tezduyar Lindskog umut.tezdu...@axis.com wrote: --- src/network/networkd-link.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index

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

2014-04-03 Thread Hannes Reinecke
From: Greg KH gre...@linuxfoundation.org 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

[systemd-devel] systemd-udevd seems to kill mount.ntfs started in rules scripts?

2014-04-03 Thread Barry Scott
More of my porting from F16 to F20. I have the following in /etc/udev/rules.d ACTION==add, SUBSYSTEM==block, SUBSYSTEMS==usb, RUN+=/usr/local/onelan/ntb/bin/ntb_mount_usb ACTION==remove, SUBSYSTEM==block, SUBSYSTEMS==usb, RUN+=/usr/local/onelan/ntb/bin/ntb_mount_usb This run the ntb_mount_usb

Re: [systemd-devel] [PATCHv3] use systemd.debug on the kernel command line, not debug

2014-04-03 Thread Greg KH
On Thu, Apr 03, 2014 at 08:52:06AM +0200, Hannes Reinecke wrote: From: Greg KH gre...@linuxfoundation.org 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).

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

2014-04-03 Thread Greg KH
On Thu, Apr 03, 2014 at 04:08:15PM +0200, Hannes Reinecke wrote: From: Greg KH gre...@linuxfoundation.org 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).

Re: [systemd-devel] systemd-udevd seems to kill mount.ntfs started in rules scripts?

2014-04-03 Thread Thomas Bächler
Am 03.04.2014 17:13, schrieb Barry Scott: But as soon as the script exits the mount.ntfs process is killed off by something? systemd-udevd maybe? From man udev's section on RUN: This can only be used for very short-running foreground tasks. Running an event process for a long period

Re: [systemd-devel] systemd-udevd seems to kill mount.ntfs started in rules scripts?

2014-04-03 Thread Michael Biebl
2014-04-03 17:13 GMT+02:00 Barry Scott barry.sc...@onelan.co.uk: More of my porting from F16 to F20. I have the following in /etc/udev/rules.d ACTION==add, SUBSYSTEM==block, SUBSYSTEMS==usb, RUN+=/usr/local/onelan/ntb/bin/ntb_mount_usb ACTION==remove, SUBSYSTEM==block, SUBSYSTEMS==usb,

Re: [systemd-devel] systemd-udevd seems to kill mount.ntfs started in rules scripts?

2014-04-03 Thread Michael Biebl
2014-04-03 17:27 GMT+02:00 Thomas Bächler tho...@archlinux.org: Am 03.04.2014 17:13, schrieb Barry Scott: But as soon as the script exits the mount.ntfs process is killed off by something? systemd-udevd maybe? From man udev's section on RUN: This can only be used for very

Re: [systemd-devel] LXC not working with systemd 209 or later

2014-04-03 Thread Leonid Isaev
Hi, On Thu, 03 Apr 2014 11:25:27 +0100 John Lane syst...@jelmail.com wrote: Hello, I have a number of LXC containers that have been working with systemd for some time. I have just tried to perform some upgrades, taking them from 204 to 212 (actually they are scripted rebuilds rather than

Re: [systemd-devel] sd-rtnl: broken test cases

2014-04-03 Thread Tom Gundersen
On Thu, Apr 3, 2014 at 10:13 AM, Susant Sahani sus...@redhat.com wrote: I am trying to fix the broken test cases which was working previously . With the new refactorization and I tryied to fix them with the attached paatch does not work . Not sure I am doing something wrong or sd-rtnl is

[systemd-devel] fsck.vfat in /usr/sbin

2014-04-03 Thread Mike Gilbert
Over at Gentoo, we have started installing fsck.vfat in /usr/sbin rather than /sbin. Don't ask me why; I don't maintain our dosfstools package. ^_^ This works ok with the fsck binary from util-linux since we have it configured to search in /usr/sbin via the --enable-fs-paths-extra configure

Re: [systemd-devel] systemd-udevd seems to kill mount.ntfs started in rules scripts?

2014-04-03 Thread Michael Biebl
2014-04-03 17:13 GMT+02:00 Barry Scott barry.sc...@onelan.co.uk: How should I be doing this? As I don't know if your script is meant to mount arbitrary removable drives, if you just want to mount a specific device, the simplest solution is to just add it to /etc/fstab. Use somehting like UUID or

[systemd-devel] auditd.service and RefuseManualStop

2014-04-03 Thread Colin Guthrie
Hi, Seems the upstream audit package includes this unit: [Unit] Description=Security Auditing Service DefaultDependencies=no After=local-fs.target Conflicts=shutdown.target Before=sysinit.target shutdown.target RefuseManualStop=yes [Service] ExecStart=/sbin/auditd -n ## To use augenrules, copy

[systemd-devel] Proper use of the Session.Unlock method call

2014-04-03 Thread Kirill Elagin
Hi, There are plenty people who have some kind of automatic session unlocking set up. Examples are: BT phone proximity, USB-drive being plugged in, etc. This is normally done via DBus `ScreenSaver.SetActive(false)` call, but this interface is not well-documented and, actually, it seems that this

Re: [systemd-devel] LXC not working with systemd 209 or later

2014-04-03 Thread John Lane
On 03/04/14 16:40, Leonid Isaev wrote: Hi, On Thu, 03 Apr 2014 11:25:27 +0100 John Lane syst...@jelmail.com wrote: Hello, I have a number of LXC containers that have been working with systemd for some time. I have just tried to perform some upgrades, taking them from 204 to 212 (actually they

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

2014-04-03 Thread Greg KH
On Thu, Apr 03, 2014 at 08:18:26AM -0700, Greg KH wrote: On Thu, Apr 03, 2014 at 04:08:15PM +0200, Hannes Reinecke wrote: From: Greg KH gre...@linuxfoundation.org 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

[systemd-devel] [PATCH] run systemd-tmpfiles-clean only when we have AC power

2014-04-03 Thread Cristian Rodríguez
While it is cool to be neat and clean all the time, this task can wait if we are on battery. --- units/systemd-tmpfiles-clean.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/units/systemd-tmpfiles-clean.service.in b/units/systemd-tmpfiles-clean.service.in index a5b5acb..06bb21f

Re: [systemd-devel] LXC not working with systemd 209 or later

2014-04-03 Thread Leonid Isaev
On Thu, 03 Apr 2014 18:53:48 +0100 John Lane syst...@jelmail.com wrote: On 03/04/14 16:40, Leonid Isaev wrote: Hi, On Thu, 03 Apr 2014 11:25:27 +0100 John Lane syst...@jelmail.com wrote: Hello, I have a number of LXC containers that have been working with systemd for some time. I

[systemd-devel] typo in tty-ask-password-agent.c ?

2014-04-03 Thread Simon
Hello, I think I may have found an error in systemd source, in tty-ask-password-agent.c, fuction wall_tty_block : r = get_ctty_devnr(0, devnr); if (r 0) return -r; shouldn’t be return -r be return r ? Regards, Simon

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

2014-04-03 Thread Florian Albrechtskirchinger
On 03.04.2014 15:48, Colin Guthrie wrote: 'Twas brillig, and Florian Albrechtskirchinger at 03/04/14 11:53 did gyre and gimble: I suggest we return the 'debug' option to the kernel folk and add a new option 'dbg' with a string of single letter arguments. For example, 'dbg=ki' (k for kernel,

[systemd-devel] [PATCH] tty-ask-password-agent: return negative errno

2014-04-03 Thread Florian Albrechtskirchinger
Return negative errno in wall_tty_block(). get_ctty_devnr() already returns a negative errno in case of failure, no need to negate it again. Reported-by: Simon hw...@odai.homelinux.net --- src/tty-ask-password-agent/tty-ask-password-agent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [systemd-devel] [PATCH] run systemd-tmpfiles-clean only when we have AC power

2014-04-03 Thread Tomasz Torcz
On Thu, Apr 03, 2014 at 03:42:08PM -0300, Cristian Rodríguez wrote: While it is cool to be neat and clean all the time, this task can wait if we are on battery. What if I connect my laptop to AC only when it sleeps? This will never run. I also don't think couple stats() and rm's have any

Re: [systemd-devel] [PATCH] run systemd-tmpfiles-clean only when we have AC power

2014-04-03 Thread Leonid Isaev
On Thu, 3 Apr 2014 21:26:23 +0200 Tomasz Torcz to...@pipebreaker.pl wrote: On Thu, Apr 03, 2014 at 03:42:08PM -0300, Cristian Rodríguez wrote: While it is cool to be neat and clean all the time, this task can wait if we are on battery. What if I connect my laptop to AC only when it

Re: [systemd-devel] [PATCH] run systemd-tmpfiles-clean only when we have AC power

2014-04-03 Thread Kirill Elagin
On Thu, Apr 3, 2014 at 11:51 PM, Leonid Isaev lis...@umail.iu.edu wrote: On a battery-powered system, they are most likely clean due to small uptime. I can't agree. Nowadays battery-powered systems tend to have huge uptimes due to being mostly suspended and rarely powered-off/rebooted.

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

2014-04-03 Thread David Timothy Strauss
On Thu, Apr 3, 2014 at 12:03 PM, Florian Albrechtskirchinger falbrechtskirchin...@gmail.com wrote: Both you and Tom Gundersen raised the point of assisting end-users with boot issues. 'dbg' (as suggested, shorthand for 'dbg=kri') is as concise and simple as it gets. -1 on this because it moves

Re: [systemd-devel] [PATCH] run systemd-tmpfiles-clean only when we have AC power

2014-04-03 Thread David Timothy Strauss
-1 on adding ConditionACPower=true I frequently only plug in my laptop after putting it to sleep and then disconnect it before waking it up again. It'd be possible to run cleanup less frequently when on battery, but that would just delay the work and increase the impact (which is pretty

[systemd-devel] [PATCH] Add Mir to the list of session types

2014-04-03 Thread Robert Ancell
Add Mir to the list of session types. This is implemented for LightDM in lp:~robert-ancell/lightdm/xdg-session-desktop [1]. [1] https://code.launchpad.net/~robert-ancell/lightdm/xdg-session-desktop/+merge/214108 --- man/pam_systemd.xml | 5 +++-- man/sd_session_is_active.xml | 6

Re: [systemd-devel] [PATCHv3] use systemd.debug on the kernel command line, not debug

2014-04-03 Thread Hannes Reinecke
On 04/03/2014 05:17 PM, Greg KH wrote: On Thu, Apr 03, 2014 at 08:52:06AM +0200, Hannes Reinecke wrote: From: Greg KH gre...@linuxfoundation.org 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