Re: [systemd-devel] systemd-networkd not discovering all devices at bootup, and thus no network is configured

2015-02-12 Thread Keller, Jacob E
On Thu, 2015-02-12 at 18:51 +0100, Lennart Poettering wrote: On Thu, 12.02.15 17:48, Keller, Jacob E (jacob.e.kel...@intel.com) wrote: Ok, I'll try with latest Git first, and if it still fails I'll try reverting the patch Lennart suggested. git already has that patch reverted now.

Re: [systemd-devel] [PATCH] rules: Fix by-path of mmc RPMB partitions and don't blkid them

2015-02-12 Thread Martin Pitt
Lennart Poettering [2015-02-12 18:50 +0100]: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=090d25fe224c0 Looks simple enough. Though I wonder if [0-9] is the right match, shouldn't it also cover multiple numbers there? Hm, yes. fnmatch() doesn't support a

Re: [systemd-devel] avahi disconnects from bus with kdbus

2015-02-12 Thread David Herrmann
Hi On Wed, Feb 11, 2015 at 11:17 AM, Daniel Buch boogiewasth...@gmail.com wrote: Nice, everything works flawlessly with current git now. Good job! Thanks for testing! No idea which commit exactly fixed it, so if you see it again, please let us know. Thanks David

Re: [systemd-devel] systemd-networkd not discovering all devices at bootup, and thus no network is configured

2015-02-12 Thread Tom Gundersen
On Thu, Feb 12, 2015 at 7:28 PM, Keller, Jacob E jacob.e.kel...@intel.com wrote: On Thu, 2015-02-12 at 18:51 +0100, Lennart Poettering wrote: On Thu, 12.02.15 17:48, Keller, Jacob E (jacob.e.kel...@intel.com) wrote: Ok, I'll try with latest Git first, and if it still fails I'll try

Re: [systemd-devel] systemd-networkd not discovering all devices at bootup, and thus no network is configured

2015-02-12 Thread Lennart Poettering
On Thu, 12.02.15 17:48, Keller, Jacob E (jacob.e.kel...@intel.com) wrote: Ok, I'll try with latest Git first, and if it still fails I'll try reverting the patch Lennart suggested. git already has that patch reverted now. Lennart -- Lennart Poettering, Red Hat

Re: [systemd-devel] Whitespace in /etc/crypttab

2015-02-12 Thread Lennart Poettering
On Thu, 12.02.15 13:12, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Thu, Feb 12, 2015 at 09:49:34AM +, John Lane wrote: I see http://cgit.freedesktop.org/systemd/systemd/commit/?id=84cc2abf3472b[1] that PARTLABEL= is supported in /etc/cryptab although it isn't

Re: [systemd-devel] Changing how localed writes keymap for xorg

2015-02-12 Thread David Herrmann
Hi Colin On Thu, Feb 12, 2015 at 1:27 AM, Colin Guthrie gm...@colin.guthr.ie wrote: at which point we need to ask the question: what makes keyboards so special? and the answer seems to be that your DE doesn't support hotplugged keyboards, per-user keyboard settings, etc. So it feels to me, and

Re: [systemd-devel] [PATCH] preset-transient

2015-02-12 Thread Dimitri John Ledkov
On 11 February 2015 at 20:49, Lennart Poettering lenn...@poettering.net wrote: On Fri, 06.02.15 18:29, Didier Roche (didro...@ubuntu.com) wrote: Le 05/02/2015 17:11, Dimitri John Ledkov a écrit : Some context for this patch. Hey Dimitri, thanks for working on that. I'm just giving a broader

Re: [systemd-devel] [PATCH] preset-transient

2015-02-12 Thread Dimitri John Ledkov
On 11 February 2015 at 20:51, Lennart Poettering lenn...@poettering.net wrote: On Fri, 06.02.15 20:28, Dimitri John Ledkov (dimitri.j.led...@intel.com) wrote: Hum, we told at the sprint that we wanted to be that available for everyone, and not having any conditions. Distros which still

Re: [systemd-devel] Failed units and Unit type .busname is not supported on this system

