Re: [systemd-devel] [Question/bug] Timeout after bus_event_loop_with_idle() change.

2014-10-08 Thread Daniel Buch
No runtime kdbus but --enable-kdbus configuration at build time Den 08/10/2014 17.11 skrev "Lennart Poettering" : > On Fri, 03.10.14 22:00, Daniel Buch (boogiewasth...@gmail.com) wrote: > > > Hi, > > > > With current git and since 430e21c2f7e77d600257ead56419f51 i keep on > > getting timeout on th

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

2014-10-08 Thread Damien Robert
>From Lennart Poettering, Wed 08 Oct 2014 at 23:33:13 (+0200) : > On Fri, 03.10.14 19:18, Damien Robert (damien.olivier.rob...@gmail.com) wrote: > > > But this means it > > > would only find the template, and the instance would have to come from > > > somewhere else, but where? > > From the preset

Re: [systemd-devel] [PATCH] journalctl: make --utc work everywhere

2014-10-08 Thread Jan Synacek
Lennart Poettering writes: > On Fri, 03.10.14 09:51, Jan Synacek (jsyna...@redhat.com) wrote: > >> The --utc option was introduced by commit >> 9fd290443f5f99fca0dcd4216b1de70f7d3b8db1. >> Howerver, the implementation was incomplete. >> --- >> src/journal/journalctl.c | 14 +++--- >> src/

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

2014-10-08 Thread Marcel Holtmann
Hi Cameron, > ifupdown [1], NetworkManager, and WICD all support hooks for when a > network interface is configured or deconfigured (before and after > these actions). > > Are there any plans to support something along these lines? If so, > what will that look like? >

Re: [systemd-devel] [PATCH] core: don't allow enabling if unit is masked

2014-10-08 Thread Jan Synacek
Lennart Poettering writes: > On Wed, 08.10.14 17:24, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > >> > > I think that the best way to handle this would be to >> > > use a temporary structure like >> > >{ char *unit_name; char *error_message; int code} >> > > and use this to pass th

Re: [systemd-devel] How to exclusively toggle between two systemd instances of a single daemon?

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Oct 09, 2014 at 07:51:32AM +0300, Mantas Mikulėnas wrote: > On Wed, Oct 8, 2014 at 4:39 PM, Zbigniew Jędrzejewski-Szmek < > zbys...@in.waw.pl> wrote: > > > On Wed, Oct 08, 2014 at 06:30:51AM -0700, terrygalant.li...@fastest.cc > > wrote: > > > Hi > > > > > > I have 2 installed instances of

Re: [systemd-devel] How to exclusively toggle between two systemd instances of a single daemon?

2014-10-08 Thread Mantas Mikulėnas
On Wed, Oct 8, 2014 at 4:39 PM, Zbigniew Jędrzejewski-Szmek < zbys...@in.waw.pl> wrote: > On Wed, Oct 08, 2014 at 06:30:51AM -0700, terrygalant.li...@fastest.cc > wrote: > > Hi > > > > I have 2 installed instances of a single daemon. > > > > 1 is from distro-installed packages, installed into stan

[systemd-devel] booting A/B rootfs

2014-10-08 Thread Darko Luketic
Hi, I have limited knowledge of the boot process. I'm wondering if the following is possible with systemd. Imagine you have 2 rootfs partitions. You build a new rootfs on a security update or when a new version of a listed package that has dependencies is released and extract this on either A or

