Re: [systemd-devel] minimal required units

2015-03-13 Thread Andrei Borzenkov
В Fri, 13 Mar 2015 08:31:44 -0700 aaron_wri...@selinc.com пишет: > > > > I'm concerned because I left out local-fs.target to begin with, as I > don't > > > need systemd to mount anything, but that seemed to cause systemd to > > > unmount everything other than / and the kernel file systems. > >

Re: [systemd-devel] Possible systemd segfault switching from 216 to 219 in fedora upgrade

2015-03-13 Thread Andrei Borzenkov
В Fri, 13 Mar 2015 16:38:33 -0600 Chris Murphy пишет: > On Fri, Mar 13, 2015 at 3:59 PM, Will Woods wrote: > > I don't really like the new->old->new switchroot stuff, but I haven't > > got a better solution at the moment. > > > > But: if we could use something like "systemd-nspawn" to: > > > > 1

Re: [systemd-devel] journald on embedded systems

2015-03-13 Thread Umut Tezduyar Lindskog
Getting inspiration from what you are proposing, you can already forward messages to a datagram socket (syslog). You could implement a program to empty out the datagram socket and only write the messages you want. Syslog format doesnt know anything about FIELD though. One down side of this implemen

Re: [systemd-devel] [PATCH] selinux: fix SEGV during switch-root if SELinux policy loaded

2015-03-13 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Mar 13, 2015 at 05:24:46PM -0400, Will Woods wrote: > If you've got SELinux policy loaded, label_hnd is your labeling handle. > When systemd is shutting down, we free that handle via mac_selinux_finish(). > > But: switch_root() calls mkdir_p_label(), which tries to look up a label > using

Re: [systemd-devel] journald on embedded systems

2015-03-13 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Mar 13, 2015 at 06:35:38PM -0400, Chris Morgan wrote: > Hello. > > I posted this, > http://lists.freedesktop.org/archives/systemd-devel/2013-July/011926.html, > some time ago about tiered logging for embedded systems. > > The goal is to guarantee that the flash memory will last the durat

Re: [systemd-devel] sd_event_run

2015-03-13 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Mar 13, 2015 at 06:10:17PM +0100, Tom Gundersen wrote: > On Fri, Mar 13, 2015 at 4:35 PM, Zbigniew Jędrzejewski-Szmek > wrote: > > you added sd_event_run a while ago: > > > > commit c45a5a74465a39280b855f9d720b2ab4779a47fa > > Author: Tom Gundersen > > Date: Fri Aug 15 18:49:29 2014 +02

Re: [systemd-devel] After=foo.busname oderings although kdbus is disabled

2015-03-13 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Mar 14, 2015 at 01:41:16AM +0100, Michael Biebl wrote: > Hi, > > in Debian/Ubuntu, kdbus support is disabled. > With version 219 I see the following e.g. for avahi-daemon.service > > After=basic.target org.freedesktop.Avahi.busname avahi-daemon.socket > systemd-journald.socket system.slic

[systemd-devel] After=foo.busname oderings although kdbus is disabled

2015-03-13 Thread Michael Biebl
Hi, in Debian/Ubuntu, kdbus support is disabled. With version 219 I see the following e.g. for avahi-daemon.service After=basic.target org.freedesktop.Avahi.busname avahi-daemon.socket systemd-journald.socket system.slice Why is there an After=org.freedesktop.Avahi.busname ordering? Bug? Mich

Re: [systemd-devel] Possible systemd segfault switching from 216 to 219 in fedora upgrade

2015-03-13 Thread Chris Murphy
On Fri, Mar 13, 2015 at 3:59 PM, Will Woods wrote: > I don't really like the new->old->new switchroot stuff, but I haven't > got a better solution at the moment. > > But: if we could use something like "systemd-nspawn" to: > > 1) start your old system in a container, > 2) let it mount its disks, >

[systemd-devel] journald on embedded systems

2015-03-13 Thread Chris Morgan
Hello. I posted this, http://lists.freedesktop.org/archives/systemd-devel/2013-July/011926.html, some time ago about tiered logging for embedded systems. The goal is to guarantee that the flash memory will last the duration of the product by carefully controlling who writes to it. I'm back look

Re: [systemd-devel] Possible systemd segfault switching from 216 to 219 in fedora upgrade

2015-03-13 Thread Will Woods
On Tue, 2015-03-10 at 17:21 +0100, Lennart Poettering wrote: > My recommendation would be to use the offline updates logic we have in > systemd already: > > http://www.freedesktop.org/wiki/Software/systemd/SystemUpdates/ > > systemd has been implementing this for quite a while, at least for all >

