Re: [systemd-devel] kernel-install questions

2013-09-25 Thread Tom Gundersen
On Wed, Sep 25, 2013 at 3:35 PM, Tom Gundersen t...@jklm.no wrote: [1mdiff --git a/Makefile b/Makefile [m [1mindex 8d0668f..248d59c 100644 [m [1m--- a/Makefile [m [1m+++ b/Makefile [m [36m@@ -335,7 +335,7 @@ [m [mOBJCOPY = $(CROSS_COMPILE)objcopy [m OBJDUMP = $(CROSS_COMPILE)objdump

Re: [systemd-devel] kernel-install questions

2013-09-25 Thread Tom Gundersen
On Wed, Sep 25, 2013 at 4:37 PM, Kay Sievers k...@vrfy.org wrote: On Wed, Sep 25, 2013 at 3:35 PM, Tom Gundersen t...@jklm.no wrote: *) With /boot on fat, 'add' fails for me due to not being able to use cp --preserve. How is this meant to work (or was it just not tested on fat)? Dropping

[systemd-devel] [PATCH 1/2] kernel-install: avoid using 'cp --preserve'

2013-09-25 Thread Tom Gundersen
Force 0600 and root:root instead, to avoid problems with fat filesystems. --- src/kernel-install/90-loaderentry.install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kernel-install/90-loaderentry.install b/src/kernel-install/90-loaderentry.install index

[systemd-devel] [PATCH 2/2] kernel-install: add compat with 'installkernel'

2013-09-25 Thread Tom Gundersen
If 'kernel-install' is called as 'installkernel' it will be compatible with the syntax used by the kernel's build system. This means it can be called by doing 'make install' in a kernel build directory, if the correct symlink has been installed (which we don't do by default yet). ---

Re: [systemd-devel] [PATCH] Add a bit more explicit message, to help confused users

2013-09-27 Thread Tom Gundersen
On Fri, Sep 27, 2013 at 11:43 AM, m...@zarb.org wrote: From: Michael Scherer m...@zarb.org Seeing http://www.happyassassin.net/2013/09/27/further-sysadmin-adventures-wheres-my-freeipa-badge/ it seems that the default message is a bit confusing for people who never encountered it before, so

Re: [systemd-devel] How to add a dependency to a systemd.mount that is activated by /bin/mount?

2013-09-27 Thread Tom Gundersen
On Wed, Sep 25, 2013 at 3:11 AM, Tim Landscheidt t...@tim-landscheidt.de wrote: on Fedora 19/systemd 204, I want systemd on mount /mnt/test by a non-root user to automatically call a pro- gram as root (in real life cryptsetup to unlock the underly- ing device, for testing here echo) before

Re: [systemd-devel] What is the best way to run a shell script through 'ExecStart'

2013-09-30 Thread Tom Gundersen
Hi Muhammad, On Mon, Sep 30, 2013 at 3:25 PM, Muhammad Shakeel muhammad_shak...@mentor.com wrote: I have been trying to convert a LSB initscript of a package into corresponding systemd service fyile. Most init scripts are simple and translating them into systemd unit files is non-trivial. In

Re: [systemd-devel] [PATCH 1/3] fstab-generator: Generate explicit dependencies on systemd-fsck@.service instead of using FsckPassNo

2013-09-30 Thread Tom Gundersen
On Tue, Oct 1, 2013 at 3:07 AM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 30.09.13 01:34, Thomas Bächler (tho...@archlinux.org) wrote: I'd love to get rid of FsckPassNo=, but I fear that's not that easy... After all it's not just a boolean, it actually influences the ordering

Re: [systemd-devel] [PATCH 2/2] kernel-install: add compat with 'installkernel'

2013-10-01 Thread Tom Gundersen
On Tue, Oct 1, 2013 at 5:45 PM, Harald Hoyer har...@redhat.com wrote: On 09/26/2013 12:38 AM, Tom Gundersen wrote: If 'kernel-install' is called as 'installkernel' it will be compatible with the syntax used by the kernel's build system. This means it can be called by doing 'make install

Re: [systemd-devel] Randomly on shutdown, stop timeout for user at .service (repeated report, different user)

2013-10-04 Thread Tom Gundersen
On Fri, Oct 4, 2013 at 8:57 PM, Kok, Auke-jan H auke-jan.h@intel.com wrote: On Fri, Oct 4, 2013 at 9:37 AM, Toms Seisums toms.seis...@gmail.com wrote: [object Object] Look at Gmail failing flat on its face... lol Aside from that, can you perhaps try this patch: ---

[systemd-devel] [WIP][PATCH 1/3] inhibit: port to sd-bus

2013-10-20 Thread Tom Gundersen
--- Hi Lennart, This and the next patch trigger the bug in sd_bus_message_read() we discussed. I'm just posting them here to not forget about it. Also, I'm not sure I'm reading the messages in the best way in the scond patch. The third patch has a helper function doing what I want. Is there a

[systemd-devel] [WIP][PATCH 2/3] machinectl: port to sd-bus

2013-10-20 Thread Tom Gundersen
Is there a better way to parse the messages in show_one()? --- Makefile.am | 3 +- src/libsystemd-bus/bus-util.c | 185 +++ src/libsystemd-bus/bus-util.h | 3 + src/machine/machinectl.c | 408 +++--- 4 files changed,

[systemd-devel] [WIP][PATCH 3/3] sd-bus: why not allow entering containers with unknown contents?

2013-10-20 Thread Tom Gundersen
--- src/machine/machinectl.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index ba0ceb7..5731247 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -334,6 +334,21 @@ static int

Re: [systemd-devel] [PATCH] Experimental socket process pool.

2013-10-21 Thread Tom Gundersen
On Monday, October 21, 2013, David Strauss da...@davidstrauss.net wrote: This daemon is a proof-of-concept that manages a process pool of (usually) socket-activated child processes. It exploits the ability to have multiple processes accept() on the same socket, allowing the kernel to

Re: [systemd-devel] [WIP][PATCH 1/3] inhibit: port to sd-bus

2013-10-22 Thread Tom Gundersen
On Sun, Oct 20, 2013 at 10:59 PM, Tom Gundersen t...@jklm.no wrote: --- Hi Lennart, This and the next patch trigger the bug in sd_bus_message_read() we discussed. I'm just posting them here to not forget about it. This has now been fixed, and this patch has been pushed. Also, I'm not sure

[systemd-devel] [RFC][PATCH] udev: add network link configuration tool

2013-10-26 Thread Tom Gundersen
-basic-offset: 8; indent-tabs-mode: nil -*-*/ + +/*** + This file is part of systemd. + + Copyright (C) 2013 Tom Gundersen t...@jklm.no + + systemd is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as published by + the Free Software

Re: [systemd-devel] [RFC][PATCH] udev: add network link configuration tool

2013-10-26 Thread Tom Gundersen
On Sat, Oct 26, 2013 at 8:39 PM, Jan Engelhardt jeng...@inai.de wrote: On Saturday 2013-10-26 20:32, Kay Sievers wrote: On Sat, Oct 26, 2013 at 8:16 PM, Jan Engelhardt jeng...@inai.de wrote: On Saturday 2013-10-26 16:16, Tom Gundersen wrote: The tool is configured by .link files in /etc/net

Re: [systemd-devel] [RFC][PATCH] udev: add network link configuration tool

2013-10-26 Thread Tom Gundersen
On Sat, Oct 26, 2013 at 8:40 PM, Tom Gundersen t...@jklm.no wrote: On Sat, Oct 26, 2013 at 8:39 PM, Jan Engelhardt jeng...@inai.de wrote: On Saturday 2013-10-26 20:32, Kay Sievers wrote: On Sat, Oct 26, 2013 at 8:16 PM, Jan Engelhardt jeng...@inai.de wrote: On Saturday 2013-10-26 16:16, Tom

[systemd-devel] [RFC][PATCH] libsystemd-rtnl: add a rtnetlink library

2013-10-27 Thread Tom Gundersen
-internal.h @@ -0,0 +1,40 @@ +/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ + +/*** + This file is part of systemd. + + Copyright 2013 Tom Gundersen t...@jklm.no + + systemd is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public

Re: [systemd-devel] [RFC][PATCH] libsystemd-rtnl: add a rtnetlink library

2013-10-27 Thread Tom Gundersen
On Sun, Oct 27, 2013 at 9:47 PM, Tom Gundersen t...@jklm.no wrote: This is intentionally as similar to sd-bus as possible. While it would be simple to export it, the intentions is to keep this internal (at least for the forseeable future). Currently only synchronous communication

Re: [systemd-devel] [RFC][PATCH] udev: add network link configuration tool

2013-10-28 Thread Tom Gundersen
On Mon, Oct 28, 2013 at 6:54 PM, Lennart Poettering lenn...@poettering.net wrote: +ctx-link_dirs_ts_usec = calloc(strv_length(ctx-link_dirs), sizeof(usec_t)); [...] Isn't it sufficient to merge these timestamps into a single one that is the newest of all timestamps you find? After

Re: [systemd-devel] [RFC][PATCH] udev: add network link configuration tool

2013-10-28 Thread Tom Gundersen
On Mon, Oct 28, 2013 at 8:33 PM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 28.10.13 20:30, Tom Gundersen (t...@jklm.no) wrote: On Mon, Oct 28, 2013 at 6:54 PM, Lennart Poettering lenn...@poettering.net wrote: +struct link_config_ctx { +LIST_HEAD(link_config, links

Re: [systemd-devel] [RFC][PATCH] udev: add network link configuration tool

2013-10-28 Thread Tom Gundersen
On Mon, Oct 28, 2013 at 9:10 PM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 28.10.13 21:07, Tom Gundersen (t...@jklm.no) wrote: On Mon, Oct 28, 2013 at 8:33 PM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 28.10.13 20:30, Tom Gundersen (t...@jklm.no) wrote

Re: [systemd-devel] [RFC][PATCH] udev: add network link configuration tool

2013-10-28 Thread Tom Gundersen
On Mon, Oct 28, 2013 at 6:54 PM, Lennart Poettering lenn...@poettering.net wrote: +struct link_config_ctx { +LIST_HEAD(link_config, links); + +char **link_dirs; +usec_t *link_dirs_ts_usec; +}; Maybe define a local _cleanup_ macro here?

Re: [systemd-devel] [WIP][PATCH 1/3] inhibit: port to sd-bus

2013-10-28 Thread Tom Gundersen
On Mon, Oct 28, 2013 at 7:54 PM, Lennart Poettering lenn...@poettering.net wrote: On Sun, 20.10.13 23:59, Tom Gundersen (t...@jklm.no) wrote: --- Hi Lennart, This and the next patch trigger the bug in sd_bus_message_read() we discussed. I'm just posting them here to not forget about

Re: [systemd-devel] [PATCH 1/2] bus-util: add ssh and polkit connection methods

2013-10-30 Thread Tom Gundersen
Hi Simon, On Wed, Oct 30, 2013 at 7:02 AM, Peeters Simon peeters.si...@gmail.com wrote: 2013/10/30 Simon Peeters peeters.si...@gmail.com: bus_connect_system_ssh is shamelessly copied from Tom Gundersen's wip patches Aparently i am 3 hours late to the party, so only the polkit part from this

[systemd-devel] Default udev log priority

2013-10-30 Thread Tom Gundersen
Kay, The default /etc/udev/udev.conf indicates (by a commented out udev_log=info), that libudev's default log level is INFO. However, it is actually ERR. I suggest we change the default log level to be INFO as that is a lot more useful (and more standard I believe) than ERR. Any objections?

Re: [systemd-devel] [PATCH] build: lookup for the mount binary

2013-10-30 Thread Tom Gundersen
On Wed, Oct 30, 2013 at 7:12 PM, Cristian Rodríguez crrodrig...@opensuse.org wrote: Real executable might be in /usr and not in /bin I'm not against the patch, but the justification seems lacking... Does anyone actually do this? I.e., have a mount that is not symlinked to by /bin/mount? -t

Re: [systemd-devel] [PATCH] build: lookup for the mount binary

2013-10-30 Thread Tom Gundersen
On Wed, Oct 30, 2013 at 7:51 PM, Cristian Rodríguez crrodrig...@opensuse.org wrote: El 30/10/13 15:39, Dave Reisner escribió: I think Tom meant that /bin would be a symlink to /usr/bin, which implicitly links /bin/mount to /usr/bin/mount. In openSUSE, /bin is not a symlink to /usr/bin, only

Re: [systemd-devel] [RFC][PATCH] networkd: add a basic network daemon

2013-11-05 Thread Tom Gundersen
On Wed, Nov 6, 2013 at 2:25 AM, Lennart Poettering lenn...@poettering.net wrote: On Wed, 06.11.13 01:33, Tom Gundersen (t...@jklm.no) wrote: Short-term TODO: - make rtnl calls asynchronous Don't wait for too long for this! The longer you wait the more code you have to rework

Re: [systemd-devel] [RFC][PATCH] networkd: add a basic network daemon

2013-11-06 Thread Tom Gundersen
On Wed, Nov 6, 2013 at 5:00 AM, David Strauss da...@davidstrauss.net wrote: Another critical feature for server configs is bonding. It's possible right from Kickstart and with the normal configurations in Fedora. We use it on every bare-metal server we manage to get HA networking. Bonding (or

Re: [systemd-devel] [RFC][PATCH] networkd: add a basic network daemon

2013-11-06 Thread Tom Gundersen
On Wed, Nov 6, 2013 at 3:13 AM, Jan Engelhardt jeng...@inai.de wrote: On Wednesday 2013-11-06 02:57, Tom Gundersen wrote: Gateway=192.168.1.1 Address=label@192.168.1.23/24 Address=fe80::9aee:94ff:fe3f:c618/64 The @ syntax is my invention, but i'm very happy to change it if anyone has

Re: [systemd-devel] Configuration file parser library

2013-11-09 Thread Tom Gundersen
On Sat, Nov 9, 2013 at 3:02 PM, Chris Morgan chmor...@gmail.com wrote: Hello. I wanted to implement a configuration file format for an application of mine that uses a similar format to what systemd uses. I was wondering if the parser used today was from an external library. I googled a bit

Re: [systemd-devel] [RFC][PATCH] networkd: add a basic network daemon

2013-11-09 Thread Tom Gundersen
On Wed, Nov 6, 2013 at 12:32 PM, Lennart Poettering lenn...@poettering.net wrote: On Wed, 06.11.13 02:57, Tom Gundersen (t...@jklm.no) wrote: Gateway=192.168.1.1 Address=label@192.168.1.23/24 Address=fe80::9aee:94ff:fe3f:c618/64 Hmm, what's the plan regarding confguration of scopes

Re: [systemd-devel] [PATCH] build-sys: Add --disable-networkd option

2013-11-12 Thread Tom Gundersen
On Tue, Nov 12, 2013 at 9:52 PM, Colin Walters walt...@verbum.org wrote: For GNOME (Continuous), we are unlikely to require or want systemd-networkd in the near term future; all of the tools and code are targeting NetworkManager. The long term story is still an open question of course, but

Re: [systemd-devel] systemd-networkd questions

2013-11-12 Thread Tom Gundersen
Hi Dan, On Tue, Nov 12, 2013 at 10:38 PM, Dan Williams d...@redhat.com wrote: 1) what is lacking in other userspace solutions (NetworkManager, ConnMan, wicked, initscripts, etc) that requires yet-another-network-daemon? Without criticizing any of the existing solutions, some of the things

Re: [systemd-devel] systemd-networkd questions

2013-11-13 Thread Tom Gundersen
On Wed, Nov 13, 2013 at 5:31 PM, Bill Nottingham nott...@redhat.com wrote: Tom Gundersen (t...@jklm.no) said: Without criticizing any of the existing solutions, some of the things that motivated my interest in this is that I think we need: something easily configured via plain configuration

Re: [systemd-devel] systemd-networkd questions

2013-11-13 Thread Tom Gundersen
On Wed, Nov 13, 2013 at 10:41 PM, Patrik Flykt patrik.fl...@linux.intel.com wrote: Hi, On Wed, 2013-11-13 at 17:39 +0100, Tom Gundersen wrote: I'm sure I would like avoid that :) Hopefully we'll be able to reuse the dhcp client from connman, but as the work of converting

Re: [systemd-devel] [PATCH 04/28] build: Add initial build support

2013-11-13 Thread Tom Gundersen
On Wed, Nov 13, 2013 at 10:22 PM, Patrik Flykt patrik.fl...@linux.intel.com wrote: The client test program is the only one to be built so far. --- Makefile.am | 15 +++ configure.ac |9 + src/dhcp/Makefile |1 + 3 files changed, 25 insertions(+)

Re: [systemd-devel] [PATCH 04/28] build: Add initial build support

2013-11-13 Thread Tom Gundersen
On Thu, Nov 14, 2013 at 1:28 AM, Tom Gundersen t...@jklm.no wrote: On Wed, Nov 13, 2013 at 10:22 PM, Patrik Flykt patrik.fl...@linux.intel.com wrote: The client test program is the only one to be built so far. --- Makefile.am | 15 +++ configure.ac |9

Re: [systemd-devel] [PATCH 7/7] systemd-stdio-bridge: make it socket-activatable and usable as kdbus bridge

2013-11-15 Thread Tom Gundersen
On Fri, Nov 15, 2013 at 7:32 PM, Daniel Mack zon...@gmail.com wrote: Augment systemd-stdio-bridge a bit to make it a 1:1 bridge from legacy DBus clients to kdbus. In particular, * allow setting the bus path of the upstream bus as command line argument * use sd_listen_fds() for systemd's

Re: [systemd-devel] Restart instantiated services after suspend

2013-11-19 Thread Tom Gundersen
On Tue, Nov 19, 2013 at 5:18 PM, Marcos Felipe Rasia de Mello marcos...@gmail.com wrote: Hi folks, I am trying to disable HDDs power management in a systemd way (aka no shell scripts :) /etc/udev/rules.d/99-hdparm.rules SUBSYSTEM==block, KERNEL==sd*, ATTR{removable}==0, TAG+=systemd,

[systemd-devel] [RFC][PATCH] conf-parser: allow instanced sections

2013-11-19 Thread Tom Gundersen
This will treat [Section:bar], [Section:foo], and [Section:baz], as [Section], but pass on the full section name to the options parser so it can treat them separately. --- This is needed so we can add [Address:xxx] and [Route:xxx] sections ot .network files. src/shared/conf-parser.c | 28

Re: [systemd-devel] [RFC][PATCH] conf-parser: allow instanced sections

2013-11-19 Thread Tom Gundersen
On Tue, Nov 19, 2013 at 7:07 PM, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and Tom Gundersen at 19/11/13 16:57 did gyre and gimble: This will treat [Section:bar], [Section:foo], and [Section:baz], as [Section], but pass on the full section name to the options parser so it can

Re: [systemd-devel] [PATCH] bus/rtnl: silence warnings with clang

2013-11-19 Thread Tom Gundersen
Hi Thomas, I'm not able to apply this patch, could you please resend using git-send-email? Cheers, Tom On Tue, Nov 19, 2013 at 10:16 PM, Thomas H.P. Andersen pho...@gmail.com wrote: --- src/libsystemd-bus/bus-internal.h | 2 +- src/libsystemd-rtnl/rtnl-internal.h | 2 +- 2 files

Re: [systemd-devel] [RFC][PATCH] conf-parser: allow instanced sections

2013-11-20 Thread Tom Gundersen
On Wed, Nov 20, 2013 at 12:02 PM, Jóhann B. Guðmundsson johan...@gmail.com wrote: On 11/19/2013 09:20 PM, Tom Gundersen wrote: On Tue, Nov 19, 2013 at 7:07 PM, Colin Guthriegm...@colin.guthr.ie wrote: What I have in mind (though it is not dictated by this patch) is something different

Re: [systemd-devel] [PATCH] bus/rtnl: silence warnings with clang

2013-11-20 Thread Tom Gundersen
On Wed, Nov 20, 2013 at 7:48 AM, Thomas H.P. Andersen pho...@gmail.com wrote: Hi Tom, Sorry. Git send-email is just giving me error messages right now. I have attached the patch instead. Thanks! Applied. -t On Wed, Nov 20, 2013 at 1:12 AM, Tom Gundersen t...@jklm.no wrote: Hi Thomas, I'm

Re: [systemd-devel] [RFC][PATCH] conf-parser: distinguish between multiple sections with the same name

2013-11-20 Thread Tom Gundersen
On Wed, Nov 20, 2013 at 2:57 PM, Thomas Bächler tho...@archlinux.org wrote: Am 20.11.2013 14:38, schrieb Tom Gundersen: Pass on the line on which a section was decleared to the parsers, so they can distinguish between multiple sections (if they chose to). Currently no parsers take advantage

Re: [systemd-devel] [HEADS-UP] PID 1 now ported to libsystemd-bus

2013-11-20 Thread Tom Gundersen
On Wed, Nov 20, 2013 at 9:08 PM, Lennart Poettering lenn...@poettering.net wrote: Heya! I just pushed a huge patch that ports the last remaining bit from libdbus to libsystemd-bus: PID 1 itself. It's a large patch, touching a lot of code. I did quite a bit of (personal and automated) testing

Re: [systemd-devel] [HEADS-UP] PID 1 now ported to libsystemd-bus

2013-11-20 Thread Tom Gundersen
On Wed, Nov 20, 2013 at 11:44 PM, Lennart Poettering lenn...@poettering.net wrote: On Wed, 20.11.13 23:10, Tom Gundersen (t...@jklm.no) wrote: On Wed, Nov 20, 2013 at 9:08 PM, Lennart Poettering lenn...@poettering.net wrote: Heya! I just pushed a huge patch that ports the last remaining

Re: [systemd-devel] [HEADS-UP] PID 1 now ported to libsystemd-bus

2013-11-20 Thread Tom Gundersen
On Thu, Nov 21, 2013 at 12:06 AM, Lennart Poettering lenn...@poettering.net wrote: On Wed, 20.11.13 23:58, Tom Gundersen (t...@jklm.no) wrote: I tried comparing latest git with v208 in systemd-nspawn. Booting latest git on bare metal I get: Program terminated with signal 11, Segmentation

Re: [systemd-devel] [RFC][PATCH] conf-parser: distinguish between multiple sections with the same name

2013-11-20 Thread Tom Gundersen
On Wed, Nov 20, 2013 at 10:37 PM, Lennart Poettering lenn...@poettering.net wrote: On Wed, 20.11.13 14:38, Tom Gundersen (t...@jklm.no) wrote: Pass on the line on which a section was decleared to the parsers, so they can distinguish between multiple sections (if they chose to). Currently

Re: [systemd-devel] [HEADS-UP] PID 1 now ported to libsystemd-bus

2013-11-22 Thread Tom Gundersen
On Fri, Nov 22, 2013 at 2:33 PM, Lennart Poettering lenn...@poettering.net wrote: On Thu, 21.11.13 10:03, Oleksii Shevchuk (alx...@gmail.com) wrote: Segfaults fixed, but: systemd-logind[2167]: Failed to start session scope session-3.scope: Invalid arguments 'ssa(sv)' to call

Re: [systemd-devel] systemd-networkd with 802.1x

2013-11-24 Thread Tom Gundersen
On Sun, Nov 24, 2013 at 2:27 PM, Umut Tezduyar Lindskog umut.tezdu...@axis.com wrote: Are there any plans to support 802.1x by systemd-networkd? To the best of my knowledge no one is working on it now, nor planning on working on it any time soon. However, it would be within the scope of

Re: [systemd-devel] send -isolateDevice and -config option to Xserver

2013-11-24 Thread Tom Gundersen
On Sun, Nov 24, 2013 at 11:05 PM, Floris jkflo...@dds.nl wrote: Op Sat, 23 Nov 2013 01:39:33 +0100 schreef Laércio de Sousa lbsous...@gmail.com: Hi Floris! The best option for you is to use Nouveau open-source drivers with your NVIDIA card, because they are more systemd-friendly. If you

Re: [systemd-devel] [systemd-commits] src/network

2013-11-25 Thread Tom Gundersen
On Tue, Nov 26, 2013 at 12:40 AM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 25.11.13 15:20, Dave Reisner (dreis...@kemper.freedesktop.org) wrote: uint64_t can be formatted correctly with %ju, rather than casting to unsigned and potentially losing accuracy. Oh,

Re: [systemd-devel] [systemd-commits] src/network

2013-11-25 Thread Tom Gundersen
On Tue, Nov 26, 2013 at 1:05 AM, Tom Gundersen t...@jklm.no wrote: On Tue, Nov 26, 2013 at 12:40 AM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 25.11.13 15:20, Dave Reisner (dreis...@kemper.freedesktop.org) wrote: uint64_t can be formatted correctly with %ju, rather than

Re: [systemd-devel] udev firmware loading

2013-11-27 Thread Tom Gundersen
On Wed, Nov 27, 2013 at 12:53 PM, Martin Pitt martin.p...@ubuntu.com wrote: Kay Sievers [2013-11-27 12:47 +0100]: All of that is gone and will not come back, udev has no idea about device firmware and does no longer want to know about it. There is no way to tell these days what firmware was

Re: [systemd-devel] [PATCH v2 02/26] dhcp: Add DHCP client initialization

2013-11-27 Thread Tom Gundersen
On Wed, Nov 27, 2013 at 3:13 PM, Patrik Flykt patrik.fl...@linux.intel.com wrote: Hi, On Mon, 2013-11-25 at 23:59 +0100, Lennart Poettering wrote: On Mon, 25.11.13 09:13, Patrik Flykt (patrik.fl...@linux.intel.com) wrote: + +DHCPClient *sd_dhcp_client_new(void) +{ +

Re: [systemd-devel] [PATCH] networkd: Initialize variable to NULL

2013-11-27 Thread Tom Gundersen
On Wed, Nov 27, 2013 at 4:28 PM, Patrik Flykt patrik.fl...@linux.intel.com wrote: If any number of arguments are given, _cleanup_manager_free_ is used with unitialized memory causing a crash. --- src/network/networkd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [systemd-devel] [PATCH] util: don't consider trailing whitespaces as an empty string in split_quoted

2013-11-27 Thread Tom Gundersen
On Wed, Nov 27, 2013 at 6:00 PM, Lukas Nykryn lnyk...@redhat.com wrote: --- src/shared/util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/util.c b/src/shared/util.c index 3a4d196..c68ab09 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@

Re: [systemd-devel] fstab, rootfs on btrfs

2013-11-27 Thread Tom Gundersen
On Wed, Nov 27, 2013 at 8:15 PM, Chris Murphy li...@colorremedies.com wrote: On Nov 27, 2013, at 4:53 AM, Kay Sievers k...@vrfy.org wrote: On Wed, Nov 27, 2013 at 5:16 AM, Chris Murphy li...@colorremedies.com wrote: In Fedora 20, by default anaconda sets fs_passno in fstab to 1 for / on

Re: [systemd-devel] [PATCH] util: don't consider trailing whitespaces as an empty string in split_quoted

2013-11-28 Thread Tom Gundersen
On Wed, Nov 27, 2013 at 7:12 PM, Dave Reisner d...@falconindy.com wrote: On Wed, Nov 27, 2013 at 06:45:06PM +0100, Tom Gundersen wrote: On Wed, Nov 27, 2013 at 6:00 PM, Lukas Nykryn lnyk...@redhat.com wrote: --- src/shared/util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

Re: [systemd-devel] [RFC] logind: introduce session positions

2013-12-02 Thread Tom Gundersen
On Sun, Dec 1, 2013 at 12:43 PM, David Herrmann dh.herrm...@gmail.com wrote: logind has no concept of session ordering. Sessions have a unique name, some attributes about the capabilities and that's already it. There is currently no stable+total order on sessions. If we use the logind API to

Re: [systemd-devel] systemd unit review requested

2013-12-05 Thread Tom Gundersen
On 5 Dec 2013 07:48, Peter Hutterer peter.hutte...@who-t.net wrote: When I fired up F20 on one of my laptops here I noticed that inputattach doesn't work anymore for serial Wacom devices. It used to be started through udev, but that doesn't work anymore. So moving to a systemd service it is,

Re: [systemd-devel] [PATCH] test: rework run_qemu

2013-12-09 Thread Tom Gundersen
On 10 Dec 2013 02:44, Ronny Chevalier chevalier.ro...@gmail.com wrote: Do we really want to add a compat for several distributions ? Because why not Archlinux, Ubuntu,... too ? I used Fedora's path by default because it was in the previous script. Maybe just use the path created by our

Re: [systemd-devel] [PATCH v3 01/26] dhcp: Add DHCP protocol structures and initial defines

2013-12-10 Thread Tom Gundersen
On 10 Dec 2013 17:45, Patrik Flykt patrik.fl...@linux.intel.com wrote: On Tue, 2013-12-10 at 02:46 +0100, Lennart Poettering wrote: +uint32_t ciaddr; +uint32_t yiaddr; +uint32_t siaddr; +uint32_t giaddr; Hmmm, why uin32_t? Shouldn't this be32_t?

Re: [systemd-devel] [PATCHv2] login: Don't stop a running user manager from garbage-collecting the user.

2013-12-18 Thread Tom Gundersen
On Sun, Dec 15, 2013 at 12:06 PM, Thomas Bächler tho...@archlinux.org wrote: With the current logic, a user will never be garbage-collected, since its manager will always be around. Change the logic such that a user is garbage-collected when it has no sessions and linger is disabled. ---

Re: [systemd-devel] [PATCH 00/11] Finalize initial DHCP support

2013-12-20 Thread Tom Gundersen
On Fri, Dec 20, 2013 at 4:43 PM, Marcel Holtmann mar...@holtmann.org wrote: Hi Patrik, The first seven patches fix a few issues with the current code. Patch 09 adds DHCP lease renewing support when timer T1 triggers. Using the UDP socket sending implementation in patch 08, the DHCP lease

Re: [systemd-devel] [PATCH] fstab-generator: Do not try to fsck non-devices

2013-12-21 Thread Tom Gundersen
On Sat, Dec 21, 2013 at 11:22 AM, Thomas Bächler tho...@archlinux.org wrote: This fixes a regression introduced in 64e70e4 where the mount fails when fstab is misconfigured with fs_passno 0 on a virtual file system like tmpfs. --- src/fstab-generator/fstab-generator.c | 8 +--- 1 file

Re: [systemd-devel] [PATCH] fstab-generator: Do not try to fsck non-devices

2013-12-21 Thread Tom Gundersen
On Sat, Dec 21, 2013 at 5:42 PM, Kay Sievers k...@vrfy.org wrote: On Sat, Dec 21, 2013 at 5:33 PM, Dave Reisner d...@falconindy.com wrote: On Sat, Dec 21, 2013 at 12:49:07PM +0100, Tom Gundersen wrote: On Sat, Dec 21, 2013 at 11:22 AM, Thomas Bächler tho...@archlinux.org wrote: This fixes

Re: [systemd-devel] fstrim cron job

2013-12-22 Thread Tom Gundersen
On Sat, Dec 21, 2013 at 7:11 PM, Chris Murphy li...@colorremedies.com wrote: On Dec 21, 2013, at 6:44 AM, Kay Sievers k...@vrfy.org wrote: Trimming should be the job of the filesystem, not for a nasty cron job. We do not want to support legacy filesystems with upstream shipped systemd units.

Re: [systemd-devel] [PATCH 00/11] Finalize initial DHCP support

2013-12-22 Thread Tom Gundersen
On Fri, Dec 20, 2013 at 6:47 PM, Marcel Holtmann mar...@holtmann.org wrote: Hi Tom, The first seven patches fix a few issues with the current code. Patch 09 adds DHCP lease renewing support when timer T1 triggers. Using the UDP socket sending implementation in patch 08, the DHCP lease

Re: [systemd-devel] [PATCH 02/11] libsystemd-dhcp: Return proper error if bind fails

2013-12-22 Thread Tom Gundersen
On Fri, Dec 20, 2013 at 10:23 PM, Lennart Poettering lenn...@poettering.net wrote: On Fri, 20.12.13 16:35, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Fri, Dec 20, 2013 at 05:16:11PM +0200, Patrik Flykt wrote: This also fixes a minor indentation damage. ---

Re: [systemd-devel] [PATCH 00/11] Finalize initial DHCP support

2013-12-22 Thread Tom Gundersen
On Fri, Dec 20, 2013 at 4:16 PM, Patrik Flykt patrik.fl...@linux.intel.com wrote: The first seven patches fix a few issues with the current code. Patch 09 adds DHCP lease renewing support when timer T1 triggers. Using the UDP socket sending implementation in patch 08, the DHCP lease renewal

Re: [systemd-devel] [PATCH v2] rtnl: fix memory corruptions after realloc

2014-01-01 Thread Tom Gundersen
On Wed, Jan 1, 2014 at 2:18 AM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: struct sd_rtnl_message would keep two additional pointers into the hdr field. Every time hdr was realloced, those pointers should be adjusted, but weren't. Or rather, only one of the two were adjusted, right?

[systemd-devel] [RFT] DHCPv4 support in networkd

2014-01-01 Thread Tom Gundersen
Hi guys, I just pushed the last couple of patches to enable DHCPv4 support in networkd[0]. Testing and feedback would be greatly appreciated. It is still very basic, but I'm personally using it full-time on my laptop (replacing NetworkManager/ConnMan), so it should be complete enough to at least

Re: [systemd-devel] [RFT] DHCPv4 support in networkd

2014-01-02 Thread Tom Gundersen
On Thu, Jan 2, 2014 at 3:43 AM, Kay Sievers k...@vrfy.org wrote: On Wed, Jan 1, 2014 at 4:41 PM, Tom Gundersen t...@jklm.no wrote: I just pushed the last couple of patches to enable DHCPv4 support in networkd[0]. Testing and feedback would be greatly appreciated. It is still very basic

Re: [systemd-devel] [RFT] DHCPv4 support in networkd

2014-01-02 Thread Tom Gundersen
On Thu, Jan 2, 2014 at 12:56 PM, Holger Schurig holgerschu...@gmail.com wrote: AFAIK Mac OSX does a trick here Yeah, and we should do the same: http://tools.ietf.org/search/rfc4436. Cheers, Tom ___ systemd-devel mailing list

Re: [systemd-devel] [RFT] DHCPv4 support in networkd

2014-01-02 Thread Tom Gundersen
Hei Reindl, On Thu, Jan 2, 2014 at 3:52 PM, Reindl Harald h.rei...@thelounge.net wrote: Am 02.01.2014 13:55, schrieb Tom Gundersen: On Thu, Jan 2, 2014 at 12:56 PM, Holger Schurig holgerschu...@gmail.com wrote: AFAIK Mac OSX does a trick here Yeah, and we should do the same: http

Re: [systemd-devel] [RFT] DHCPv4 support in networkd

2014-01-02 Thread Tom Gundersen
On Thu, Jan 2, 2014 at 4:37 PM, Reindl Harald h.rei...@thelounge.net wrote: Am 02.01.2014 16:29, schrieb Tom Gundersen: Hei Reindl, On Thu, Jan 2, 2014 at 3:52 PM, Reindl Harald h.rei...@thelounge.net wrote: Am 02.01.2014 13:55, schrieb Tom Gundersen: On Thu, Jan 2, 2014 at 12:56 PM

Re: [systemd-devel] [RFT] DHCPv4 support in networkd

2014-01-02 Thread Tom Gundersen
On Thu, Jan 2, 2014 at 4:48 PM, Reindl Harald h.rei...@thelounge.net wrote: Am 02.01.2014 16:41, schrieb Tom Gundersen: On Thu, Jan 2, 2014 at 4:37 PM, Reindl Harald h.rei...@thelounge.net wrote: the problems are that if someone comes back with his Apple notebook this crap starts to using

Re: [systemd-devel] [RFC] Initial libsystemd-asyncns commit

2014-01-02 Thread Tom Gundersen
On Wed, Dec 11, 2013 at 2:41 AM, Lennart Poettering lenn...@poettering.net wrote: On Wed, 11.12.13 02:13, Daniel Buch (boogiewasth...@gmail.com) wrote: Heya, Hmm, so thinking about it I have the suspicion this should probably be linked into libsystemd-bus, and thus live in

Re: [systemd-devel] [RFC] Initial libsystemd-asyncns commit

2014-01-02 Thread Tom Gundersen
On Thu, Jan 2, 2014 at 10:53 PM, Tom Gundersen t...@jklm.no wrote: On Wed, Dec 11, 2013 at 2:41 AM, Lennart Poettering lenn...@poettering.net wrote: On Wed, 11.12.13 02:13, Daniel Buch (boogiewasth...@gmail.com) wrote: Heya, Hmm, so thinking about it I have the suspicion this should

[systemd-devel] [RFC] networkd/udev: match on 'ethernet' devices

2014-01-03 Thread Tom Gundersen
Hi, I just pushed a change[0] which allows the match syntax Type=ethernet to match on network devices without a DEVTYPE. We had a discussion on IRC whether we should call it Type=wired or Type=ethernet. I think the former may be more intuitive, but the latter seems to be more in line with what

Re: [systemd-devel] [RFC] networkd/udev: match on 'ethernet' devices

2014-01-03 Thread Tom Gundersen
On Sat, Jan 4, 2014 at 1:22 AM, Greg KH gre...@linuxfoundation.org wrote: On Fri, Jan 03, 2014 at 08:54:17PM +0100, Tom Gundersen wrote: Hi, I just pushed a change[0] which allows the match syntax Type=ethernet to match on network devices without a DEVTYPE. We had a discussion on IRC

Re: [systemd-devel] [RFC] networkd/udev: match on 'ethernet' devices

2014-01-03 Thread Tom Gundersen
On Sat, Jan 4, 2014 at 2:00 AM, Greg KH gre...@linuxfoundation.org wrote: On Sat, Jan 04, 2014 at 01:44:08AM +0100, Tom Gundersen wrote: On Sat, Jan 4, 2014 at 1:22 AM, Greg KH gre...@linuxfoundation.org wrote: On Fri, Jan 03, 2014 at 08:54:17PM +0100, Tom Gundersen wrote: Hi, I just

Re: [systemd-devel] [RFC] networkd/udev: match on 'ethernet' devices

2014-01-03 Thread Tom Gundersen
On Sat, Jan 4, 2014 at 3:15 AM, Marcel Holtmann mar...@holtmann.org wrote: we can easily update ConnMan to handle DEVTYPE= and DEVTYPE=ethernet. That is an easy change and will keep things working. As I explained in the other reply, the main reason for DEVTYPE=something is to detect that it

[systemd-devel] [RFC][PATCH] net: set default DEVTYPE for all ethernet based devices

2014-01-04 Thread Tom Gundersen
In systemd's networkd and udevd, we would like to give the administrator a simple way to filter ethernet devices by their DEVTYPE. In order to avoid having a special treatment of the case where DEVTYPE=(null), initialize it to a default value, ethernet, in the kernel. Signed-off-by: Tom Gundersen

Re: [systemd-devel] [RFC][PATCH] net: set default DEVTYPE for all ethernet based devices

2014-01-04 Thread Tom Gundersen
), initialize it to a default value, ethernet, in the kernel. Signed-off-by: Tom Gundersen t...@jklm.no Cc: Marcel Holtmann mar...@holtmann.org Cc: Greg KH gre...@linuxfoundation.org --- Hi Greg and Marcel, This patch seems to do the right thing for me. Any comments before I send it off

Re: [systemd-devel] Create a new logind session from a systemd --user unit

2014-01-05 Thread Tom Gundersen
Hi Colin, I realise this thread may be out-of-date by now, so please excuse me if I'm commenting on something which has later changed. On Sun, Aug 4, 2013 at 4:46 PM, Colin Walters walt...@verbum.org wrote: On Tue, 2013-07-30 at 01:02 +0200, Lennart Poettering wrote: We are working on this

Re: [systemd-devel] [RFC][PATCH] net: set default DEVTYPE for all ethernet based devices

2014-01-05 Thread Tom Gundersen
), initialize it to a default value, ethernet, in the kernel. Signed-off-by: Tom Gundersen t...@jklm.no Cc: Marcel Holtmann mar...@holtmann.org Cc: Greg KH gre...@linuxfoundation.org --- Hi Greg and Marcel, This patch seems to do the right thing for me. Any comments before I send it off

[systemd-devel] [RFC][PATCH v2] net: set default DEVTYPE for all ethernet based devices

2014-01-05 Thread Tom Gundersen
/software/systemd/man/udev.html#Type Signed-off-by: Tom Gundersen t...@jklm.no Cc: Marcel Holtmann mar...@holtmann.org Cc: Greg KH gre...@linuxfoundation.org --- net/ethernet/eth.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/net/ethernet/eth.c b/net/ethernet

Re: [systemd-devel] [RFC][PATCH] net: set default DEVTYPE for all ethernet based devices

2014-01-05 Thread Tom Gundersen
On Sun, Jan 5, 2014 at 8:44 PM, Marcel Holtmann mar...@holtmann.org wrote: Hm, I thought that was to fix false negatives. I.e., that some devices with, say, DEVTYPE=bluetooth should in fact be treated as regular ethernet? DEVTYPE=bluetooth and DEVTYPE=wlan are not false negatives. They should

[systemd-devel] [WIP][RFC][PATCH] networkd: generate resolv.conf

2014-01-05 Thread Tom Gundersen
This adds support to generate a basic resolv.conf in /run/systemd/network. This file will not take any effect unless the admin makes a symlink from /etc/resolv.conf. The precedence of nameservers is: 1) nameservers receieved over DHCP 2) nameservers statically configured in a currently active

Re: [systemd-devel] [WIP][RFC][PATCH] networkd: generate resolv.conf

2014-01-05 Thread Tom Gundersen
Hi Djalal, On Mon, Jan 6, 2014 at 12:17 AM, Djalal Harouni tix...@opendz.org wrote: 1) nameservers receieved over DHCP 2) nameservers statically configured in a currently active .network file 3) nameservers statically configured in the global networkd configuration file [...] So first

Re: [systemd-devel] [RFT] DHCPv4 support in networkd

2014-01-06 Thread Tom Gundersen
On Mon, Jan 6, 2014 at 10:43 AM, Holger Winkelmann [TP] h...@travelping.com wrote: just a small off topic question here. How far is IPv6 support in networks incl. DHCPv6? So far we only support static IPv6. -t ___ systemd-devel mailing list

Re: [systemd-devel] [PATCH] udev/net_id: Introduce predictable network names for Linux on System z

2014-01-09 Thread Tom Gundersen
On Thu, Jan 9, 2014 at 11:28 AM, Hendrik Brueckner brueck...@redhat.com wrote: Use the bus-ID to create predicatable devices names for network interfaces on Linux on System z instances. The bus-ID identifies a device in the s390 channel subsystem. Looks good to me (assuming the names are

Re: [systemd-devel] [PATCH] udev/net_id: Introduce predictable network names for Linux on System z

2014-01-11 Thread Tom Gundersen
Hi Hendrik, On Thu, Jan 9, 2014 at 4:20 PM, Hendrik Brueckner brueck...@redhat.com wrote: Looks good to me (assuming the names are truly stable between boots, as I have no idea about how the internals of this work in the kernel). The bus-IDs do not change across reboots. Great. I pushed the

Re: [systemd-devel] [PATCH] initial sd-dns commit

2014-01-11 Thread Tom Gundersen
Hi Daniel, On Mon, Jan 6, 2014 at 12:41 PM, Daniel Buch boogiewasth...@gmail.com wrote: Im hopeing we can continue in-tree since its easier from here, and im unable to get the time i want at the moment. But i will ofcourse continue to help where i can when time permits. I think the file

<    1   2   3   4   5   6   7   8   9   10   >