[systemd-devel] multipath breaks with recent udev/systemd

2014-12-15 Thread Hannes Reinecke
Hi all, in commit 3ebdb81ef088afd3b4c72b516beb5610f8c93a0d (udev: serialize/synchronize block device event handling with file locks) udev started using flock() on the device node, supposedly to synchronize with an ominous 'block event handling'. The code looks like this: if

[systemd-devel] [PATCH] systemctl: fix argument handling when invoked as shutdown

2014-12-15 Thread Jan Synacek
--- src/systemctl/systemctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 8400bc8..91e8f7c 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -6942,7 +6942,7 @@ static int

[systemd-devel] [PATCH v2] Add FDB support

2014-12-15 Thread Alin Rauta
Hi, Based on your feedback, I've created a new patch for adding the FDB support. networkd takes ownership of the FDB table. Configuration example: cat /etc/systemd/network/em1.network [Match] Name=em1 [Network] DHCP=v4 [BridgeFDB] MACAddress=04:44:12:34:56:70 VLAN=2 [BridgeFDB]

[systemd-devel] [PATCH v2] Add FDB support

2014-12-15 Thread Alin Rauta
Signed-off-by: Alin Rauta alin.ra...@intel.com --- Makefile.am | 1 + man/systemd.network.xml | 22 ++ src/libsystemd/sd-rtnl/rtnl-message.c| 56 - src/libsystemd/sd-rtnl/rtnl-types.c | 15 +- src/network/networkd-fdb.c

[systemd-devel] [PATCH] hwdb: Logitech MX 518

2014-12-15 Thread harald
From: Harald Hoyer har...@redhat.com --- hwdb/70-mouse.hwdb | 4 1 file changed, 4 insertions(+) diff --git a/hwdb/70-mouse.hwdb b/hwdb/70-mouse.hwdb index 36778d5..06b5338 100644 --- a/hwdb/70-mouse.hwdb +++ b/hwdb/70-mouse.hwdb @@ -168,6 +168,10 @@ mouse:usb:v046dpc52b:name:Logitech

[systemd-devel] [PATCH] nss-myhostname: also recognize gateway.

2014-12-15 Thread harald
From: Harald Hoyer har...@redhat.com gateway. skips adding the domain search path and saves some queries to the nameserver. --- src/nss-myhostname/nss-myhostname.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nss-myhostname/nss-myhostname.c

[systemd-devel] systemd boot issue

2014-12-15 Thread P J P
Hello, Please see: - http://fpaste.org/159783/ - https://lists.fedoraproject.org/pipermail/devel/2014-September/202289.html I first encountered this issue with a custom built kernel-3.16, then in kernel-3.17 and now in 3.18 too. First issue here is that kernel boot-up halts after saying

[systemd-devel] timedatectl regression in 218: crash with Etc/UTC

