Re: [systemd-devel] [PATCH] loopback setup in unprivileged containers

2014-12-29 Thread Matthias Urlichs
Hi, Tom Gundersen: On Sun, Dec 28, 2014 at 6:18 PM, Stéphane Graber stephane.gra...@canonical.com wrote: My host system doesn't have nspawn so I can't easily test it this way, but it was my understanding that nspawn didn't support user namespaces and uid/gid mappings which is what I'm

[systemd-devel] [PATCH 1/2] typofixes - https://github.com/vlajos/misspell_fixer

2014-12-29 Thread Veres Lajos
--- NEWS|2 +- TODO|2 +- man/sd_bus_negotiate_fds.xml|2 +- man/sd_event_add_child.xml |4 ++-- man/sd_event_add_signal.xml |2

[systemd-devel] [PATCH 2/2] Applying fixes from here: https://github.com/torstehu/systemd/commit/b6fdeb618cf2f3ce1645b3315f15f482710c7ffa Thanks to Torstein Husebo torst...@huseboe.net.

2014-12-29 Thread Veres Lajos
--- NEWS |2 +- src/journal/journald-audit.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 7079d41..d4d505d 100644 --- a/NEWS +++ b/NEWS @@ -3555,7 +3555,7 @@ CHANGES WITH 190: keys all the time, even in

Re: [systemd-devel] [PATCH] Fix install location of systemd.pc

2014-12-29 Thread Martin Pitt
Mike Gilbert [2014-12-28 12:41 -0500]: From Lennart's commit message, it seems like this was done intentionally. The addition of libdir was certainly intentional, that's why I didn't propose to just remove libdir. But it looks like this was just missing to adjust the install location

[systemd-devel] [PATCH] path: conditionally depend on the triggered unit

2014-12-29 Thread Jouke Witteveen
Path units having either PathExists=, PathExistsGlob=, or DirectoryNotEmpty= want the service they trigger when the condition is met. This way it becomes meaningful to include StopWhenUnneeded=true in the triggered service. --- This fixes #87287. man/systemd.path.xml | 10 ++

Re: [systemd-devel] Quiesce audit message flood from 218

2014-12-29 Thread Lennart Poettering
On Sun, 28.12.14 12:45, Martin Pitt (martin.p...@ubuntu.com) wrote: Hello all, systemd 218 now enables audit in the kernel unconditionally [1]. While these messages might be nice to have in the journal, they literally flood dmesg and thus /var/log/syslog and friends with messages like

Re: [systemd-devel] [PATCH] loopback setup in unprivileged containers

2014-12-29 Thread Lennart Poettering
On Sun, 28.12.14 18:18, Stéphane Graber (stephane.gra...@canonical.com) wrote: My host system doesn't have nspawn so I can't easily test it this way, but it was my understanding that nspawn didn't support user namespaces and uid/gid mappings which is what I'm working with here. Note that

Re: [systemd-devel] [PATCH] loopback setup in unprivileged containers

2014-12-29 Thread Lennart Poettering
On Mon, 29.12.14 09:07, Matthias Urlichs (matth...@urlichs.de) wrote: On Sun, Dec 28, 2014 at 6:18 PM, Stéphane Graber stephane.gra...@canonical.com wrote: My host system doesn't have nspawn so I can't easily test it this way, but it was my understanding that nspawn didn't support user

Re: [systemd-devel] [PATCH] loopback setup in unprivileged containers

2014-12-29 Thread Martin Pitt
Hey Tom, Tom Gundersen [2014-12-29 2:22 +0100]: The bug should now be fixed in git. Please let me know if you still experience problems. Nice! I confirm that the systemd spins 100% CPU for about one minute when booting an user level container is indeed fixed now. I can't test it much further

Re: [systemd-devel] Variable expansion in ConditionPathExists

2014-12-29 Thread Lennart Poettering
On Wed, 24.12.14 10:37, Marcos Felipe Rasia de Mello (marcos...@gmail.com) wrote: Hi, I have a system service that runs with a normal user account ([Service] User=bla). I tried [Unit] ConditionPathExists=$HOME/config.xml Environment variable expansion is only supported for ExecXYZ=

Re: [systemd-devel] How to write two .mount units for the same directory?