Re: [systemd-devel] [PATCH 1/2] sd-event: be more careful when enabling/disabling signals

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 09:44:33PM +0200, Lennart Poettering wrote: > On Sun, 05.10.14 20:42, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > > > > @@ -626,11 +634,13 @@ static void source_disconnect(sd_event_source *s) { > > > > case SOURCE_SIGNAL: > > if

Re: [systemd-devel] journal repair

2014-10-08 Thread Lennart Poettering
On Fri, 19.09.14 10:00, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: > Is the plan to introduce an repair switch or is the plan to inform the users > how they should proceed if that is not the case since users are getting > confused when they encounter journal errors like these > > Data obje

Re: [systemd-devel] Cannot get Shutdown Script to Run (Libvirt Virtual Machine Shutdown)

2014-10-08 Thread Lennart Poettering
On Sun, 21.09.14 23:40, Alexander Groleau (awg...@xbetanet.com) wrote: > Hello systemd users, > > I have been trying desperately for weeks to get my simple shutdown script > for a Libvirt guest to run before libvirtd is shut down, without success. > Essentially, I need the libvirt-windows.sh scri

Re: [systemd-devel] [PATCH] core: don't allow enabling if unit is masked

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 11:23:51PM +0200, Lennart Poettering wrote: > On Wed, 08.10.14 23:07, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > > > > > > A related thing: there's a mapping bus-error <-> errno implemented, > > > > > > but it only works for the errors defined in the library

Re: [systemd-devel] systemd-detect-virt and vendors

2014-10-08 Thread Dale R. Worley
> From: Rahul Sundaram > We really should be more specific and call it virtualbox and hyper-v > instead, similar to say virt-what and other similar tools. I will be happy > write the patches if this makes sense. At the least, we need documentation that tells the user what name systemd uses, bas

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

2014-10-08 Thread Cameron Norman
On Wed, Oct 8, 2014 at 2:26 PM, Lennart Poettering wrote: > On Thu, 02.10.14 19:48, Cameron Norman (camerontnor...@gmail.com) wrote: > >> 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

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

2014-10-08 Thread Lennart Poettering
On Mon, 22.09.14 16:33, Daniel P. Berrange (berra...@redhat.com) 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 fil

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

2014-10-08 Thread Lennart Poettering
On Fri, 03.10.14 19:18, Damien Robert (damien.olivier.rob...@gmail.com) wrote: > >From Lennart Poettering, Thu 02 Oct 2014 at 16:48:19 (+0200) : > > Well, but from somewhere systemctl preset-all needs to be able to > > discover the "bar" string... How is that supposed to work? > > > > preset-all

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

2014-10-08 Thread Lennart Poettering
On Thu, 02.10.14 19:48, Cameron Norman (camerontnor...@gmail.com) wrote: > 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 > >> networ

Re: [systemd-devel] [PATCH] core: don't allow enabling if unit is masked

2014-10-08 Thread Lennart Poettering
On Wed, 08.10.14 23:07, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > > > > A related thing: there's a mapping bus-error <-> errno implemented, > > > > > but it only works for the errors defined in the library itself. It > > > > > would be nice to extend this mapping to the "user" def

Re: [systemd-devel] [PATCH] core: don't allow enabling if unit is masked

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 09:28:39PM +0200, Lennart Poettering wrote: > On Wed, 08.10.14 17:24, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > > > > I think that the best way to handle this would be to > > > > use a temporary structure like > > > >{ char *unit_name; char *error_messa

Re: [systemd-devel] [PATCH] journalctl: make --utc work everywhere

2014-10-08 Thread Lennart Poettering
On Fri, 03.10.14 09:51, Jan Synacek (jsyna...@redhat.com) wrote: > The --utc option was introduced by commit > 9fd290443f5f99fca0dcd4216b1de70f7d3b8db1. > Howerver, the implementation was incomplete. > --- > src/journal/journalctl.c | 14 +++--- > src/shared/logs-show.c | 2 +- > src/s

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

2014-10-08 Thread Lennart Poettering
On Fri, 03.10.14 07:07, Jan Synacek (jsyna...@redhat.com) wrote: > >> Now I was determined to fix this bug, however I'm left clueless as to > >> how this is actually supposed to work. Is the entire logic in this piece > >> of code wrong, or am I missing something? How is the > >> (re)generating/mo

Re: [systemd-devel] [PATCH 1/2] sd-event: be more careful when enabling/disabling signals

2014-10-08 Thread Lennart Poettering
On Sun, 05.10.14 20:42, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > @@ -626,11 +634,13 @@ static void source_disconnect(sd_event_source *s) { > > case SOURCE_SIGNAL: > if (s->signal.sig > 0) { > -if (s->signal.sig != SIGCHLD ||

Re: [systemd-devel] [PATCH] core: map the 'rescue' argument to rescue.target

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 14:55, Mantas Mikulėnas (graw...@gmail.com) wrote: > Even though the 'emergency' and 'single' aliases come from sysvinit, the > lack of 'rescue' is still quite confusing (caught me by surprise for the > 9th time yet) and inconsistent with `systemctl rescue` as well. Hmm, so I am

Re: [systemd-devel] [PATCH] core: don't allow enabling if unit is masked

2014-10-08 Thread Lennart Poettering
On Wed, 08.10.14 17:24, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > > I think that the best way to handle this would be to > > > use a temporary structure like > > >{ char *unit_name; char *error_message; int code} > > > and use this to pass the information about the error from

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

2014-10-08 Thread Lennart Poettering
On Wed, 08.10.14 08:30, Daniel Mack (zon...@kemper.freedesktop.org) wrote: > > -/* The higher 32bit of the flags field are considered > - * 'incompatible flags'. Refuse them all for now. */ > -if (make->flags > 0xULL) { > +/* The features field are conside

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

2014-10-08 Thread Dan Williams
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. --- v3: use arp_type for identifying client MAC address types, and fix non-Ethernet hardware

Re: [systemd-devel] [PATCH] journal: Fix sd_journal_enumerate_unique skipping values

2014-10-08 Thread Jan Janssen
On 2014-10-08 14:59, Zbigniew Jędrzejewski-Szmek wrote: On Wed, Oct 08, 2014 at 08:24:49AM +0200, Jan Janssen wrote: Gesendet: Mittwoch, 08. Oktober 2014 um 01:40 Uhr Von: "Zbigniew Jędrzejewski-Szmek" An: "Jan Janssen" Cc: systemd-devel@lists.freedesktop.org Betreff: Re: [systemd-devel] [P

Re: [systemd-devel] Shell expressions in EnvironmentFile

2014-10-08 Thread Lennart Poettering
On Wed, 08.10.14 18:07, Damien Robert (damien.olivier.robert+gm...@gmail.com) wrote: > Lennart Poettering wrote in message > <20141008094838.GB26284@gardel-login>: > > On Tue, 07.10.14 19:18, Simon Peeters (peeters.si...@gmail.com) wrote: > >> ExecStart=/bin/sh -c ". /something/that/sets/var; /s

Re: [systemd-devel] Shell expressions in EnvironmentFile

2014-10-08 Thread Damien Robert
Lennart Poettering wrote in message <20141008094838.GB26284@gardel-login>: > On Tue, 07.10.14 19:18, Simon Peeters (peeters.si...@gmail.com) wrote: >> ExecStart=/bin/sh -c ". /something/that/sets/var; /some/file $var" > THis would certainly work, but I'd strongly advise to use "exec" for > executi

Re: [systemd-devel] [PATCH] core: don't allow enabling if unit is masked

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 05:02:31PM +0200, Lennart Poettering wrote: > On Wed, 08.10.14 15:29, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > > On Wed, Oct 08, 2014 at 11:54:19AM +0200, Lennart Poettering wrote: > > > On Tue, 07.10.14 13:35, Jan Synacek (jsyna...@redhat.com) wrote: > >

Re: [systemd-devel] [Question/bug] Timeout after bus_event_loop_with_idle() change.

2014-10-08 Thread Lennart Poettering
On Fri, 03.10.14 22:00, Daniel Buch (boogiewasth...@gmail.com) wrote: > Hi, > > With current git and since 430e21c2f7e77d600257ead56419f51 i keep on > getting timeout on these units > > dbuch@dbuch-laptop ~/dev/systemd (git)-[master] % systemctl --failed > UNIT LOAD ACTI

Re: [systemd-devel] [RFC] Mounting $XGD_RUNTIME_DIR with units instead of logind code.

2014-10-08 Thread Lennart Poettering
On Wed, 08.10.14 14:44, Maciej Wereski (m.were...@partner.samsung.com) wrote: > Hello, > > Lately I've been working on updating systemd (currently 208) in Tizen. One > of problems we've stumbled upon was with user@.service failing. Problem > was on SMACK-enabled system, caused by 1c231f5 (logind:

Re: [systemd-devel] [PATCH] core: don't allow enabling if unit is masked

2014-10-08 Thread Lennart Poettering
On Wed, 08.10.14 15:29, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > On Wed, Oct 08, 2014 at 11:54:19AM +0200, Lennart Poettering wrote: > > On Tue, 07.10.14 13:35, Jan Synacek (jsyna...@redhat.com) wrote: > > > > > --- > > > src/shared/install.c | 13 + > > > 1 file chan

Re: [systemd-devel] systemd-detect-virt and vendors

2014-10-08 Thread Lennart Poettering
On Wed, 08.10.14 09:57, Rahul Sundaram (methe...@gmail.com) wrote: > Hi > > On Wed, Oct 8, 2014 at 9:46 AM, Lennart Poettering wrote: > > > > > I think what would make a lot of sense though is to add a section to > > the man page somewhere, that explains which ID refers to which > > software fr

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

2014-10-08 Thread Lennart Poettering
On Wed, 08.10.14 16:49, Michal Sekletar (msekl...@redhat.com) wrote: > > > > Hmm, I think we should just do "need_umount = !in_container", like we > > > > do for the other things like loopback detaching, dm detaching or > > > > swapoff. After all, if we run in a container we run in a mount > > > >

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

2014-10-08 Thread Michal Sekletar
On Wed, Oct 08, 2014 at 01:41:16PM +0200, Lennart Poettering wrote: > On Tue, 07.10.14 14:17, Michal Sekletar (msekl...@redhat.com) wrote: > > > On Thu, Oct 02, 2014 at 12:04:02PM +0200, Lennart Poettering wrote: > > > On Thu, 02.10.14 09:57, Michal Sekletar (msekl...@redhat.com) wrote: > > > > >

Re: [systemd-devel] systemd-detect-virt and vendors

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 10:42:21AM -0400, Rahul Sundaram wrote: > Hi > > On Wed, Oct 8, 2014 at 10:37 AM, Zbigniew Jędrzejewski-Szmek wrote: > > > This would break compatibility, because systemd-detect-virt would > > have to start returning different strings. > > > Ah, I was thinking more about

Re: [systemd-devel] systemd-detect-virt and vendors

2014-10-08 Thread Rahul Sundaram
Hi On Wed, Oct 8, 2014 at 10:37 AM, Zbigniew Jędrzejewski-Szmek wrote: > This would break compatibility, because systemd-detect-virt would > have to start returning different strings. Ah, I was thinking more about ConditionVirtualization but I guess we are kinda struck with what we already have

Re: [systemd-devel] systemd-detect-virt and vendors

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 10:35:25AM -0400, Rahul Sundaram wrote: > Hi > > On Wed, Oct 8, 2014 at 9:46 AM, Lennart Poettering > wrote: > > > > > I think what would make a lot of sense though is to add a section to > > the man page somewhere, that explains which ID refers to which > > software from

Re: [systemd-devel] systemd-detect-virt and vendors

2014-10-08 Thread Rahul Sundaram
Hi On Wed, Oct 8, 2014 at 9:46 AM, Lennart Poettering wrote: > > I think what would make a lot of sense though is to add a section to > the man page somewhere, that explains which ID refers to which > software from which vendor. Also, it might make sense to add a new > switch to the tool, that d

Re: [systemd-devel] How to exclusively toggle between two systemd instances of a single daemon?

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 06:45:48AM -0700, terrygalant.li...@fastest.cc wrote: > Hi Zbigniew > > On Wed, Oct 8, 2014, at 06:39 AM, Zbigniew Jędrzejewski-Szmek wrote: > > You can also make a symlink from /etc/systemd/system/xxx.service to > > either of the two files and manage it by hand, calling sy

Re: [systemd-devel] Systemd-nspawn: Cannot create tun device in container

2014-10-08 Thread Tom Gundersen
On Fri, Oct 3, 2014 at 7:46 PM, James Lott wrote: > Hello, list! > > In some work I've been doing with systemd-nspawn containers, I've been trying > to connect one of my containers to an openvpn network. This conteiner is being > run with the --network-bridge flag to setup its networking, so accor

Re: [systemd-devel] How to exclusively toggle between two systemd instances of a single daemon?

2014-10-08 Thread terrygalant . lists
Hi Zbigniew On Wed, Oct 8, 2014, at 06:39 AM, Zbigniew Jędrzejewski-Szmek wrote: > You can also make a symlink from /etc/systemd/system/xxx.service to > either of the two files and manage it by hand, calling systemctl > daemon-reload afterwards. I think this should work. > > > If other systemd un

Re: [systemd-devel] systemd-detect-virt and vendors

2014-10-08 Thread Lennart Poettering
On Wed, 08.10.14 09:38, Rahul Sundaram (methe...@gmail.com) wrote: > Hi > > Bringing up here for discussion as suggested in > > https://bugzilla.redhat.com/show_bug.cgi?id=1150477 > > Just for the background, I was checking to see if systemd-detect-virt > supported virtualbox and grepped the m

Re: [systemd-devel] How to exclusively toggle between two systemd instances of a single daemon?

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 06:30:51AM -0700, terrygalant.li...@fastest.cc wrote: > Hi > > I have 2 installed instances of a single daemon. > > 1 is from distro-installed packages, installed into standard default OS > locations with unit files in /usr/lib/systemd/system/. > > The other is installed

[systemd-devel] systemd-detect-virt and vendors

2014-10-08 Thread Rahul Sundaram
Hi Bringing up here for discussion as suggested in https://bugzilla.redhat.com/show_bug.cgi?id=1150477 Just for the background, I was checking to see if systemd-detect-virt supported virtualbox and grepped the man page and concluded it didn't since I didn't find the term. I was going to write

[systemd-devel] How to exclusively toggle between two systemd instances of a single daemon?

2014-10-08 Thread terrygalant . lists
Hi I have 2 installed instances of a single daemon. 1 is from distro-installed packages, installed into standard default OS locations with unit files in /usr/lib/systemd/system/. The other is installed under /opt, with unit files currently in /opt/mydaemon/systemd/system/, which can be (un)sym

Re: [systemd-devel] [PATCH] core: don't allow enabling if unit is masked

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 11:54:19AM +0200, Lennart Poettering wrote: > On Tue, 07.10.14 13:35, Jan Synacek (jsyna...@redhat.com) wrote: > > > --- > > src/shared/install.c | 13 + > > 1 file changed, 13 insertions(+) > > > > diff --git a/src/shared/install.c b/src/shared/install.c > >

[systemd-devel] consoled vs vlock -a

2014-10-08 Thread systemd
Hi, will a transition to consoled affect `vlock -a` which uses ioctl(...VT_SETMODE...) to prevent switching to another terminal? Will this functionality still work? -- Marcin Szewczyk http://wodny.org mailto:marcin.szewc...@wodny.borg <- remove b / usuń b xmpp:wo...@ubuntu

Re: [systemd-devel] [PATCH] journal: Fix sd_journal_enumerate_unique skipping values

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 08:24:49AM +0200, Jan Janssen wrote: > > > > Gesendet: Mittwoch, 08. Oktober 2014 um 01:40 Uhr > > Von: "Zbigniew Jędrzejewski-Szmek" > > An: "Jan Janssen" > > Cc: systemd-devel@lists.freedesktop.org > > Betreff: Re: [systemd-devel] [PATCH] journal: Fix > > sd_journal_e

[systemd-devel] [RFC] Mounting $XGD_RUNTIME_DIR with units instead of logind code.

2014-10-08 Thread Maciej Wereski
Hello, Lately I've been working on updating systemd (currently 208) in Tizen. One of problems we've stumbled upon was with user@.service failing. Problem was on SMACK-enabled system, caused by 1c231f5 (logind: make $XDG_RUNTIME_DIR a per-user tmpfs). When $XDG_RUNTIME_DIR is mounted it inherits

Re: [systemd-devel] [PATCH] man/systemctl: document enable on masked units

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 08:04:52AM +0200, Jan Synacek wrote: > --- > man/systemctl.xml | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/man/systemctl.xml b/man/systemctl.xml > index b28a3b7..d2fa3b3 100644 > --- a/man/systemctl.xml > +++ b/man/systemctl.xml > @@ -92

Re: [systemd-devel] [PATCH] note on relative symlink in os-release

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 01:42:59AM -0400, Rahul Sundaram wrote: > --- > man/os-release.xml | 12 > 1 file changed, 8 insertions(+), 4 deletions(-) > > diff --git a/man/os-release.xml b/man/os-release.xml > index 4e02f80..b298304 100644 > --- a/man/os-release.xml > +++ b/man/os-releas

Re: [systemd-devel] Systemd-nspawn: Cannot create tun device in container

2014-10-08 Thread Lennart Poettering
On Fri, 03.10.14 10:46, James Lott (ja...@lottspot.com) wrote: > Hello, list! > > In some work I've been doing with systemd-nspawn containers, I've been trying > to connect one of my containers to an openvpn network. This conteiner is > being > run with the --network-bridge flag to setup its n

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

2014-10-08 Thread Daniel J Walsh
On 10/08/2014 07:40 AM, Lennart Poettering wrote: > On Tue, 07.10.14 14:14, Michal Sekletar (msekl...@redhat.com) wrote: > >>> Hence, if a container manager mounts everything properly, then mount_setup() >>> should be a NOP anyway... >> In theory yes, but in fact not having /run mounted as tmpfs

Re: [systemd-devel] [PATCH] dbus-manager: don't allow enabling if unit is masked

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 08:23, Jan Synacek (jsyna...@redhat.com) wrote: > Lennart Poettering writes: > > On Mon, 06.10.14 13:21, Jan Synacek (jsyna...@redhat.com) wrote: > > > > Hmm with this change in place we'd have different behaviour for the > > cases where systemctl executes the operation client-si

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

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 04:59, Barbieri, Gustavo (gustavo.barbi...@intel.com) wrote: > > -Original Message- > > From: Lennart Poettering [mailto:lenn...@poettering.net] > > Sent: Thursday, October 02, 2014 4:16 AM > > To: Barbieri, Gustavo > > Cc: systemd-devel@lists.freedesktop.org > > Subject:

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

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 04:54, Barbieri, Gustavo (gustavo.barbi...@intel.com) wrote: > > -Original Message- > > From: Lennart Poettering [mailto:lenn...@poettering.net] > > Sent: Thursday, October 02, 2014 4:19 AM > > To: Barbieri, Gustavo > > Cc: Zbigniew Jędrzejewski-Szmek; systemd-devel@lists.

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

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 14:17, Michal Sekletar (msekl...@redhat.com) wrote: > On Thu, Oct 02, 2014 at 12:04:02PM +0200, Lennart Poettering wrote: > > On Thu, 02.10.14 09:57, Michal Sekletar (msekl...@redhat.com) wrote: > > > > > #define FINALIZE_ATTEMPTS 50 > > > > > > @@ -207,7 +208,11 @@ int main(i

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

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 14:14, Michal Sekletar (msekl...@redhat.com) wrote: > > Hence, if a container manager mounts everything properly, then mount_setup() > > should be a NOP anyway... > > In theory yes, but in fact not having /run mounted as tmpfs is default in the > docker > container. I have no s

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

2014-10-08 Thread Lukáš Nykrýn
Zbigniew Jędrzejewski-Szmek píše v Út 07. 10. 2014 v 23:11 +0200: > On Tue, Oct 07, 2014 at 05:46:48PM +0200, Zbigniew Jędrzejewski-Szmek wrote: > > On Tue, Oct 07, 2014 at 02:09:37PM +0200, Lukas Nykryn wrote: > > > --- > > > Changes in v4 > > > - renamed install_dependency -> dependency > > > - r

Re: [systemd-devel] [PATCH] core: don't allow enabling if unit is masked

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 13:35, Jan Synacek (jsyna...@redhat.com) wrote: > --- > src/shared/install.c | 13 + > 1 file changed, 13 insertions(+) > > diff --git a/src/shared/install.c b/src/shared/install.c > index fa064c2..945bb27 100644 > --- a/src/shared/install.c > +++ b/src/shared/instal

Re: [systemd-devel] Shell expressions in EnvironmentFile

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 19:18, Simon Peeters (peeters.si...@gmail.com) wrote: > 2014-10-07 19:12 GMT+02:00 Jon Stanley : > > Since EnvironmentFile in a service isn't sourced by any shell, shell > > expressions in it will obviously not work the way that they did in a > > SysV style script. > > > > Nor doe

Re: [systemd-devel] Shell expressions in EnvironmentFile

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 13:12, Jon Stanley (jonstan...@gmail.com) wrote: > Since EnvironmentFile in a service isn't sourced by any shell, shell > expressions in it will obviously not work the way that they did in a > SysV style script. > > Nor does it seems that the environment gets preserved between >

Re: [systemd-devel] I wonder… why systemd provokes this amount of polarity and resistance

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 23:40, Uoti Urpala (uoti.urp...@pp1.inet.fi) wrote: > On Tue, 2014-10-07 at 14:15 -0400, Rob Owens wrote: > > My question really isn't "why are the Debian dependencies the way they > > are". I understand that. I was trying to highlight the strange situation > > of a desktop ap

[systemd-devel] [systemd.link] How to use NamePolicy=mac?

2014-10-08 Thread Moviuro
Hi all! In order to fix in an easily predictable manner the interfaces' names, I went and wrote the following .link file: /etc/systemd/network/00-default.link [Link] NamePolicy=mac MACAddressPolicy=persistent I daemon-reload, reboot: $ ip a [...] 4: eth0: mtu 1500 qdisc pfifo_fast state UP g