Re: [systemd-devel] reboot splash screen

2014-01-31 Thread Andrey Borzenkov
В Fri, 31 Jan 2014 18:11:10 -0500 Cliff Brake пишет: > Hi, > > I'm trying to get systemd to display a splash screen on powerdown. > I've tried using something similar to these recipes: > > http://cgit.freedesktop.org/plymouth/tree/systemd-units > > But, for some reason my service is not being

[systemd-devel] [PATCH] shared: include root when canonicalizing conf paths

2014-01-31 Thread Michael Marineau
The conf_files_list family accepts an alternate root path to prefix all directories in the list but path_strv_canonicalize_uniq doesn't use it. This results in the suspicious behavior of resolving directory symlinks based on the contents of / instead of the alternate root. This adds a prefix argum

[systemd-devel] reboot splash screen

2014-01-31 Thread Cliff Brake
Hi, I'm trying to get systemd to display a splash screen on powerdown. I've tried using something similar to these recipes: http://cgit.freedesktop.org/plymouth/tree/systemd-units But, for some reason my service is not being activated (included below): root@q7imx6:~# more /lib/systemd/system/re

Re: [systemd-devel] [PATCH] classify the LPAR console as a terminal device

2014-01-31 Thread Dan Horák
On Fri, 31 Jan 2014 15:24:30 +0100 Dan Horák wrote: > The /usr/lib/udev/rules.d/99-systemd.rules file does not tag the > "sclp_line*" terminal device and, hence, systemd will not handle it. > The result is no agetty run for the LPAR console meaning no local > access to the system. scratch that,

Re: [systemd-devel] [PATCH 1/1] Allow systemd to run without assigning container to machine.slice

2014-01-31 Thread Daniel J Walsh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/31/2014 09:51 AM, Zbigniew Jędrzejewski-Szmek wrote: > On Fri, Jan 31, 2014 at 08:27:29AM -0500, Daniel J Walsh wrote: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> >> On 01/30/2014 07:09 PM, Zbigniew Jędrzejewski-Szmek wrote: >>> On Thu,

Re: [systemd-devel] [PATCH 1/1] Allow systemd to run without assigning container to machine.slice

2014-01-31 Thread Daniel J Walsh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/31/2014 11:20 AM, Zbigniew Jędrzejewski-Szmek wrote: > On Fri, Jan 31, 2014 at 10:51:22AM -0500, Daniel J Walsh wrote: Currently docker uses lxc tools under the covers to launch the container, we want to add a plugin to use systemd-nspa

[systemd-devel] [PATCH] s390/getty-generator: initialize essential system terminals/consoles

2014-01-31 Thread Hendrik Brueckner
Ensure to start getty programs on all essential system consoles on Linux on System z. Add these essential devices to the list of virtualization_consoles to always generate getty configurations. For the sake of completion, the list of essential consoles is: /dev/sclp_line0 - Operating system me

Re: [systemd-devel] [PATCH] s390/getty-generator: initialize essential system terminals/consoles

2014-01-31 Thread Lukáš Nykrýn
Dne 31.1.2014 17:08, Hendrik Brueckner napsal(a): Ensure to start getty programs on all essential system consoles on Linux on System z. Add these essential devices to the list of virtualization_consoles to always generate getty configurations. For the sake of completion, the list of essential c

[systemd-devel] Socket activation for Xorg

2014-01-31 Thread Łukasz Stelmach
Hello All. Just a short heads-up. Xserver from Xorg has gained support for socket activation. http://cgit.freedesktop.org/xorg/xserver/commit/?id=b3d3ffd19937827bcbdb833a628f9b1814a6e189 http://cgit.freedesktop.org/xorg/lib/libxtrans/commit/?id=e1e6121a1638d43d9929589b4723da2b38cb6b44 http://cgit

Re: [systemd-devel] [PATCH 1/1] Allow systemd to run without assigning container to machine.slice

2014-01-31 Thread Daniel J Walsh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/31/2014 10:45 AM, Zbigniew Jędrzejewski-Szmek wrote: > On Fri, Jan 31, 2014 at 10:00:12AM -0500, Daniel J Walsh wrote: >> My plan is not to have the user no they are running systemd-nspawn >> >> Imaging the user is creating a httpd container uni

[systemd-devel] StartTransientService problems

2014-01-31 Thread Barry Scott
I have finally managed to get StartTransientService to run a process for me but I'm encountering issues: we start a daemon that calls StartTransientService as required. The daemon does not run as root, it runs as "onelan". We configure dbus to allow "onelan" to call all systemd Manager APIs. I wa

Re: [systemd-devel] [PATCH 1/1] Allow systemd to run without assigning container to machine.slice

2014-01-31 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Jan 31, 2014 at 10:00:12AM -0500, Daniel J Walsh wrote: > My plan is not to have the user no they are running systemd-nspawn > > Imaging the user is creating a httpd container unit file using docker, > described in this document. > > http://welldefinedbehaviour.wordpress.com/2014/01/30/ad

Re: [systemd-devel] [PATCH 1/1] Allow systemd to run without assigning container to machine.slice

2014-01-31 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Jan 31, 2014 at 10:51:22AM -0500, Daniel J Walsh wrote: > >> Currently docker uses lxc tools under the covers to launch the container, > >> we want to add a plugin to use systemd-nspawn. > >> > >> docker -> systemd-nspawn -> container > >> > >> But we want the docker, systemd-nspawn and t