2014-12-15 Thread Martin Pitt
Hey Tom, all, with systemd 218 our integration tests picked out a regression with timedatectl: just calling it without any arguments crashes with *** Error in `./timedatectl': free(): invalid next size (fast): 0xf8cce8d8 *** I only get this crash on i386 (32 bit), not x86_64. It also only

Re: [systemd-devel] systemd boot issue

2014-12-15 Thread Jóhann B. Guðmundsson
On 12/15/2014 11:45 AM, P J P wrote: I first encountered this issue with a custom built kernel-3.16, then in kernel-3.17 and now in 3.18 Do you encounter this with none custom built kernel in Fedora? JBG ___ systemd-devel mailing list

Re: [systemd-devel] systemd boot issue

2014-12-15 Thread P J P
On Monday, 15 December 2014 5:24 PM, Jóhann B. Guðmundsson wrote: Do you encounter this with none custom built kernel in Fedora? I don't use the Fedora kernel, so I haven't seen it there. But as said earlier, Paul I guess encountered it with the Fedora kernel -

[systemd-devel] [PATCH] Re: timedatectl regression in 218: crash with Etc/UTC

2014-12-15 Thread Martin Pitt
Martin Pitt [2014-12-15 12:50 +0100]: #7 0x5659c185 in time_get_dst (date=1418644009, tzfile=0x5659e9ee /etc/localtime, switch_cur=0xd81c, zone_cur=0xd810, dst_cur=0xd809, switch_next=0xd824, delta_next=0xd820, zone_next=0xd814, dst_next=0xd80a) at

Re: [systemd-devel] systemd boot issue

2014-12-15 Thread Jóhann B. Guðmundsson
On 12/15/2014 12:02 PM, P J P wrote: On Monday, 15 December 2014 5:24 PM, Jóhann B. Guðmundsson wrote: Do you encounter this with none custom built kernel in Fedora? I don't use the Fedora kernel, so I haven't seen it there. But as said earlier, Paul I guess encountered it with the Fedora

Re: [systemd-devel] systemd boot issue

2014-12-15 Thread P J P
On Monday, 15 December 2014 5:40 PM, Jóhann B. Guðmundsson wrote: Start by Installing and trying the Fedora stock kernel to see if it happens there then report back here. It does not happen there. Though IMO that's irrelevant. I left the VM with the custom 3.18.0 kernel in the stalled

Re: [systemd-devel] multipath breaks with recent udev/systemd

2014-12-15 Thread Alexander E. Patrakov
15.12.2014 14:31, Hannes Reinecke wrote: Hi all, in commit 3ebdb81ef088afd3b4c72b516beb5610f8c93a0d (udev: serialize/synchronize block device event handling with file locks) udev started using flock() on the device node, supposedly to synchronize with an ominous 'block event handling'. This

Re: [systemd-devel] [udev] Giving exclusive rights over a sound card to a user

2014-12-15 Thread David Herrmann
Hi On Sat, Dec 13, 2014 at 5:34 PM, Léo Gillot-Lamure leo.gil...@navaati.net wrote: Hi. I want to give ownership of a particular sound card to a specific user permanently, so that 1/ I have a guarantee that other users' sessions can not emit sound on this card and 2/ the sound playing on the

Re: [systemd-devel] systemd boot issue

2014-12-15 Thread Jóhann B. Guðmundsson
On 12/15/2014 12:32 PM, P J P wrote: It does not happen there. Though IMO that's irrelevant. It's not irrelevant since you might not be compiling your kernel without required config options which either break dracut or systemd. JBG ___

Re: [systemd-devel] [PATCH] hwdb: Logitech MX 518

2014-12-15 Thread David Herrmann
Hi On Mon, Dec 15, 2014 at 11:26 AM, har...@redhat.com wrote: From: Harald Hoyer har...@redhat.com --- hwdb/70-mouse.hwdb | 4 1 file changed, 4 insertions(+) diff --git a/hwdb/70-mouse.hwdb b/hwdb/70-mouse.hwdb index 36778d5..06b5338 100644 --- a/hwdb/70-mouse.hwdb +++

Re: [systemd-devel] [PATCH] Re: timedatectl regression in 218: crash with Etc/UTC

2014-12-15 Thread David Herrmann
Hi On Mon, Dec 15, 2014 at 1:08 PM, Martin Pitt martin.p...@ubuntu.com wrote: Martin Pitt [2014-12-15 12:50 +0100]: #7 0x5659c185 in time_get_dst (date=1418644009, tzfile=0x5659e9ee /etc/localtime, switch_cur=0xd81c, zone_cur=0xd810, dst_cur=0xd809, switch_next=0xd824,

Re: [systemd-devel] Cycle between logind and NetworkManager in case of remote user database

2014-12-15 Thread Lennart Poettering
On Sat, 13.12.14 10:09, Andrei Borzenkov (arvidj...@gmail.com) wrote: NetworkManager sets logind inhibitor lock to monitor for suspend events. So it implicitly requires logind to be present when NM starts. Any idea what it needs the inhibitor for? logind is ordered after

Re: [systemd-devel] systemd boot issue

2014-12-15 Thread P J P
On Monday, 15 December 2014 6:43 PM, Jóhann B. Guðmundsson wrote: It's not irrelevant since you might not be compiling your kernel without required config options which either break dracut or systemd. Is there a known list of these options that a user must enable? --- Regards -P J P

Re: [systemd-devel] systemd boot issue

2014-12-15 Thread Jóhann B. Guðmundsson
On 12/15/2014 03:15 PM, P J P wrote: On Monday, 15 December 2014 6:43 PM, Jóhann B. Guðmundsson wrote: It's not irrelevant since you might not be compiling your kernel without required config options which either break dracut or systemd. Is there a known list of these options that a user

Re: [systemd-devel] [PATCH] build-sys: remove commented-out m4 from user@.service

2014-12-15 Thread Lennart Poettering
On Sun, 14.12.14 19:12, Mantas Mikulėnas (graw...@gmail.com) wrote: Otherwise this actually remains in the generated unit in /usr/lib. If you want to keep it commented out, a m4-compatible way would be: m4_ifdef(`HAVE_SMACK', dnl Capabilities=cap_mac_admin=i dnl