[systemd-devel] [PATCH] selinux: fix SEGV during switch-root if SELinux policy loaded

2015-03-13 Thread Will Woods
If you've got SELinux policy loaded, label_hnd is your labeling handle. When systemd is shutting down, we free that handle via mac_selinux_finish(). But: switch_root() calls mkdir_p_label(), which tries to look up a label using that freed handle, and so we get a bunch of garbage and eventually SEG

[systemd-devel] Enabling timesyncd in virtual machines

2015-03-13 Thread Michael Marineau
Greetings, Currently systemd-timesyncd.service includes ConditionVirtualization=no, disabling it in both containers and virtual machines. Each VM platform tends to deal with or ignore the time problem in their own special ways, KVM/QEMU has the kernel time source kvm-clock, Xen has had different s

[systemd-devel] [PATCH] network: add UseNTP DHCP option

2015-03-13 Thread Michael Marineau
Despite having the internal logic in place to enable/disable using NTP servers provided by DHCP the network config didn't expose the option. --- man/systemd.network.xml | 8 src/network/networkd-network-gperf.gperf | 1 + 2 files changed, 9 insertions(+) diff --git a/man

[systemd-devel] [PATCH] vconsole-setup: check error of child process

2015-03-13 Thread lucas . de . marchi
From: Lucas De Marchi If we don't check the error of the child process, systemd-vconsole-setup would exit with 0 even if it could not really setup the console. For a simple test, move loadkeys elsewhere and execute systemd-vconsole-setup: [root@localhost ~]# strace -f -e execve /usr/li

[systemd-devel] [PATCH] journal: Introduce journal-network

2015-03-13 Thread Susant Sahani
This tiny daemon enables to pull journal entries and push to a UDP multicast address in syslog RFC 5424 format. journal-syslog-network runs with own user systemd-journal-push. It starts running after the network is up. --- Makefile-man.am| 8 + Makefile.am

Re: [systemd-devel] sd_event_run

2015-03-13 Thread Tom Gundersen
On Fri, Mar 13, 2015 at 4:35 PM, Zbigniew Jędrzejewski-Szmek wrote: > you added sd_event_run a while ago: > > commit c45a5a74465a39280b855f9d720b2ab4779a47fa > Author: Tom Gundersen > Date: Fri Aug 15 18:49:29 2014 +0200 > > sd-event: split run into prepare/wait/dispatch > > This will a

Re: [systemd-devel] minimal required units

2015-03-13 Thread Aaron_Wright
...snip... > > If I include at least all of the units leading up to basic.target, would > > that cover the units required by systemd? > > systemd does not really require anything. Really. *You* (or your > system) require something to be started during boot and only you know > what should be sta

[systemd-devel] sd_event_run

2015-03-13 Thread Zbigniew Jędrzejewski-Szmek
Hi, you added sd_event_run a while ago: commit c45a5a74465a39280b855f9d720b2ab4779a47fa Author: Tom Gundersen Date: Fri Aug 15 18:49:29 2014 +0200 sd-event: split run into prepare/wait/dispatch This will allow sd-event to be integrated into an external event loop, which in tu

Re: [systemd-devel] Needs help for on charging activation

2015-03-13 Thread Kyungmin Park
Hi Lennart, Any comments? We hope to assign our work with systemd one. Thank you, Kyungmin Park On Monday, March 9, 2015, WaLyong Cho wrote: > Hi, > > I want to find best solution on our case. Our product is mobile device. > But I don't think that is only problem of mobile device. That also

Re: [systemd-devel] How to factory reset?

2015-03-13 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Mar 13, 2015 at 02:20:04PM +0100, Tobias Hunger wrote: > Hi Zbyszek, > > I would expect the machine-id to be written before mount units are > processed, so for that to work I would need to mount /var in the > initrd, wouldn't I? (Without looking at the code again) I don't think so. machine

Re: [systemd-devel] How to factory reset?

2015-03-13 Thread Tobias Hunger
Hi Zbyszek, I would expect the machine-id to be written before mount units are processed, so for that to work I would need to mount /var in the initrd, wouldn't I? Currently I am trying to just write the machine-id to /etc in the initrd. This makes systemd loose the understanding that /etc is emp

Re: [systemd-devel] [systemd-commits] 7 commits - man/systemd.network.xml po/es.po po/LINGUAS src/journal-remote src/libsystemd src/libsystemd-network

