[systemd-devel] [PATCH] fstab-generator: local-fs.target waits for nofail mounts

2014-04-03 Thread WANG Chao
In kdump kernel, we need mount certain file system, and we use "nofail" for all mounts specified in /etc/fstab. Because we don't want any mount failure to interrupt the boot process to arrive at dracut-pre-pivot.service (This is the point just before we switch root). And at that dracut-pre-pivot, w

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 >> >> 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

[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] [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 negligible

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 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 in the opposite direction o

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 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. Anyway, I think Tomasz

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 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 sleeps? This will

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 me

[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 --- src/tty-ask-password-agent/tty-ask-password-agent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tty-ask-

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

[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 __

[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 100

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 wrote: > On 03/04/14 16:40, Leonid Isaev wrote: > > Hi, > > > > On Thu, 03 Apr 2014 11:25:27 +0100 > > John Lane wrote: > > > >> Hello, I have a number of LXC containers that have been working with > >> systemd for some time. I have just tried to perf

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 > > > > 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 >

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 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 rebuil

[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 c

[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 t

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 : > 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 LABEL to identify it, a

[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 option

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 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 > broken. Thank

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 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 upgrades). You

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 : > 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 fore

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 : > 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 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 peri

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 > > 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

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 > > 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

[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 th

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

2014-04-03 Thread Hannes Reinecke
From: Greg KH 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 eve

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 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 973755a..4e0fe0a

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 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 might be clients una

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] 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 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 ou

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 ([email protected]) 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

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] [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 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 t

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 request

[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] 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 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 me whe

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 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 have an opi

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 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 read a lot of kernel

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 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 initial delay of approxima

[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 51e8b0a3d18f892c2e0bb86ca86fab995

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 wrote: > > Hello all, > > > > I've noticed that systemd-networkd.service (ordered Before=network.target) > > finishes its startup before the connection is est

[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 r