Re: [systemd-devel] [PATCH 1/1] Allow systemd to run without assigning container to machine.slice

2014-01-31 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Jan 31, 2014 at 08:27:29AM -0500, Daniel J Walsh wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 01/30/2014 07:09 PM, Zbigniew Jędrzejewski-Szmek wrote: > > On Thu, Jan 30, 2014 at 04:29:14PM -0500, Dan Walsh wrote: > >> If I want to run a container as a service, it would b

Re: [systemd-devel] [PATCH 1/1] Allow systemd to run without assigning container to machine.slice

2014-01-31 Thread Daniel J Walsh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/30/2014 07:09 PM, Zbigniew Jędrzejewski-Szmek wrote: > On Thu, Jan 30, 2014 at 04:29:14PM -0500, Dan Walsh wrote: >> If I want to run a container as a service, it would be nice if it used >> the service cgroup configuration > Your patch will brea

[systemd-devel] [PATCH] classify the LPAR console as a terminal device

2014-01-31 Thread Dan Horák
The /usr/lib/udev/rules.d/99-systemd.rules file does not tag the "sclp_line*" terminal device and, hence, systemd will not handle it. The result is no agetty run for the LPAR console meaning no local access to the system. see also https://bugzilla.redhat.com/show_bug.cgi?id=860158 --- rules/99-sy

Re: [systemd-devel] [PATCH 0/6] Init-Reboot and some minor fixes

2014-01-31 Thread Tom Gundersen
On Fri, Jan 31, 2014 at 10:31 AM, Patrik Flykt wrote: > This patch set implements DHCP Init-Reboot support for libsystemd-dhcp > and fixes a few other minor things. > > Init-Reboot support is implemented by patch 03. If the previous IPv4 > address is set before starting the DHCP procedure, the cod

Re: [systemd-devel] [PATCH] use memzero(foo, length); for all memset(foo, 0, length); calls

2014-01-31 Thread Tom Gundersen
On Fri, Jan 31, 2014 at 6:51 AM, Greg KH wrote: > In trying to track down a stupid linker bug, I noticed a bunch of > memset() calls that should be using memzero() to make it more "obvious" > that the options are correct (i.e. 0 is not the length, but the data to > set). So fix up all current cal

[systemd-devel] [PATCH 1/6] libsystemd-dhcp: DNS name option must be a multiple of 4 bytes

2014-01-31 Thread Patrik Flykt
--- src/libsystemd-dhcp/sd-dhcp-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd-dhcp/sd-dhcp-client.c b/src/libsystemd-dhcp/sd-dhcp-client.c index 3b7b9f4..1fdc01a 100644 --- a/src/libsystemd-dhcp/sd-dhcp-client.c +++ b/src/libsystemd-dhcp/sd-dhcp-clien

[systemd-devel] [PATCH 4/6] libsystemd-dhcp: Compute UDP checksum only if set

2014-01-31 Thread Patrik Flykt
A checksum field with value zero means no UDP checksum has been computed for the packet. --- src/libsystemd-dhcp/sd-dhcp-client.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/libsystemd-dhcp/sd-dhcp-client.c b/src/libsystemd-dhcp/sd-dhcp-client.c index

[systemd-devel] [PATCH 6/6] libsystemd-dhcp: Update secs field only when sending Discover

2014-01-31 Thread Patrik Flykt
Compute the 'secs' field as seconds since start of lease acquisition procedure. Start off with a value of zero and increase it only for each resent DHCP discover message. See the discussion before and after http://www.ietf.org/mail-archive/web/dhcwg/current/msg05836.html and Section 3.1 of RFC 2131

[systemd-devel] [PATCH 3/6] libsystemd-dhcp: Add Init-Reboot support

2014-01-31 Thread Patrik Flykt
Init-Reboot is tried if a client IP address has been given when the DHCP client is started. In Init-Reboot, start by sending a broadcasted DHCP Request including the supplied client IP address but without the server identifier. After sending the request, enter Reboot state. If a DHCP Ack is receiv

[systemd-devel] [PATCH 0/6] Init-Reboot and some minor fixes

2014-01-31 Thread Patrik Flykt
Hi, This patch set implements DHCP Init-Reboot support for libsystemd-dhcp and fixes a few other minor things. Init-Reboot support is implemented by patch 03. If the previous IPv4 address is set before starting the DHCP procedure, the code now tries starting with Init-Reboot as described

[systemd-devel] [PATCH 5/6] libsystemd-dhcp: Fix stopping of DHCP client

2014-01-31 Thread Patrik Flykt
Go back to Init state independent of the current state the client is in. --- src/libsystemd-dhcp/sd-dhcp-client.c | 20 ++-- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/src/libsystemd-dhcp/sd-dhcp-client.c b/src/libsystemd-dhcp/sd-dhcp-client.c index 7e79dc1..fd

[systemd-devel] [PATCH 2/6] libsystemd-dhcp: Rename function to be clearer that options are parsed

2014-01-31 Thread Patrik Flykt
--- src/libsystemd-dhcp/sd-dhcp-client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libsystemd-dhcp/sd-dhcp-client.c b/src/libsystemd-dhcp/sd-dhcp-client.c index 1fdc01a..ffb304d 100644 --- a/src/libsystemd-dhcp/sd-dhcp-client.c +++ b/src/libsystemd-dhcp/sd-dhcp