2015-03-13 Thread David Herrmann
Hi On Fri, Mar 13, 2015 at 1:45 PM, Zbigniew Jędrzejewski-Szmek wrote: > On Fri, Mar 13, 2015 at 01:38:23PM +0100, David Herrmann wrote: >> Hi >> >> On Fri, Mar 13, 2015 at 5:27 AM, Zbigniew Jędrzejewski-Szmek >> wrote: >> > commit f53f7c8fc43df4e38655f2a1f5c5934fee06 >> > Author: Zbigniew J

Re: [systemd-devel] [systemd-commits] 7 commits - man/systemd.network.xml po/es.po po/LINGUAS src/journal-remote src/libsystemd src/libsystemd-network

2015-03-13 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Mar 13, 2015 at 01:38:23PM +0100, David Herrmann wrote: > Hi > > On Fri, Mar 13, 2015 at 5:27 AM, Zbigniew Jędrzejewski-Szmek > wrote: > > commit f53f7c8fc43df4e38655f2a1f5c5934fee06 > > Author: Zbigniew Jędrzejewski-Szmek > > Date: Thu Mar 12 21:54:14 2015 -0400 > > > > journa

Re: [systemd-devel] [systemd-commits] 7 commits - man/systemd.network.xml po/es.po po/LINGUAS src/journal-remote src/libsystemd src/libsystemd-network

2015-03-13 Thread David Herrmann
Hi On Fri, Mar 13, 2015 at 5:27 AM, Zbigniew Jędrzejewski-Szmek wrote: > commit f53f7c8fc43df4e38655f2a1f5c5934fee06 > Author: Zbigniew Jędrzejewski-Szmek > Date: Thu Mar 12 21:54:14 2015 -0400 > > journal-remote: check also for EWOULDBLOCK > > This matches similar code elsewhere.

[systemd-devel] [PATCH] console-getty.service: don't start when /dev/console is missing

2015-03-13 Thread Lukas Nykryn
From: Jan Pazdziora Create minimal image which runs systemd FROM rhel7.1 RUN yum install -y /usr/bin/ps ENV container docker CMD [ "/usr/sbin/init" ] When you run the container without -t, the process /sbin/agetty --noclear --keep-baud console 115200 38400 9600 is not happy and

Re: [systemd-devel] [PATCH] networkd: Begin with serial number 1 for netlink requests

2015-03-13 Thread Richard Maw
On Thu, Mar 12, 2015 at 06:14:58PM +, Richard Maw wrote: > diff --git a/src/libsystemd/sd-rtnl/sd-rtnl.c > b/src/libsystemd/sd-rtnl/sd-rtnl.c > index ae49c77..5f54acd 100644 > --- a/src/libsystemd/sd-rtnl/sd-rtnl.c > +++ b/src/libsystemd/sd-rtnl/sd-rtnl.c > @@ -61,6 +61,11 @@ static int sd_rtn

Re: [systemd-devel] [PATCH] build: generate pkg-config files during configure

2015-03-13 Thread Dimitri John Ledkov
On 12 March 2015 at 23:13, Jeff Waugh wrote: > On Fri, Mar 13, 2015 at 10:07 AM, Michael Biebl wrote: >>> Those are the as-installed versions (they're not manipulated again during >>> make). >> >> And how does that improve cross-compilation? > > It allows you to successfully build other software

Re: [systemd-devel] [PATCH] core: don't change removed devices to state "tentative" [was: Re: [PATCH] unit: When stopping due to BindsTo=, log which unit caused it]

2015-03-13 Thread Martin Pitt
Martin Pitt [2015-03-13 8:30 +0100]: > removal from udev we definitively know that it's gond, so change the device Yeah, we need more gond devices! *blush*, same patch with that typo fixed. Martin -- Martin Pitt| http://www.piware.de Ubuntu Developer (www.ubuntu.com) |

[systemd-devel] [PATCH] core: don't change removed devices to state "tentative" [was: Re: [PATCH] unit: When stopping due to BindsTo=, log which unit caused it]

2015-03-13 Thread Martin Pitt
Hello all, Martin Pitt [2015-03-01 12:43 +0100]: > Lennart Poettering [2015-02-28 17:40 +0100]: > > This is implemented now. Please check if this fixes this issue for > > you. > > This fixes the bad unmounts at boot, but also breaks the automatic cleanup of > stale mounts after CD ejection. > [..