2015-02-12 Thread Tom Gundersen
On Thu, Feb 12, 2015 at 10:23 AM, John Lane syst...@jelmail.com wrote: On 06/02/15 17:12, John Lane wrote: Good afternoon. I have some errors in the boot sequence of a newly built system: I see: systemd[1]: Unit type .busname is not supported on this system. then later on:

Re: [systemd-devel] [PATCH] Re: fstab mounts get unmounted during boot (.device unit bouncing?) -- solution

2015-02-12 Thread Lennart Poettering
On Thu, 12.02.15 11:58, Martin Pitt (martin.p...@ubuntu.com) wrote: Lennart Poettering [2015-02-12 11:22 +0100]: To make systemd robust against this, I fixed mount_load_proc_self_mountinfo() to actually do what it intends to do, instead of loading /etc/mtab (which is still util-linux'

Re: [systemd-devel] Whitespace in /etc/crypttab

2015-02-12 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Feb 12, 2015 at 09:49:34AM +, John Lane wrote: I see http://cgit.freedesktop.org/systemd/systemd/commit/?id=84cc2abf3472b[1] that PARTLABEL= is supported in /etc/cryptab although it isn't documented[2] http://www.freedesktop.org/software/systemd/man/crypttab.html. [1]

Re: [systemd-devel] multi-user.target only wants network.service if I'm doing 'systemct show runlevel3.target'

2015-02-12 Thread Jóhann B. Guðmundsson
On 02/12/2015 04:38 AM, Michael Biebl wrote: 2015-02-11 20:12 GMT+01:00 Lennart Poettering lenn...@poettering.net: So, I have discussed this with Kay, David, Daniel, and co. And we kinda came to the conclusion that we might as well just drop the configurability where runlevel3-5.target point

Re: [systemd-devel] [PATCH] Add support for transient presets, applied on every boot.

2015-02-12 Thread Dimitri John Ledkov
On 11 February 2015 at 20:43, Lennart Poettering lenn...@poettering.net wrote: On Thu, 05.02.15 16:11, Dimitri John Ledkov (dimitri.j.led...@intel.com) wrote: -static int get_config_path(UnitFileScope scope, bool runtime, const char *root_dir, char **ret) { +static int

Re: [systemd-devel] [PATCH] Re: fstab mounts get unmounted during boot (.device unit bouncing?) -- solution

2015-02-12 Thread Martin Pitt
Lennart Poettering [2015-02-12 11:22 +0100]: To make systemd robust against this, I fixed mount_load_proc_self_mountinfo() to actually do what it intends to do, instead of loading /etc/mtab (which is still util-linux' default for mnt_table_parse_mtab()). Urks, we never want to read

Re: [systemd-devel] [PATCH] Re: fstab mounts get unmounted during boot (.device unit bouncing?) -- solution

2015-02-12 Thread Karel Zak
On Thu, Feb 12, 2015 at 10:40:15AM +0100, Martin Pitt wrote: So explicitly specify the file that we actually want to parse. [1] first boot after a distro upgrade, or a package bug, or administrators configuring it explicitly for some reason https://launchpad.net/bugs/1419623 ---

Re: [systemd-devel] [PATCH] Re: fstab mounts get unmounted during boot (.device unit bouncing?) -- solution

2015-02-12 Thread Martin Pitt
Hey Karel, Karel Zak [2015-02-12 12:25 +0100]: -r = mnt_table_parse_mtab(tb, NULL); +r = mnt_table_parse_mtab(tb, /proc/self/mountinfo); This is bad solution. It resolves the issue, but forces libmount to not read /run/mount/utab. Can you please explain why? As far as I

Re: [systemd-devel] [PATCH] preset-transient

2015-02-12 Thread Dimitri John Ledkov
On 11 February 2015 at 20:40, Lennart Poettering lenn...@poettering.net wrote: On Thu, 05.02.15 16:11, Dimitri John Ledkov (dimitri.j.led...@intel.com) wrote: Some context for this patch. I would like to support a new preset model, which has the following properties: - distribution

Re: [systemd-devel] [PATCH 4/4] Always use recvmsg with MSG_CMSG_CLOEXEC

2015-02-12 Thread Lennart Poettering
On Tue, 10.02.15 21:26, Lennart Poettering (lenn...@poettering.net) wrote: On Tue, 10.02.15 12:06, Cristian Rodríguez (crrodrig...@opensuse.org) wrote: Well, all but two of these recvmsg() invocations apply to network sockets, which cannot receive fds, hence specifying the flag is kinda

Re: [systemd-devel] [PATCH v3] Added support for Uplink Failure Detection using BindCarrier

2015-02-12 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Feb 12, 2015 at 08:56:00AM +, Rauta, Alin wrote: Well, one option could be to keep a set of bound_by and bound_to links around for each link, and then just update that each time an interface comes, goes, or changes names. Yes, but the updates need to be done for all links and

Re: [systemd-devel] [PATCH] Re: fstab mounts get unmounted during boot (.device unit bouncing?) -- solution

2015-02-12 Thread Lennart Poettering
On Thu, 12.02.15 10:40, Martin Pitt (martin.p...@ubuntu.com) wrote: So right after we popped out of initramfs (which doesn't have an fstab, nor /etc/mtab, nor does it do anything else than mouting / read-only) we see all these mounts which can't possibly happen that early -- e. g.

Re: [systemd-devel] [PATCH] Re: fstab mounts get unmounted during boot (.device unit bouncing?) -- solution

2015-02-12 Thread Karel Zak
On Thu, Feb 12, 2015 at 12:25:33PM +0100, Karel Zak wrote: On Thu, Feb 12, 2015 at 10:40:15AM +0100, Martin Pitt wrote: So explicitly specify the file that we actually want to parse. [1] first boot after a distro upgrade, or a package bug, or administrators configuring it explicitly

Re: [systemd-devel] [PATCH] preset-transient

2015-02-12 Thread Lennart Poettering
On Thu, 12.02.15 11:05, Dimitri John Ledkov (dimitri.j.led...@intel.com) wrote: On 11 February 2015 at 20:51, Lennart Poettering lenn...@poettering.net wrote: On Fri, 06.02.15 20:28, Dimitri John Ledkov (dimitri.j.led...@intel.com) wrote: Hum, we told at the sprint that we wanted to

Re: [systemd-devel] [PATCH] Re: fstab mounts get unmounted during boot (.device unit bouncing?) -- solution

2015-02-12 Thread Martin Pitt
Martin Pitt [2015-02-12 12:40 +0100]: Can you please explain why? Nevermind, I see it now. So what actually would work is to call it with a nonexisting file, a directory, a symlink, or just about anything else which isn't a regular file. Thus mnt_table_parse_mtab(tb, /) would actually work

Re: [systemd-devel] Failed units and Unit type .busname is not supported on this system

2015-02-12 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Feb 12, 2015 at 10:28:10AM +0100, Tom Gundersen wrote: Just an update on the above. unit type .busname is not supported on this system isn't the cause of the problem that I was seeing (I still don't know why this appears or if it is significant in other ways but it would appear not

Re: [systemd-devel] avahi disconnects from bus with kdbus

2015-02-12 Thread Daniel Buch
No problem, i will try do some extensive testing the next couple of days. kdbus is now added to kernel entry cmdline :) 2015-02-12 19:12 GMT+01:00 David Herrmann dh.herrm...@gmail.com: Hi On Wed, Feb 11, 2015 at 11:17 AM, Daniel Buch boogiewasth...@gmail.com wrote: Nice, everything works

[systemd-devel] systemd-networkd mysteriously shutting down after launch

2015-02-12 Thread Keller, Jacob E
On Thu, 2015-02-12 at 20:15 +0100, Tom Gundersen wrote: On Thu, Feb 12, 2015 at 7:28 PM, Keller, Jacob E Now I'm having an interesting issue with the current git of systemd-networkd... It works just fine on load, and I get an ip address and everything is happy. After some amount of time,

Re: [systemd-devel] systemd-networkd mysteriously shutting down after launch

2015-02-12 Thread Keller, Jacob E
On Thu, 2015-02-12 at 22:30 +, Keller, Jacob E wrote: On Thu, 2015-02-12 at 20:15 +0100, Tom Gundersen wrote: On Thu, Feb 12, 2015 at 7:28 PM, Keller, Jacob E Now I'm having an interesting issue with the current git of systemd-networkd... It works just fine on load, and I get an ip

Re: [systemd-devel] What's the correct way to configure encrypted volume and mount point?

2015-02-12 Thread John Lane
On 11/02/15 20:03, Lennart Poettering wrote: Well, no. It would add Wants= and After=, instead of Requires= and After=. But I figure what you wrote was just a typo? yes what you say is what I meant. I think we should switch over to use WantsMountsFor for this unconditionally. After all we can

Re: [systemd-devel] Changing how localed writes keymap for xorg

2015-02-12 Thread Colin Guthrie
Hi, [You can skip the middle hunk of this reply if you're not too interested in use-case; it just gives some background. There are more important questions towards the end tho' which I'd really appreciate feedback on! Thanks!] Peter Hutterer wrote on 11/02/15 22:30: On Wed, Feb 11, 2015 at

Re: [systemd-devel] [PATCH v3] Added support for Uplink Failure Detection using BindCarrier

2015-02-12 Thread Rauta, Alin
Well, one option could be to keep a set of bound_by and bound_to links around for each link, and then just update that each time an interface comes, goes, or changes names. Yes, but the updates need to be done for all links and I'm not sure adding this is a good thing. I'm now having 64 links

[systemd-devel] [PATCH] Re: fstab mounts get unmounted during boot (.device unit bouncing?) -- solution

2015-02-12 Thread Martin Pitt
Hello again, Martin Pitt [2015-02-11 23:42 +0100]: Lennart Poettering [2015-02-11 17:05 +0100]: Actually, the fact that the unit changes directly from dead to mounted is interesting. The unit does not go through mounting, which means that it's not the unit that is invoking the /bin/mount

Re: [systemd-devel] multi-user.target only wants network.service if I'm doing 'systemct show runlevel3.target'

2015-02-12 Thread Lennart Poettering
On Thu, 12.02.15 05:38, Michael Biebl (mbi...@gmail.com) wrote: 2015-02-11 20:12 GMT+01:00 Lennart Poettering lenn...@poettering.net: So, I have discussed this with Kay, David, Daniel, and co. And we kinda came to the conclusion that we might as well just drop the configurability where

Re: [systemd-devel] Removing unnecessary includes

2015-02-12 Thread Lennart Poettering
On Wed, 11.02.15 23:46, Thomas H.P. Andersen (pho...@gmail.com) wrote: On Wed, Feb 11, 2015 at 12:39 PM, Lennart Poettering lenn...@poettering.net wrote: On Wed, 11.02.15 01:40, Thomas H.P. Andersen (pho...@gmail.com) wrote: Yep. Makes sense. Here is a status on what I have done so

Re: [systemd-devel] Failed units and Unit type .busname is not supported on this system

2015-02-12 Thread John Lane
On 06/02/15 17:12, John Lane wrote: Good afternoon. I have some errors in the boot sequence of a newly built system: I see: systemd[1]: Unit type .busname is not supported on this system. then later on: systemd-networkd[278]: Assertion 'bus' failed at

Re: [systemd-devel] Failed units and Unit type .busname is not supported on this system

2015-02-12 Thread Lennart Poettering
On Thu, 12.02.15 09:23, John Lane (syst...@jelmail.com) wrote: Just an update on the above. unit type .busname is not supported on this system isn't the cause of the problem that I was seeing (I still don't know why this appears or if it is significant in other ways but it would appear not to

[systemd-devel] Whitespace in /etc/crypttab

2015-02-12 Thread John Lane
Good morning, This just something I noticed recently: It doesn't seem to be possble to use whitespace in /etc/cryptab, for example in partition labels. Contrast with the similar /etc/fstab file which supports octal escape (\040). I see

[systemd-devel] Suspend from wireless keyboard not working

2015-02-12 Thread Gustavo De Nardin (spuk)
Hello. I'm trying to make my notebook (Lenovo Thinkpad X230) suspend when pressing the sleep extra key on a wireless keyboard (Logitech K270 using the Logitech unifying receiver). I've been able to map the sleep key to the 'pauseplay' action in a '/etc/udev/hwdb.d/70-keyboard.hwdb' file, for

[systemd-devel] kdbus in d-bus project

2015-02-12 Thread Steven Noonan
Hi all, Is anyone maintaining a patch series against upstream d-bus for kdbus integration? I checked the kdbus-dev branch linked to by the kdbus Google Code page: https://review.tizen.org/git/?p=platform/upstream/dbus.git;a=shortlog;h=refs/heads/kdbus-dev But it hasn't been updated in over a

Re: [systemd-devel] ExecStop IPC over same socket used for activation?

2015-02-12 Thread Chris Leech
On Wed, Feb 11, 2015 at 09:29:29PM +0100, Lennart Poettering wrote: Ineed, analysis seems correct. I now made this change: http://lists.freedesktop.org/archives/systemd-devel/2015-February/028058.html Didn't test it though, please test if this fixes things for you! Thanks Lennart, I ran a

[systemd-devel] [PATCH] bootchart: display each CPU utilization/wait

2015-02-12 Thread WaLyong Cho
--- src/bootchart/bootchart.c| 38 +- src/bootchart/bootchart.conf | 1 + src/bootchart/bootchart.h| 1 + src/bootchart/svg.c | 65 +--- 4 files changed, 70 insertions(+), 35 deletions(-) diff --git

Re: [systemd-devel] multi-user.target only wants network.service if I'm doing 'systemct show runlevel3.target'

2015-02-12 Thread Andrei Borzenkov
В Wed, 11 Feb 2015 21:19:16 +0100 Lennart Poettering lenn...@poettering.net пишет: But the problem is not limited to legacy initscripts. It makes it generally unsafe to have aliases via symlinks. Aliases were always meant for compatibility but this problems exactly means that

Re: [systemd-devel] [PATCH v3] Added support for Uplink Failure Detection using BindCarrier

2015-02-12 Thread Andrei Borzenkov
В Thu, 12 Feb 2015 15:25:08 +0100 Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl пишет: On Thu, Feb 12, 2015 at 12:52:00PM +, Rauta, Alin wrote: Yes, but the updates need to be done for all links and I'm not sure adding this is a good thing. I'm now having 64 links on the switch and

Re: [systemd-devel] avahi disconnects from bus with kdbus

2015-02-12 Thread Daniel Buch
Hi again, I found another problem, again with avahi-daemon but in combination with Telepathy haze. feb 13 08:26:39 dbuch-laptop systemd-coredump[1211]: Process 1167 (telepathy-haze) of user 1000 dumped core. Stack trace of thread 1167:

Re: [systemd-devel] [PATCH] rules: Fix by-path of mmc RPMB partitions and don't blkid them

2015-02-12 Thread Martin Pitt
Martin Pitt [2015-02-12 19:52 +0100]: Lennart Poettering [2015-02-12 18:50 +0100]: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=090d25fe224c0 Looks simple enough. Though I wonder if [0-9] is the right match, shouldn't it also cover multiple numbers there?

Re: [systemd-devel] [PATCH v3] Added support for Uplink Failure Detection using BindCarrier

2015-02-12 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Feb 12, 2015 at 12:52:00PM +, Rauta, Alin wrote: Yes, but the updates need to be done for all links and I'm not sure adding this is a good thing. I'm now having 64 links on the switch and I need the failure detection in networkd to be quite fast because however even now it's

Re: [systemd-devel] systemd-networkd not discovering all devices at bootup, and thus no network is configured

2015-02-12 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Feb 11, 2015 at 09:32:00PM +0100, Lennart Poettering wrote: On Wed, 11.02.15 20:22, Keller, Jacob E (jacob.e.kel...@intel.com) wrote: I actually see the same behavior now again, so the removal of biosdevname does not solve this problem! :( Is there any more information

Re: [systemd-devel] [PATCH] Re: fstab mounts get unmounted during boot (.device unit bouncing?) -- solution

2015-02-12 Thread Lennart Poettering
On Thu, 12.02.15 13:27, Karel Zak (k...@redhat.com) wrote: On Thu, Feb 12, 2015 at 12:01:13PM +0100, Lennart Poettering wrote: And the stuff from /run is always merged into it, regardless which file is read? No, if you specify any filename and the file exists than it does not read from

Re: [systemd-devel] [PATCH] Re: fstab mounts get unmounted during boot (.device unit bouncing?) -- solution

2015-02-12 Thread Karel Zak
On Thu, Feb 12, 2015 at 03:38:13PM +0100, Lennart Poettering wrote: If I am right then as soon as you fixed libmount so that the whole handling of /etc/mtab can be turned off, then you will make that the default in Fedora, and no changes to systemd will be necessary at all, correct? Correct.

Re: [systemd-devel] [PATCH] Re: fstab mounts get unmounted during boot (.device unit bouncing?) -- solution

2015-02-12 Thread Karel Zak
On Thu, Feb 12, 2015 at 12:01:13PM +0100, Lennart Poettering wrote: And the stuff from /run is always merged into it, regardless which file is read? No, if you specify any filename and the file exists than it does not read from /run, I have fixed this mistake

Re: [systemd-devel] systemd-networkd not discovering all devices at bootup, and thus no network is configured

2015-02-12 Thread Tom Gundersen
On Thu, Feb 12, 2015 at 11:45 AM, Lennart Poettering lenn...@poettering.net wrote: On Wed, 11.02.15 22:28, Keller, Jacob E (jacob.e.kel...@intel.com) wrote: On Wed, 2015-02-11 at 21:46 +0100, Lennart Poettering wrote: On Wed, 11.02.15 20:36, Keller, Jacob E (jacob.e.kel...@intel.com) wrote:

Re: [systemd-devel] [systemd-commits] 5 commits - Makefile.am man/systemd-networkd-wait-online.service.xml src/libsystemd src/network src/systemd TODO units/systemd-networkd.service.in units/systemd-n

2015-02-12 Thread Tom Gundersen
On Mon, Feb 2, 2015 at 8:59 PM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 02.02.15 03:00, Tom Gundersen (tome...@kemper.freedesktop.org) wrote: +static int systemd_netlink_fd(int *ret) { +int n, fd, rtnl_fd = -1; + +n = sd_listen_fds(true); +if (n =

[systemd-devel] [PATCH] rules: Fix by-path of mmc RPMB partitions and don't blkid them

2015-02-12 Thread Martin Pitt
Linux 3.10+ exposes RPMB (Replay Protected Memory Block) partitions of MMC devices [1] ; trying to read them with blkid or other unspecific means will cause kernel buffer I/O errors and timeouts. So don't run blkid on these. Also ensure that /dev/disk/by-path creates proper symlinks and exposes

Re: [systemd-devel] [PATCH] Re: fstab mounts get unmounted during boot (.device unit bouncing?) -- solution

2015-02-12 Thread Martin Pitt
Hey Lennart and Karel, Lennart Poettering [2015-02-12 15:38 +0100]: I will not apply it to systemd git. Ack. I put a hacked version into the Debian package for now, as we'll have to live with util-linux 2.25 for the impending release:

Re: [systemd-devel] systemd-networkd not discovering all devices at bootup, and thus no network is configured

2015-02-12 Thread Keller, Jacob E
On Thu, 2015-02-12 at 14:23 +0100, Tom Gundersen wrote: On Thu, Feb 12, 2015 at 11:45 AM, Lennart Poettering lenn...@poettering.net wrote: On Wed, 11.02.15 22:28, Keller, Jacob E (jacob.e.kel...@intel.com) wrote: On Wed, 2015-02-11 at 21:46 +0100, Lennart Poettering wrote: On Wed,