Re: [systemd-devel] [PATCH] swap: introduce Discard property

2014-10-02 Thread Jan Synacek
Karel Zak writes: > On Thu, Oct 02, 2014 at 03:32:54PM +0200, Lennart Poettering wrote: >> On Thu, 25.09.14 09:54, Jan Synacek (jsyna...@redhat.com) wrote: >> >> > Zbigniew Jędrzejewski-Szmek writes: >> > > On Wed, Sep 24, 2014 at 02:29:05PM +0200, Jan Synacek wrote: >> > >> Process possible "di

Re: [systemd-devel] Incorrect logic when /etc/machine-id is missing

2014-10-02 Thread Jan Synacek
Lennart Poettering writes: > On Mon, 22.09.14 11:27, Jan Synacek (jsyna...@redhat.com) wrote: > >> Hello, >> >> I believe that the following code is not correct: >> >> src/core/machine-id-setup.c:188-190: >> >> mkdir_parents(etc_machine_id, 0755); >> fd = open(etc_machine_id, O_RDWR|O_CREAT|O_C

Re: [systemd-devel] [question] networkd: Any support for hooks?

2014-10-02 Thread Cameron Norman
On Wed, Oct 1, 2014 at 10:36 PM, Tom Gundersen wrote: > Hi Cameron, > > On Thu, Oct 2, 2014 at 6:36 AM, Cameron Norman > wrote: >> ifupdown [1], NetworkManager, and WICD all support hooks for when a >> network interface is configured or deconfigured (before and after >> these actions). >> >> Are

Re: [systemd-devel] [PATCH] journalctl: allow customizable output formats

2014-10-02 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Sep 22, 2014 at 04:33:28PM +0100, Daniel P. Berrange wrote: > The current '--output FORMAT' argument defines a number of > common output formats, but there are some useful cases it > does cover. In particular when reading application logs it > is often desirable to display the code file nam

Re: [systemd-devel] [RFC 00/25] Compile against the musl libc

2014-10-02 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Sep 19, 2014 at 01:38:44PM +0200, Umut Tezduyar Lindskog wrote: > Axis Communications is running fairly compact version of systemd with some > properties disabled with --disable--xyz. Files are a bit over 10 mb on MIPS > ISA (stripped of binaries and conf files). > > Top 10 large files

Re: [systemd-devel] [PATCH v1 5/5] driver-core: add driver asynchronous probe support

2014-10-02 Thread Luis R. Rodriguez
As per Tom, adding systemd-devel for advice / review / of the request to avoid the sigkill for kmod workers. Keeping others on Cc as its a discussion that I think can help if both camps are involved. Specially since we've been ping ponging back and forth on this particular topic for a long time now

Re: [systemd-devel] [PATCH] journalctl: add --utc option

2014-10-02 Thread Josh Triplett
On Thu, Oct 02, 2014 at 09:11:39PM +0200, Lennart Poettering wrote: > On Thu, 02.10.14 11:56, Josh Triplett (j...@joshtriplett.org) wrote: > > > On Thu, Oct 02, 2014 at 09:36:46AM +0200, Jan Synacek wrote: > > > Introduce option to display time in UTC. > > > > Does "TZ=UTC journalctl" not do the

Re: [systemd-devel] [PATCH] journalctl: add --utc option

2014-10-02 Thread Lennart Poettering
On Thu, 02.10.14 11:56, Josh Triplett (j...@joshtriplett.org) wrote: > On Thu, Oct 02, 2014 at 09:36:46AM +0200, Jan Synacek wrote: > > Introduce option to display time in UTC. > > Does "TZ=UTC journalctl" not do the right thing? A quick test here > suggests that it does. That seems preferable

Re: [systemd-devel] [RFC 24/25] units: order options before other arguments

2014-10-02 Thread Lennart Poettering
On Thu, 18.09.14 15:25, Emil Renner Berthing (syst...@esmil.dk) wrote: This is not an OK change, sorry. systemctl, udevadm are APIs, and should work everywhere the same way. While we could certainly swap this around here without ill effect, I kinda like the fact that this will break on libcs that

Re: [systemd-devel] [RFC 17/25] dhcp-internal.h: add fallback IPTOS_CLASS_CS6 definition

2014-10-02 Thread Lennart Poettering
On Thu, 18.09.14 15:24, Emil Renner Berthing (syst...@esmil.dk) wrote: > --- > src/libsystemd-network/dhcp-internal.h | 4 > 1 file changed, 4 insertions(+) > > diff --git a/src/libsystemd-network/dhcp-internal.h > b/src/libsystemd-network/dhcp-internal.h > index 1069c8a..f6d15c3 100644 >

Re: [systemd-devel] [PATCH] journalctl: add --utc option

2014-10-02 Thread Josh Triplett
On Thu, Oct 02, 2014 at 09:36:46AM +0200, Jan Synacek wrote: > Introduce option to display time in UTC. Does "TZ=UTC journalctl" not do the right thing? A quick test here suggests that it does. That seems preferable to teaching individual tools to special-case UTC. - Josh Triplett _

Re: [systemd-devel] percentage values in journald.conf

2014-10-02 Thread Lennart Poettering
On Fri, 19.09.14 11:31, Christian Hesse (l...@eworm.de) wrote: > Hello everybody, > > I am just trying to give journald some useful configuration on my system with > a dedicated log partition. The man page speaks about default values in > percent, so I tried: > > SystemMaxUse=75% > SystemKeepFre

Re: [systemd-devel] [PATCH] socket-proxyd: Unchecked return value from library

2014-10-02 Thread Lennart Poettering
On Fri, 19.09.14 13:27, Susant Sahani (sus...@redhat.com) wrote: > CID 1237543 (#1 of 1): Unchecked return value from library > (CHECKED_RETURN) > --- > src/socket-proxy/socket-proxyd.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/src/socket-proxy/socket-proxyd.c

Re: [systemd-devel] [PATCH] Fix resource leak (coverity CID 1237760)

2014-10-02 Thread Lennart Poettering
On Wed, 17.09.14 18:10, Cristian Rodríguez (crrodrig...@opensuse.org) wrote: > --- > src/libsystemd/sd-bus/bus-kernel.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/src/libsystemd/sd-bus/bus-kernel.c > b/src/libsystemd/sd-bus/bus-kernel.c > index 505f335..b3cc9

Re: [systemd-devel] [PATCH v3] systemctl: add add-wants and add-requires verbs

2014-10-02 Thread Lennart Poettering
On Thu, 25.09.14 15:26, Lukas Nykryn (lnyk...@redhat.com) wrote: > --- > Changes in v3 > - move "don't load logic" to unit_file_load > - --help message should be finally fine > > TODO | 1 - > man/systemctl.xml | 21 > src/core/dbu

Re: [systemd-devel] [PATCH] sd-dhcp-client: support non-Ethernet hardware addresses

2014-10-02 Thread Tom Gundersen
On Thu, Oct 2, 2014 at 6:07 PM, Dan Williams wrote: > On Thu, 2014-10-02 at 16:39 +0200, Tom Gundersen wrote: >> On Fri, Sep 26, 2014 at 10:15 PM, Dan Williams wrote: >> > Like Infiniband. See RFC 4390 section 2.1 for details on DHCP >> > and Infiniband; chaddr is zeroed, hlen is set to 0, and h

Re: [systemd-devel] [PATCH] sd-dhcp-client: support non-Ethernet hardware addresses

2014-10-02 Thread Dan Williams
On Thu, 2014-10-02 at 16:39 +0200, Tom Gundersen wrote: > On Fri, Sep 26, 2014 at 10:15 PM, Dan Williams wrote: > > Like Infiniband. See RFC 4390 section 2.1 for details on DHCP > > and Infiniband; chaddr is zeroed, hlen is set to 0, and htype > > is set to ARPHRD_INFINIBAND because IB hardware a

Re: [systemd-devel] Why working this on reboot but not on start up

2014-10-02 Thread Andrei Borzenkov
В Thu, 02 Oct 2014 12:53:45 +0200 Günther J. Niederwimmer пишет: > Hello, > > Am Donnerstag, 2. Oktober 2014, 12:38:42 schrieb Lennart Poettering: > > On Thu, 02.10.14 12:34, Günther J. Niederwimmer (g...@gjn.priv.at) wrote: > > > > > this is my construct is any wrong in this files? > > > > > >

Re: [systemd-devel] [feature request] allow instances in file.preset

2014-10-02 Thread Lennart Poettering
On Thu, 25.09.14 20:29, Damien Robert (damien.olivier.robert+gm...@gmail.com) wrote: > Damien Robert wrote in message : > > I really like the new preset directive, and I plan to use preset files > > to synchronise the services I launch at boot across my computers. > > Also according to the man

Re: [systemd-devel] Why working this on reboot but not on start up

2014-10-02 Thread Andrei Borzenkov
В Thu, 2 Oct 2014 13:55:19 +0300 Mantas Mikulėnas пишет: > On Tue, Sep 30, 2014 at 8:24 PM, Günther J. wrote: > > Hello, > > > > Am Dienstag, 30. September 2014, 20:38:10 schrieb Andrei Borzenkov: > >> В Tue, 30 Sep 2014 13:24:13 +0200 > >> > >> Günther J. Niederwimmer пишет: > >> > Hello, > >>

Re: [systemd-devel] [feature request] allow instances in file.preset

2014-10-02 Thread Lennart Poettering
On Thu, 02.10.14 16:28, Colin Guthrie (gm...@colin.guthr.ie) wrote: > > Well, but from somewhere systemctl preset-all needs to be able to > > discover the "bar" string... How is that supposed to work? > > > > preset-all just enumerates all unit files that are installed and > > enables/disables th

Re: [systemd-devel] [feature request] allow instances in file.preset

2014-10-02 Thread Colin Guthrie
Lennart Poettering wrote on 02/10/14 15:48: > On Thu, 02.10.14 16:36, Damien Robert (damien.olivier.rob...@gmail.com) wrote: > >> >From Lennart Poettering, Thu 02 Oct 2014 at 16:07:03 (+0200) : >>> How precisely would you envision this to work? I mean, so far >>> "systemctl preset foo@bar.service"

Re: [systemd-devel] [PATCH 3/3] core: add EnvironmentFiles to settable transient unit properties

2014-10-02 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Apr 23, 2014 at 09:12:15PM +0200, Lennart Poettering wrote: > On Fri, 28.03.14 19:38, Hristo Venev (hri...@venev.name) wrote: > > Sounds useful. The other two patches were redone and applied (1/3 by Kay in June, 2/3 by Steven Allen now). Do you intend to clean up and resubmit this one?

Re: [systemd-devel] [PATCH] add a transient user unit directory

2014-10-02 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Sep 28, 2014 at 02:54:25PM -0700, Steven Allen wrote: > This patch adds a transient user unit directory under > `$XDG_RUNTIME_DIR/systemd/user/` and stores transient user-instance > units (such as those created by `systemd-run --user`) under there > instead of putting them in $XDG_CONFIG_HO

Re: [systemd-devel] Incorrect logic when /etc/machine-id is missing

2014-10-02 Thread Lennart Poettering
On Tue, 23.09.14 09:09, Jan Synacek (jsyna...@redhat.com) wrote: > Simon McVittie writes: > > On 22/09/14 10:27, Jan Synacek wrote: > >> If /etc/machine-id is missing on the system, the first open() call > >> should probably handle that case. That's actually not true (at least on > >> my system),

Re: [systemd-devel] Incorrect logic when /etc/machine-id is missing

2014-10-02 Thread Lennart Poettering
On Mon, 22.09.14 11:27, Jan Synacek (jsyna...@redhat.com) wrote: > Hello, > > I believe that the following code is not correct: > > src/core/machine-id-setup.c:188-190: > > mkdir_parents(etc_machine_id, 0755); > fd = open(etc_machine_id, O_RDWR|O_CREAT|O_CLOEXEC|O_NOCTTY, 0444); > if (fd >= 0)

Re: [systemd-devel] [feature request] allow instances in file.preset

2014-10-02 Thread Lennart Poettering
On Thu, 02.10.14 16:36, Damien Robert (damien.olivier.rob...@gmail.com) wrote: > >From Lennart Poettering, Thu 02 Oct 2014 at 16:07:03 (+0200) : > > How precisely would you envision this to work? I mean, so far > > "systemctl preset foo@bar.service" will precisely enable > > "foo@bar.service" > >

Re: [systemd-devel] [PATCH] sd-dhcp6-client: support custom DUIDs

2014-10-02 Thread Tom Gundersen
Looks good, so applied. However, I added a couple more follow-up commits changing the API slightly and adding some sanity-checking for the provided values. Can you check if it still looks ok for you? Thanks! Tom On Fri, Sep 26, 2014 at 10:12 PM, Dan Williams wrote: > The caller may have an exis

Re: [systemd-devel] [feature request] allow instances in file.preset

2014-10-02 Thread Damien Robert
>From Lennart Poettering, Thu 02 Oct 2014 at 16:07:03 (+0200) : > How precisely would you envision this to work? I mean, so far > "systemctl preset foo@bar.service" will precisely enable > "foo@bar.service" That's exactly what I want; I have not tried systemctl preset foo@bar.service, but in 'syst

Re: [systemd-devel] [PATCH] sd-dhcp-client: support non-Ethernet hardware addresses

2014-10-02 Thread Tom Gundersen
On Fri, Sep 26, 2014 at 10:15 PM, Dan Williams wrote: > Like Infiniband. See RFC 4390 section 2.1 for details on DHCP > and Infiniband; chaddr is zeroed, hlen is set to 0, and htype > is set to ARPHRD_INFINIBAND because IB hardware addresses > are 20 bytes in length. Sorry for taking time with t

Re: [systemd-devel] [feature request] allow instances in file.preset

2014-10-02 Thread Lennart Poettering
On Thu, 25.09.14 19:45, Damien Robert (damien.olivier.robert+gm...@gmail.com) wrote: > I really like the new preset directive, and I plan to use preset files > to synchronise the services I launch at boot across my computers. > > However it is a bit cumbersome that preset files do not parse inst

Re: [systemd-devel] [PATCH] swap: introduce Discard property

2014-10-02 Thread Karel Zak
On Thu, Oct 02, 2014 at 03:32:54PM +0200, Lennart Poettering wrote: > On Thu, 25.09.14 09:54, Jan Synacek (jsyna...@redhat.com) wrote: > > > Zbigniew Jędrzejewski-Szmek writes: > > > On Wed, Sep 24, 2014 at 02:29:05PM +0200, Jan Synacek wrote: > > >> Process possible "discard" values from /etc/fs

Re: [systemd-devel] [PATCH] tty-ask-password-agent: Allow user input to be echoed

2014-10-02 Thread David Sommerseth
On 02/10/14 14:14, Zbigniew Jędrzejewski-Szmek wrote: > On Tue, Sep 30, 2014 at 04:24:49PM +0200, Tom Gundersen wrote: >> Hi David, >> >> Just a quick follow up on these two patches (sorry for the delay). >> >> On the one hand, we want this interface to be very basic and should >> probably not some

Re: [systemd-devel] [PATCH] swap: introduce Discard property

2014-10-02 Thread Lennart Poettering
On Thu, 25.09.14 09:54, Jan Synacek (jsyna...@redhat.com) wrote: > Zbigniew Jędrzejewski-Szmek writes: > > On Wed, Sep 24, 2014 at 02:29:05PM +0200, Jan Synacek wrote: > >> Process possible "discard" values from /etc/fstab. > > Hm, wouldn't it be enough to simply pass through the options like wit

Re: [systemd-devel] [question] networkd: Any support for hooks?

2014-10-02 Thread Tom Gundersen
On Thu, Oct 2, 2014 at 2:20 PM, Lennart Poettering wrote: > On Thu, 02.10.14 13:00, Koen Kooi (k...@dominion.thruhere.net) wrote: > >> >> Op 2 okt. 2014, om 07:36 heeft Tom Gundersen het volgende >> geschreven: >> >> > Hi Cameron, >> > >> > On Thu, Oct 2, 2014 at 6:36 AM, Cameron Norman >> > w

Re: [systemd-devel] [PATCH v2] journalctl: add --utc option

2014-10-02 Thread Lennart Poettering
On Thu, 02.10.14 15:19, Jan Synacek (jsyna...@redhat.com) wrote: > Lennart Poettering writes: > > On Thu, 02.10.14 14:39, Jan Synacek (jsyna...@redhat.com) wrote: > > > >> Introduce option to display time in UTC. > > > > Thanks! > > > > Applied! > > Thanks! I just realized that the patch was inc

Re: [systemd-devel] [PATCH v2] journalctl: add --utc option

2014-10-02 Thread Jan Synacek
Lennart Poettering writes: > On Thu, 02.10.14 14:39, Jan Synacek (jsyna...@redhat.com) wrote: > >> Introduce option to display time in UTC. > > Thanks! > > Applied! Thanks! I just realized that the patch was incomplete. There are at least two different places that need to be patched - format_time

Re: [systemd-devel] [PATCH] fstab-generator: Honor usr=, usrfstype= and usrflags=

2014-10-02 Thread Lennart Poettering
On Wed, 24.09.14 22:08, Tobias Hunger (tobias.hun...@gmail.com) wrote: The patch is line-broken, please resend non-linebroken version! > > +static int add_usr_mount(void) { > +_cleanup_free_ char *what = NULL; > +const char *opts; > + > +if (!arg_usr_what && !arg_usr_fsty

Re: [systemd-devel] Systemd-nspawn -- Canot add interface to container

2014-10-02 Thread Marcel Holtmann
Hi Lennart, >> this nl80211 is based on generic netlink, you would need to do a lot >> to just add simple support for it. Also for all network interfaces >> that have complex physical devices as base (including Bluetooth) it >> is never that dead simple. > > Well, sooner or later I figure sd-rtnl

Re: [systemd-devel] Systemd-nspawn -- Canot add interface to container

2014-10-02 Thread Lennart Poettering
On Thu, 02.10.14 13:06, Marcel Holtmann (mar...@holtmann.org) wrote: > this nl80211 is based on generic netlink, you would need to do a lot > to just add simple support for it. Also for all network interfaces > that have complex physical devices as base (including Bluetooth) it > is never that dea

Re: [systemd-devel] [PATCH v2] journalctl: add --utc option

2014-10-02 Thread Lennart Poettering
On Thu, 02.10.14 14:39, Jan Synacek (jsyna...@redhat.com) wrote: > Introduce option to display time in UTC. Thanks! Applied! > --- > Changes in v2: > - move OUTPUT_UTC from OutputMode to OutputFlags > > man/journalctl.xml | 7 +++ > src/journal/journalctl.c | 11 ++- > src

[systemd-devel] [PATCH v2] journalctl: add --utc option

2014-10-02 Thread Jan Synacek
Lennart Poettering writes: > On Thu, 02.10.14 09:36, Jan Synacek (jsyna...@redhat.com) wrote: > This should not be part of OutputMode, but of OutputFlags! Fixed. > Otherwise looks good. Do you have commit access? If so, please push after > fixing the issue above. I don't have commit access. T

Re: [systemd-devel] [PATCH 2/2] localectl: print warning when there are options given on kernel cmdline

2014-10-02 Thread Lennart Poettering
On Wed, 24.09.14 17:18, Michal Sekletar (msekl...@redhat.com) wrote: Heya, > +for (j = VARIABLE_LANG; j < _VARIABLE_LC_MAX; j++) I think it is much nicer to count from an explicit "0" on here, instead of "VARIABLE_LANG", since this makes the loop work correctly even if the order of the e

Re: [systemd-devel] Systemd-nspawn -- Canot add interface to container

2014-10-02 Thread Marcel Holtmann
Hi Lennart, >>> I'm having another issue with private networking in systemd-nspawn. This >>> one >>> I'm not so certain is a bug, but probably some kind of mistake on my part. >>> Base on my reading of the systemd-nspawn man page though, I can't figure >>> out >>> what the problem is. Basical

Re: [systemd-devel] [question] networkd: Any support for hooks?

2014-10-02 Thread Lennart Poettering
On Thu, 02.10.14 13:00, Koen Kooi (k...@dominion.thruhere.net) wrote: > > Op 2 okt. 2014, om 07:36 heeft Tom Gundersen het volgende > geschreven: > > > Hi Cameron, > > > > On Thu, Oct 2, 2014 at 6:36 AM, Cameron Norman > > wrote: > >> ifupdown [1], NetworkManager, and WICD all support hooks

Re: [systemd-devel] [PATCH] tty-ask-password-agent: Allow user input to be echoed

2014-10-02 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Sep 30, 2014 at 04:24:49PM +0200, Tom Gundersen wrote: > Hi David, > > Just a quick follow up on these two patches (sorry for the delay). > > On the one hand, we want this interface to be very basic and should > probably not something we should extend to cover all sorts of things. > On th

Re: [systemd-devel] [PATCH] ask-password: Add --do-echo to enable echoing the user input

2014-10-02 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Sep 17, 2014 at 02:26:03PM +0200, David Sommerseth wrote: > This patch adds a new function ask_password_tty_echo() which will > echo the user input. Adding another function was preferred over > adding a flag in ask_password_tty(), to make the functionality > clearer and to avoid breaking p

Re: [systemd-devel] Enter in systemd-nspawn as specific user

2014-10-02 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Oct 02, 2014 at 12:48:31PM +0200, Miroslav Suchy wrote: > On 10/02/2014 11:49 AM, Lennart Poettering wrote: > > There's nspawn's --user= switch which relies on glibc's "getent" > > binary to be available in the container, which it will use to resolve > > the username in the container's cont

Re: [systemd-devel] Enter in systemd-nspawn as specific user

2014-10-02 Thread Simon McVittie
On 02/10/14 10:09, Miroslav Suchy wrote: > If I want to become specific user inside of that container, I have to do > something like: > > /usr/bin/systemd-nspawn -D foo /bin/su -l mockbuild -c 'rpmbuild -root > \'/build\' ...' > > which quickly go into escape-hell. If you put a better privilege-

Re: [systemd-devel] [question] networkd: Any support for hooks?

2014-10-02 Thread Koen Kooi
Op 2 okt. 2014, om 07:36 heeft Tom Gundersen het volgende geschreven: > Hi Cameron, > > On Thu, Oct 2, 2014 at 6:36 AM, Cameron Norman > wrote: >> ifupdown [1], NetworkManager, and WICD all support hooks for when a >> network interface is configured or deconfigured (before and after >> these

Re: [systemd-devel] Why working this on reboot but not on start up

2014-10-02 Thread Mantas Mikulėnas
On Tue, Sep 30, 2014 at 8:24 PM, Günther J. wrote: > Hello, > > Am Dienstag, 30. September 2014, 20:38:10 schrieb Andrei Borzenkov: >> В Tue, 30 Sep 2014 13:24:13 +0200 >> >> Günther J. Niederwimmer пишет: >> > Hello, >> > >> > I have a problem to run this correct, it is working on a reboot but n

Re: [systemd-devel] Why working this on reboot but not on start up

2014-10-02 Thread Günther J . Niederwimmer
Hello, Am Donnerstag, 2. Oktober 2014, 12:38:42 schrieb Lennart Poettering: > On Thu, 02.10.14 12:34, Günther J. Niederwimmer (g...@gjn.priv.at) wrote: > > > > this is my construct is any wrong in this files? > > > > > > > > /etc/tmpfiles.d/kinit.conf > > > > d /run/user/0/krb5cc 1777 root root -

Re: [systemd-devel] Enter in systemd-nspawn as specific user

2014-10-02 Thread Miroslav Suchy
On 10/02/2014 11:49 AM, Lennart Poettering wrote: > There's nspawn's --user= switch which relies on glibc's "getent" > binary to be available in the container, which it will use to resolve > the username in the container's context and then change to it. Perfect! However if I do: # /usr/bin/system

Re: [systemd-devel] Why working this on reboot but not on start up

2014-10-02 Thread Mantas Mikulėnas
On Thu, Oct 2, 2014 at 1:38 PM, Lennart Poettering wrote: > Note that this won't work at all with more recent krb versions as they > nowadays use the kernel user keyring to store the tickets in... It will work just fine; the DIR: and FILE: cache types aren't going to be removed any time soon. (Us

Re: [systemd-devel] [Featur Request] Allow list of names in file.network

2014-10-02 Thread Lennart Poettering
On Thu, 25.09.14 19:39, Damien Robert (damien.olivier.robert+gm...@gmail.com) wrote: > This is a minor feature request for systemd-networkd: > my files in /etc/systemd/network/ all share the same pattern: > > [Match] > Name=en* > [Network] > DHCP=yes > > [Match] > Name=eth* > [Network] > DHCP=y

Re: [systemd-devel] Why working this on reboot but not on start up

2014-10-02 Thread Lennart Poettering
On Thu, 02.10.14 12:34, Günther J. Niederwimmer (g...@gjn.priv.at) wrote: > Hello Profis. > > Thank's for the answer. > > Am Donnerstag, 2. Oktober 2014, 12:16:49 schrieb Lennart Poettering: > > On Tue, 30.09.14 13:24, Günther J. Niederwimmer (g...@gjn.priv.at) wrote: > > > Hello, > > > > > > I

Re: [systemd-devel] Why working this on reboot but not on start up

2014-10-02 Thread Günther J . Niederwimmer
Hello Profis. Thank's for the answer. Am Donnerstag, 2. Oktober 2014, 12:16:49 schrieb Lennart Poettering: > On Tue, 30.09.14 13:24, Günther J. Niederwimmer (g...@gjn.priv.at) wrote: > > Hello, > > > > I have a problem to run this correct, it is working on a reboot but not on > > start up. > >

Re: [systemd-devel] Enter in systemd-nspawn as specific user

2014-10-02 Thread Colin Walters
On Thu, Oct 2, 2014, at 05:09 AM, Miroslav Suchy wrote: > Hi, > when I run systemd-nspawn, I become root user inside of that container. > If I want to become specific user inside of that container, I have to do > something like: You might also be interested in: https://git.gnome.org/browse/linux-u

Re: [systemd-devel] Why working this on reboot but not on start up

2014-10-02 Thread Lennart Poettering
On Tue, 30.09.14 13:24, Günther J. Niederwimmer (g...@gjn.priv.at) wrote: > Hello, > > I have a problem to run this correct, it is working on a reboot but not on > start up. > > Can any help me for this Problem, Thanks. > > I make a new service File for the kerberos initialisation > > this is

Re: [systemd-devel] [uml-devel] Timed out waiting for device dev-disk-by...

2014-10-02 Thread Lennart Poettering
On Tue, 30.09.14 21:44, Tomasz Torcz (to...@pipebreaker.pl) wrote: > Check the udev database at this moment. In my understanding, to have > device deemed > ready by systemd, two things must happen for device entry: > – TAGS variable must contain ”systemd” > – SYSTEMD_READY must be ”1” Well, t

Re: [systemd-devel] [PATCH 3/4] shutdown: don't do final unmounting when inside the container and running without CAP_SYS_ADMIN

2014-10-02 Thread Lennart Poettering
On Thu, 02.10.14 09:57, Michal Sekletar (msekl...@redhat.com) wrote: > #define FINALIZE_ATTEMPTS 50 > > @@ -207,7 +208,11 @@ int main(int argc, char *argv[]) { > > in_container = detect_container(NULL) > 0; > > -need_umount = true; > +if (in_container && !have_effec

Re: [systemd-devel] [PATCH 4/4] hostname-setup: try to set hostname only when necessary

2014-10-02 Thread Lennart Poettering
On Thu, 02.10.14 09:57, Michal Sekletar (msekl...@redhat.com) wrote: > --- > src/core/hostname-setup.c | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/src/core/hostname-setup.c b/src/core/hostname-setup.c > index 8aa1cff..1df7a56 100644 > --- a/src/core/hostname-setup.c > +++ b

Re: [systemd-devel] Enter in systemd-nspawn as specific user

2014-10-02 Thread Lennart Poettering
On Thu, 02.10.14 11:09, Miroslav Suchy (msu...@redhat.com) wrote: > Hi, > when I run systemd-nspawn, I become root user inside of that container. > If I want to become specific user inside of that container, I have to do > something like: > > /usr/bin/systemd-nspawn -D foo /bin/su -l mockbuild -c

Re: [systemd-devel] [PATCH] Correct a few typos

2014-10-02 Thread David Herrmann
Hi On Tue, Sep 30, 2014 at 3:25 PM, Torstein Husebø wrote: > --- > man/systemd-debug-generator.xml | 2 +- > src/tty-ask-password-agent/tty-ask-password-agent.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) Applied! Thanks David > diff --git a/man/systemd-debu

Re: [systemd-devel] [PATCH 2/2] PORTING-DBUS1: we use :1.%llu not :0.%llu for D-Bus unique bus names

2014-10-02 Thread David Herrmann
Hi On Wed, Oct 1, 2014 at 5:12 PM, Simon McVittie wrote: > --- > src/libsystemd/sd-bus/PORTING-DBUS1 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied by Tom Thanks David > diff --git a/src/libsystemd/sd-bus/PORTING-DBUS1 > b/src/libsystemd/sd-bus/PORTING-DBUS1 > index 958e7b6.

Re: [systemd-devel] [PATCH 2/4] mount-setup: introduce mount_setup_run_dirs()

2014-10-02 Thread Lennart Poettering
On Thu, 02.10.14 09:57, Michal Sekletar (msekl...@redhat.com) wrote: > In cases when we are running as system manager, but we don't have the > capability to mount filesystems don't call mount_setup(). However we > assume that some directories (e.g. /run/systemd) are always > around. Hence don't cr

Re: [systemd-devel] [PATCH 1/4] virt: detect that we are running inside the docker container

2014-10-02 Thread Lennart Poettering
On Thu, 02.10.14 09:57, Michal Sekletar (msekl...@redhat.com) wrote: Looks good, please commit this one. > --- > src/shared/virt.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/shared/virt.c b/src/shared/virt.c > index b436895..f9c4e67 100644 > --- a/src/shared/virt.c > +++ b/s

Re: [systemd-devel] [PATCH] journalctl: add --utc option

2014-10-02 Thread Lennart Poettering
On Thu, 02.10.14 09:36, Jan Synacek (jsyna...@redhat.com) wrote: > Introduce option to display time in UTC. Looks generally OK. > struct tm tm; > +struct tm *(*gettime_r)(const time_t *, struct tm *); This isn't particularly beautiful and easy to grok, but certai

[systemd-devel] Enter in systemd-nspawn as specific user

2014-10-02 Thread Miroslav Suchy
Hi, when I run systemd-nspawn, I become root user inside of that container. If I want to become specific user inside of that container, I have to do something like: /usr/bin/systemd-nspawn -D foo /bin/su -l mockbuild -c 'rpmbuild -root \'/build\' ...' which quickly go into escape-hell. Is there

[systemd-devel] [PATCH 4/4] hostname-setup: try to set hostname only when necessary

2014-10-02 Thread Michal Sekletar
When a system already has hostname set to the configured value don't try to set it again. This will prevent an error being reported when running inside an unprivileged container, i.e. in an environment where we don't have CAP_SYS_ADMIN capability and therefore the container manager is responsible f

[systemd-devel] [PATCH 1/4] virt: detect that we are running inside the docker container

2014-10-02 Thread Michal Sekletar
--- src/shared/virt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared/virt.c b/src/shared/virt.c index b436895..f9c4e67 100644 --- a/src/shared/virt.c +++ b/src/shared/virt.c @@ -310,6 +310,8 @@ int detect_container(const char **id) { _id = "lxc-libvirt";

[systemd-devel] [PATCH 2/4] mount-setup: introduce mount_setup_run_dirs()

2014-10-02 Thread Michal Sekletar
In cases when we are running as system manager, but we don't have the capability to mount filesystems don't call mount_setup(). However we assume that some directories (e.g. /run/systemd) are always around. Hence don't create those directories in mount_setup(). --- src/core/main.c| 7

[systemd-devel] [PATCH 3/4] shutdown: don't do final unmounting when inside the container and running without CAP_SYS_ADMIN

2014-10-02 Thread Michal Sekletar
--- Makefile.am | 3 ++- src/core/shutdown.c | 7 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 5033028..f8104bc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1925,7 +1925,8 @@ systemd_shutdown_SOURCES = \ systemd_shutdown_LDADD =

[systemd-devel] [PATCH] journalctl: add --utc option

2014-10-02 Thread Jan Synacek
Introduce option to display time in UTC. --- man/journalctl.xml | 7 +++ src/journal/journalctl.c | 11 ++- src/shared/logs-show.c | 8 +--- src/shared/output-mode.h | 1 + 4 files changed, 23 insertions(+), 4 deletions(-) diff --git a/man/journalctl.xml b/man/journalct

Re: [systemd-devel] Systemd-nspawn -- Canot add interface to container

2014-10-02 Thread Lennart Poettering
On Fri, 26.09.14 16:28, James Lott (ja...@lottspot.com) wrote: > Hello again! > > Once again, thanks for all the help with getting my wireless interface moved > into the container! Now I just have one more interface I'm having trouble > with. I can't seem to move my ethernet interfaces into the

Re: [systemd-devel] Systemd-nspawn -- Canot add interface to container

2014-10-02 Thread Lennart Poettering
On Thu, 25.09.14 10:21, Marcel Holtmann (mar...@holtmann.org) wrote: > Hi James, > > > I'm having another issue with private networking in systemd-nspawn. This > > one > > I'm not so certain is a bug, but probably some kind of mistake on my part. > > Base on my reading of the systemd-nspawn ma

Re: [systemd-devel] [PATCH 1/2] tmpfiles.d: split files to cope with split packages.

2014-10-02 Thread Lennart Poettering
On Tue, 30.09.14 14:36, Gustavo Sverzut Barbieri (gustavo.barbi...@intel.com) wrote: > On Tue, Sep 30, 2014 at 04:26:38AM +0200, Zbigniew Jędrzejewski-Szmek wrote: > > On Thu, Sep 25, 2014 at 06:12:50PM -0300, Gustavo Sverzut Barbieri wrote: > > > etc.conf was selectively (using m4) using resolve

Re: [systemd-devel] [PATCH 2/2] sysusers.d: split files to cope with split packages.

2014-10-02 Thread Lennart Poettering
On Tue, 30.09.14 14:44, Gustavo Sverzut Barbieri (gustavo.barbi...@intel.com) wrote: > > systemd-timesyncd is ~400kb. Other binaries aren't too big > > either. Splitting everything up complicated things, and I'm not convinced > > that this is a useful change. > > indeed they are not big per se,

Re: [systemd-devel] [PATCH 1/2] tmpfiles.d: split files to cope with split packages.

2014-10-02 Thread Lennart Poettering
On Thu, 25.09.14 18:12, Gustavo Sverzut Barbieri (gustavo.barbi...@intel.com) wrote: > etc.conf was selectively (using m4) using resolved link, now this is > moved to systemd-resolved.conf file. The etc.conf can be static and > does not need to be generated anymore. > > systemd.conf was doing al

Re: [systemd-devel] Dedicated cgroups for a user

2014-10-02 Thread Lennart Poettering
1;3409;0cOn Thu, 25.09.14 13:10, Naoki Kawakami (dole...@parallels.com) wrote: > Hello, > > I am trying to find a way for a user to be assigned a dedicated cgroup under > each of the controllers. Each user currently gets a "slice" unit of his own, and you can set certain resource settings on it