2014-12-29 Thread Lennart Poettering
On Wed, 24.12.14 11:09, 崔灏 (CUI Hao) (cuihao@gmail.com) wrote: Hi all, I want to write 2 mount unit to mount the same directory. When the first failed to mount, then the second is called via OnFailure= setting. (Think of an NTFS partition after Windows' hiberation. I'd like to write a

Re: [systemd-devel] [PATCH] loopback setup in unprivileged containers

2014-12-29 Thread Tom Gundersen
On Mon, Dec 29, 2014 at 2:34 PM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 29.12.14 09:07, Matthias Urlichs (matth...@urlichs.de) wrote: On Sun, Dec 28, 2014 at 6:18 PM, Stéphane Graber stephane.gra...@canonical.com wrote: My host system doesn't have nspawn so I can't

[systemd-devel] [PATCH] gpt-auto-generator: honor read-only attribute for native rootfs, post-initrd.

2014-12-29 Thread Dimitri John Ledkov
Signed-off-by: Dimitri John Ledkov dimitri.j.led...@intel.com --- This is not yet really ready for application, as ultimately this is only solution for part of the problem. With this patch, post-initrd -.mount unit will have correct Options=rw if READ_ONLY flag is not set and ro/rw was not

Re: [systemd-devel] [PATCH] loopback setup in unprivileged containers

2014-12-29 Thread Matthias Urlichs
Hi, Lennart Poettering: I am open to adding support for this, but I think the allocation of the UID ranges should really happen automatically, and not be something the admin has to manually assign. Which means we'd enter dynamic UID allocation terroritory, and that opens a huge can of

Re: [systemd-devel] [PATCH] Fix install location of systemd.pc

2014-12-29 Thread Simon Peeters
2014-12-29 13:02 GMT+00:00 Martin Pitt martin.p...@ubuntu.com: Mike Gilbert [2014-12-28 12:41 -0500]: From Lennart's commit message, it seems like this was done intentionally. The addition of libdir was certainly intentional, that's why I didn't propose to just remove libdir. But it looks

Re: [systemd-devel] forever loop during garbage collection

2014-12-29 Thread Umut Tezduyar Lindskog
Ping? On Wednesday, December 10, 2014, Umut Tezduyar Lindskog u...@tezduyar.com wrote: On Mon, Dec 8, 2014 at 8:09 PM, Lennart Poettering lenn...@poettering.net javascript:; wrote: On Sun, 30.11.14 14:38, Umut Tezduyar Lindskog (u...@tezduyar.com javascript:;) wrote: Hi, We are

Re: [systemd-devel] [PATCH] loopback setup in unprivileged containers

2014-12-29 Thread Stéphane Graber
On Mon, Dec 29, 2014 at 02:43:37PM +0100, Martin Pitt wrote: Hey Tom, Tom Gundersen [2014-12-29 2:22 +0100]: The bug should now be fixed in git. Please let me know if you still experience problems. Nice! I confirm that the systemd spins 100% CPU for about one minute when booting an

Re: [systemd-devel] [PATCH] loopback setup in unprivileged containers

2014-12-29 Thread Stéphane Graber
On Mon, Dec 29, 2014 at 02:32:36PM +0100, Lennart Poettering wrote: On Sun, 28.12.14 18:18, Stéphane Graber (stephane.gra...@canonical.com) wrote: My host system doesn't have nspawn so I can't easily test it this way, but it was my understanding that nspawn didn't support user namespaces

[systemd-devel] simple service shell script filling journal

2014-12-29 Thread Larry Harmon
I am using a simple shell script, started by system, to set LEDs on a Marvell Armada 370 plug. The script uses a while loop with a sleep 30 line Exiting sleep seems to log to the journal, filling it with useless info. How can I change this behavior? I have tried different service types (fork,

Re: [systemd-devel] simple service shell script filling journal

2014-12-29 Thread Reindl Harald
Am 29.12.2014 um 21:16 schrieb Larry Harmon: I am using a simple shell script, started by system, to set LEDs on a Marvell Armada 370 plug. The script uses a while loop with a sleep 30 line Exiting sleep seems to log to the journal, filling it with useless info. How can I change this

Re: [systemd-devel] simple service shell script filling journal

2014-12-29 Thread Reindl Harald
Am 29.12.2014 um 21:48 schrieb Larry Harmon: try StandardOutput=null inside [Service] Yes, this worked. (not sure why) because the service binary spits out that information to stdout instead syslog and journald collects stout to not lose any message - otherwise you would not be aware of

[systemd-devel] [PATCH] units: move machines.target to dist_systemunit_DATA

2014-12-29 Thread Filipe Brandenburger
Move units/machines.target from nodist_systemunit_DATA to dist_systemunit_DATA, since it's not a generated file. Otherwise, `make clean` would remove the committed copy of the file. Tested that `./autogen.sh c` will not remove it and that `make distcheck` works after this fix. --- Makefile.am |

[systemd-devel] [PATCH] machine: add reference to machine-dbus.h to Makefile.am

2014-12-29 Thread Filipe Brandenburger
Commit 003dffde2c1b93 (machined: Move image discovery logic into src/shared, so that we can make use of it from nspawn) moved some definitions from machine.h to a new machine-dbus.h, but did not include it in Makefile.am Tested that `make distcheck` works after this fix. --- Makefile.am | 1 + 1

Re: [systemd-devel] simple service shell script filling journal

2014-12-29 Thread Jóhann B. Guðmundsson
On 12/29/2014 08:16 PM, Larry Harmon wrote: I am using a simple shell script, started by system, to set LEDs on a Marvell Armada 370 plug. The script uses a while loop with a sleep 30 line Hmm somehow using a script ( and a type service unit ) to accomplish this does not sound right to

[systemd-devel] dynamic uid allocation (was: [PATCH] loopback setup in unprivileged containers)

2014-12-29 Thread Simon Peeters
2014-12-29 14:14 GMT+00:00 Tom Gundersen t...@jklm.no: On Mon, Dec 29, 2014 at 2:34 PM, Lennart Poettering lenn...@poettering.net wrote: snip I am open to adding support for this, but I think the allocation of the UID ranges should really happen automatically, and not be something the admin

Re: [systemd-devel] dynamic uid allocation (was: [PATCH] loopback setup in unprivileged containers)

2014-12-29 Thread Simon Peeters
2014-12-30 6:49 GMT+00:00 Simon Peeters peeters.si...@gmail.com: 2014-12-29 14:14 GMT+00:00 Tom Gundersen t...@jklm.no: On Mon, Dec 29, 2014 at 2:34 PM, Lennart Poettering lenn...@poettering.net wrote: snip I am open to adding support for this, but I think the allocation of the UID ranges