Re: [systemd-devel] [systemd-commits] 2 commits - src/core src/journal-remote src/network

2014-12-15 Thread Lennart Poettering
On Sat, 13.12.14 08:32, Matthias Urlichs (matth...@urlichs.de) wrote: Hi, Zbigniew Jędrzejewski-Szmek: wrap a few *_FOREACH macros in curly braces cppcheck is full of errors anyway. I don't think we should make the code less pretty just to satisfy a checker, and a rarely

Re: [systemd-devel] [PATCH] build-sys: remove commented-out m4 from user@.service

2014-12-15 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Dec 15, 2014 at 04:36:51PM +0100, Lennart Poettering wrote: On Sun, 14.12.14 19:12, Mantas Mikulėnas (graw...@gmail.com) wrote: Otherwise this actually remains in the generated unit in /usr/lib. If you want to keep it commented out, a m4-compatible way would be:

Re: [systemd-devel] [systemd-commits] 2 commits - src/core src/journal-remote src/network

2014-12-15 Thread Mantas Mikulėnas
On Mon, Dec 15, 2014 at 5:40 PM, Lennart Poettering mzta...@0pointer.de wrote: On Sat, 13.12.14 08:32, Matthias Urlichs (matth...@urlichs.de) wrote: Hi, Zbigniew Jędrzejewski-Szmek: wrap a few *_FOREACH macros in curly braces cppcheck is full of errors anyway. I don't think

Re: [systemd-devel] systemd boot issue

2014-12-15 Thread Lennart Poettering
On Mon, 15.12.14 11:45, P J P (p...@fedoraproject.org) wrote: Hello, Please see: - http://fpaste.org/159783/ - https://lists.fedoraproject.org/pipermail/devel/2014-September/202289.html I first encountered this issue with a custom built kernel-3.16, then in kernel-3.17 and now

[systemd-devel] [PATCH] nspawn: fix invocation of the raw clone() system call on s390 and cris

2014-12-15 Thread Ken Werner
From: Ken Werner k...@linux.vnet.ibm.com Since the order of the first and second arguments of the raw clone() system call is reversed on s390 and cris it needs to be invoked differently. Signed-off-by: Ken Werner k...@linux.vnet.ibm.com --- src/nspawn/nspawn.c |8 1 files changed,

[systemd-devel] systemd-nspawn doesn't work on s390

2014-12-15 Thread Ken Werner
From: Ken Werner k...@linux.vnet.ibm.com Hi there, It appears that systemd-nspawn doesn't work on s390 (and cris probably). The clone() fails because the signature of the raw system call is slightly different on these architectures. Since the order of the first and second arguments is

Re: [systemd-devel] systemd boot issue

2014-12-15 Thread P J P
Hi, On Monday, 15 December 2014 9:23 PM, Lennart Poettering wrote: Can you boot with systemd.log_level=debug systemd.log_target=kmsg? This should print all logs to the console. Yes done! - http://fpaste.org/159929/ Most likely there's some necessary kernel option not enabled in your

Re: [systemd-devel] [PATCH] nspawn: fix invocation of the raw clone() system call on s390 and cris

2014-12-15 Thread Lennart Poettering
On Mon, 15.12.14 08:01, Ken Werner (k...@linux.vnet.ibm.com) wrote: From: Ken Werner k...@linux.vnet.ibm.com Since the order of the first and second arguments of the raw clone() system call is reversed on s390 and cris it needs to be invoked differently. Signed-off-by: Ken Werner

Re: [systemd-devel] Cycle between logind and NetworkManager in case of remote user database

2014-12-15 Thread Dan Williams
On Mon, 2014-12-15 at 16:11 +0100, Lennart Poettering wrote: On Sat, 13.12.14 10:09, Andrei Borzenkov (arvidj...@gmail.com) wrote: NetworkManager sets logind inhibitor lock to monitor for suspend events. So it implicitly requires logind to be present when NM starts. NM doesn't actually

Re: [systemd-devel] Cycle between logind and NetworkManager in case of remote user database

2014-12-15 Thread Andrei Borzenkov
В Mon, 15 Dec 2014 11:34:17 -0600 Dan Williams d...@redhat.com пишет: On Mon, 2014-12-15 at 16:11 +0100, Lennart Poettering wrote: On Sat, 13.12.14 10:09, Andrei Borzenkov (arvidj...@gmail.com) wrote: NetworkManager sets logind inhibitor lock to monitor for suspend events. So it

Re: [systemd-devel] [PATCH v2] Add FDB support

2014-12-15 Thread Tom Gundersen
Hi Alin, Thanks for the patch! Overall it looks excellent, my only concern is with the clearing of FDB entries. Is there any reason to treat this differently than how we currently treat routes and addresses? The current logic is that we don't support run-time reconfiguration (we only apply our

Re: [systemd-devel] Cycle between logind and NetworkManager in case of remote user database

2014-12-15 Thread Dan Williams
On Mon, 2014-12-15 at 20:40 +0300, Andrei Borzenkov wrote: В Mon, 15 Dec 2014 11:34:17 -0600 Dan Williams d...@redhat.com пишет: On Mon, 2014-12-15 at 16:11 +0100, Lennart Poettering wrote: On Sat, 13.12.14 10:09, Andrei Borzenkov (arvidj...@gmail.com) wrote: NetworkManager

[systemd-devel] pam_limits: Could not set limit for ...: Operation not permitted

2014-12-15 Thread Kai Krakow
Hello! I'm seeing the following errors in systemd's journal: Dez 15 22:33:57 jupiter systemd[1515]: pam_limits(systemd-user:session): Could not set limit for 'memlock': Operation not permitted Dez 15 22:33:57 jupiter systemd[1515]: pam_limits(systemd-user:session): Could not set limit for

[systemd-devel] DefaultDependencies=false on scopes

2014-12-15 Thread Brandon Philips
Hello- How is a user supposed to disable DefaultDependencies on a scope? From the docs it seems like it should work: Unless DefaultDependencies=false is used, scope units will implicitly have dependencies of type Conflicts= and Before= on shutdown.target. But, in practice: systemd-run --scope

Re: [systemd-devel] systemd boot issue

2014-12-15 Thread P J P
Hi, On Monday, 15 December 2014 10:54 PM, P J P wrote: and now after 6-7 hours suddenly I see the login prompt with kernel-3.18.0. I have hit # shutdown -r now and boot-up has stalled at the same spot again. Let's see... On a VM I had enabled 'CONFIG_LOCKUP_DETECTOR=y'

Re: [systemd-devel] [PATCH] fix compiler warning

2014-12-15 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Dec 16, 2014 at 08:48:34AM +0530, Susant Sahani wrote: src/shared/utf8.c:268:13: warning: unused variable 'd' [-Wunused-variable] int d; Applied. Zbyszek ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] [PATCH] systemctl: fix argument handling when invoked as shutdown

2014-12-15 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Dec 15, 2014 at 10:39:00AM +0100, Jan Synacek wrote: --- src/systemctl/systemctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 8400bc8..91e8f7c 100644 --- a/src/systemctl/systemctl.c +++

Re: [systemd-devel] [PATCH] nss-myhostname: also recognize gateway.

2014-12-15 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Dec 15, 2014 at 11:34:24AM +0100, har...@redhat.com wrote: From: Harald Hoyer har...@redhat.com gateway. skips adding the domain search path and saves some queries to the nameserver. Pushed it... Works nicely and seems useful. Zbyszek ___

Re: [systemd-devel] Using `systemctl edit` on invalid unit names

2014-12-15 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Dec 14, 2014 at 04:21:32PM +0300, Ivan Shapovalov wrote: On Saturday 13 December 2014 at 15:34:01, Ronny Chevalier wrote: 2014-12-13 11:33 GMT+01:00 Ivan Shapovalov intelfx...@gmail.com: Hello all, Hi, it seems that the newly added `systemctl edit` command

Re: [systemd-devel] [PATCH v3] systemctl: add edit verb

2014-12-15 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Oct 21, 2014 at 10:55:46PM +0200, Ronny Chevalier wrote: +if (arg_transport != BUS_TRANSPORT_LOCAL) { +log_error(Cannot remotely edit units); +return -EINVAL; +} + +if (arg_runtime) { +

Re: [systemd-devel] Fedora 21: Cannot scan to EPSON WF-2540

2014-12-15 Thread poma
Unlike the case with a network capable scanner i.e. the scanner connected directly to the network, these are the settings for sharing across a network scanner connected to a computer via USB. As root, on *server*: 1. Create 'saned' user group # getent group saned /dev/null 21 || groupadd

Re: [systemd-devel] Cycle between logind and NetworkManager in case of remote user database

2014-12-15 Thread David Herrmann
Hi On Mon, Dec 15, 2014 at 9:20 PM, Dan Williams d...@redhat.com wrote: On Mon, 2014-12-15 at 20:40 +0300, Andrei Borzenkov wrote: systemd tries to launch logind service which now waits for services it is ordered After and eventually times out. NM patch filed for review by NM dev team: