Re: [systemd-devel] is systemd killing dhclient?,

2015-03-11 Thread Ido Barkan
Thanks a lot! I have chased that for a long time. As I understand this is a feature and not a bug, IMO this behavior is very surprising. If a process was killed during ExecStartPre I would expect the starting of the service unit to fail (not happen). This is because something obviously went wron

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

2015-03-11 Thread Chris Murphy
On Wed, Mar 11, 2015 at 9:39 PM, Andrei Borzenkov wrote: > Windows bootloader configuration is stored on ESP; of course it is not > changed often. Also Windows still needs to update bootloader every > now and then. I'm not seeing a BCD on the ESP, that's usually on NTFS historically anyway. I see

Re: [systemd-devel] Unable to remove images using machinectl

2015-03-11 Thread Peter Paule
Excerpts from Lennart Poettering's message of 2015-03-03 11:40:54 +0100: > On Tue, 03.03.15 07:11, Peter Paule (systemd-de...@fedux.org) wrote: > > > Excerpts from Erik Johnson's message of 2015-03-02 14:10:06 -0700: > > > Thanks. I applied the patch, restarted dbus, and now I get the > > > follow

Re: [systemd-devel] Linking containers

2015-03-11 Thread Peter Paule
Excerpts from Peter Paule's message of 2015-03-02 18:49:42 +0100: > > I am not sure I want to talk a TCP/TLS based protocol just to add a > > interface to a local switch. > > > > To integrate this stuff closely they should either provide a C > > library, or a bus API or something similar, but hav

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

2015-03-11 Thread Lucas De Marchi
On Tue, Mar 10, 2015 at 3:04 PM, Jeff Waugh wrote: > Generate pkg-config files during configure as God (Havoc) intended. This fixes > all of systemd's pkg-config files when cross-compiling (and possibly other use > cases). > > (Note: I might've missed some things to tidy up in Makefile.am, but not

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

2015-03-11 Thread Andrei Borzenkov
В Wed, 11 Mar 2015 18:50:23 +0100 Kay Sievers пишет: > On Wed, Mar 11, 2015 at 6:32 PM, Chris Murphy wrote: > > On Wed, Mar 11, 2015 at 2:22 AM, Tobias Hunger > > wrote: > >>> If you're concerned about bootloader configuration modification as a > >>> threat vector, then it needs to go on an en

Re: [systemd-devel] minimal required units

2015-03-11 Thread Andrei Borzenkov
В Wed, 11 Mar 2015 12:02:29 -0700 aaron_wri...@selinc.com пишет: > I'm trying to make an embedded device, and I would like to start with the > minimal setup as possible. Are there some units that are required by > systemd? > I ask because systemd is complaining about a missing rescue.target unit

Re: [systemd-devel] initrd mount wrongly unmounted during bootup

2015-03-11 Thread Andrei Borzenkov
В Wed, 11 Mar 2015 11:26:52 -0700 aaron_wri...@selinc.com пишет: > I'm working with an embedded device that mounts / and /var in initrd. It > then switches root and fires up systemd. Early in the boot, after paths > target, /var gets unmounted. I want systemd to not do that, but I can't > figur

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

2015-03-11 Thread Andrei Borzenkov
В Wed, 11 Mar 2015 14:41:43 -0600 Chris Murphy пишет: > On Wed, Mar 11, 2015 at 1:56 PM, Kay Sievers wrote: > > > Systemd by default mounts it with autofs, it will not be mounted until > > it is accessed, which does not happen during normal operation. We > > currently miss autofs timeout handli

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

2015-03-11 Thread Jeff Waugh
On Wed, Mar 11, 2015 at 5:04 AM, Jeff Waugh wrote: > Generate pkg-config files during configure as God (Havoc) intended. This fixes > all of systemd's pkg-config files when cross-compiling (and possibly other use > cases). Thoughts, feelings? ___ system

Re: [systemd-devel] [PATCH] shutdown: add kexec loading, avoid calling `kexec` binary unnessecarily

2015-03-11 Thread Kay Sievers
On Thu, Mar 12, 2015 at 2:36 AM, Shawn Landden wrote: > On Wed, Mar 11, 2015 at 6:24 PM, Kay Sievers wrote: >> >> On Thu, Mar 12, 2015 at 2:07 AM, Shawn Landden >> wrote: >> > On Wed, Mar 11, 2015 at 5:51 PM, Kay Sievers wrote: >> >> >> >> On Thu, Mar 12, 2015 at 1:22 AM, Shawn Landden >> >> w

Re: [systemd-devel] [PATCH] shutdown: add kexec loading, avoid calling `kexec` binary unnessecarily

2015-03-11 Thread Shawn Landden
On Wed, Mar 11, 2015 at 6:24 PM, Kay Sievers wrote: > On Thu, Mar 12, 2015 at 2:07 AM, Shawn Landden > wrote: > > On Wed, Mar 11, 2015 at 5:51 PM, Kay Sievers wrote: > >> > >> On Thu, Mar 12, 2015 at 1:22 AM, Shawn Landden > >> wrote: > >> > Still use helper when Xen Dom0, to avoid duplicating

Re: [systemd-devel] [PATCH] shutdown: add kexec loading, avoid calling `kexec` binary unnessecarily

2015-03-11 Thread Kay Sievers
On Thu, Mar 12, 2015 at 2:07 AM, Shawn Landden wrote: > On Wed, Mar 11, 2015 at 5:51 PM, Kay Sievers wrote: >> >> On Thu, Mar 12, 2015 at 1:22 AM, Shawn Landden >> wrote: >> > Still use helper when Xen Dom0, to avoid duplicating some hairy code. >> > >> > I think the rbtree version was far more

Re: [systemd-devel] [PATCH] shutdown: add kexec loading, avoid calling `kexec` binary unnessecarily

2015-03-11 Thread Kay Sievers
On Thu, Mar 12, 2015 at 2:12 AM, Shawn Landden wrote: > On Wed, Mar 11, 2015 at 5:51 PM, Kay Sievers wrote: >> >> On Thu, Mar 12, 2015 at 1:22 AM, Shawn Landden >> wrote: >> > Still use helper when Xen Dom0, to avoid duplicating some hairy code. >> > >> > I think the rbtree version was far more

Re: [systemd-devel] [PATCH] shutdown: add kexec loading, avoid calling `kexec` binary unnessecarily

2015-03-11 Thread Shawn Landden
On Wed, Mar 11, 2015 at 5:51 PM, Kay Sievers wrote: > On Thu, Mar 12, 2015 at 1:22 AM, Shawn Landden > wrote: > > Still use helper when Xen Dom0, to avoid duplicating some hairy code. > > > > I think the rbtree version was far more understandable as > greedy_realloc0() > > is very messy to do co

Re: [systemd-devel] [PATCH] shutdown: add kexec loading, avoid calling `kexec` binary unnessecarily

2015-03-11 Thread Shawn Landden
On Wed, Mar 11, 2015 at 5:51 PM, Kay Sievers wrote: > On Thu, Mar 12, 2015 at 1:22 AM, Shawn Landden > wrote: > > Still use helper when Xen Dom0, to avoid duplicating some hairy code. > > > > I think the rbtree version was far more understandable as > greedy_realloc0() > > is very messy to do co

Re: [systemd-devel] [PATCH] shutdown: add kexec loading, avoid calling `kexec` binary unnessecarily

2015-03-11 Thread Kay Sievers
On Thu, Mar 12, 2015 at 1:22 AM, Shawn Landden wrote: > Still use helper when Xen Dom0, to avoid duplicating some hairy code. > > I think the rbtree version was far more understandable as greedy_realloc0() > is very messy to do correctly. > > Take fopenat() from lsof. > Add opendirat() We have th

[systemd-devel] [PATCH] shutdown: add kexec loading, avoid calling `kexec` binary unnessecarily

2015-03-11 Thread Shawn Landden
Still use helper when Xen Dom0, to avoid duplicating some hairy code. I think the rbtree version was far more understandable as greedy_realloc0() is very messy to do correctly. Take fopenat() from lsof. Add opendirat() Future: generate BootLoaderSpec files for other kernel install locations v5:

[systemd-devel] [PATCH] shutdown: add kexec loading, avoid calling `kexec` binary unnessecarily

2015-03-11 Thread Shawn Landden
Still use helper when Xen Dom0, to avoid duplicating some hairy code. I think the rbtree version was far more understandable as greedy_realloc0() is very messy to do correctly. Take fopenat() from lsof. Where is $BOOT? Shouldn't /boot/efi be a symlink to . (/boot) ? Debian defaults to $BOOT=/boo

[systemd-devel] [PATCH] shutdown: add kexec loading, avoid calling `kexec` binary unnessecarily

2015-03-11 Thread Shawn Landden
Still use helper when Xen Dom0, to avoid duplicating some hairy code. I think the rbtree version was far more understandable as greedy_realloc0() is very messy to do correctly. Take fopenat() from lsof. Future: generate BootLoaderSpec files for other kernel install locations v5: fix syscall inv

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

2015-03-11 Thread Chris Murphy
On Wed, Mar 11, 2015 at 2:41 PM, Chris Murphy wrote: > A more general purpose solution for UEFI would be EFI drivers for > various filesystems including md, LVM, and Btrfs, so that there's > quasi-native firmware support for them. Interesting. ext4, ReiserFS, Btrfs, NTFS, and HFS+ UEFI drivers. h

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

2015-03-11 Thread Chris Murphy
On Wed, Mar 11, 2015 at 1:56 PM, Kay Sievers wrote: > Systemd by default mounts it with autofs, it will not be mounted until > it is accessed, which does not happen during normal operation. We > currently miss autofs timeout handling, which would umount /boot again > when it is no longer used. Th

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

2015-03-11 Thread Kay Sievers
On Wed, Mar 11, 2015 at 7:45 PM, Chris Murphy wrote: > On Wed, Mar 11, 2015 at 11:50 AM, Kay Sievers wrote: >> The "all included" kernels are found at /boot/EFI/Linux/*.efi > > Yeah until the distros stop persistently mounting the ESP, I'm not a > fan at all of anything but the most minimalist a

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

2015-03-11 Thread Kay Sievers
On Wed, Mar 11, 2015 at 7:45 PM, Chris Murphy wrote: > On Wed, Mar 11, 2015 at 11:50 AM, Kay Sievers wrote: > >>There is no >> point in handling raid without native firmware support; manual >> intervention is needed anyway on these systems if things go wrong, and >> that step can just re-create t

[systemd-devel] initrd mount wrongly unmounted during bootup

2015-03-11 Thread Aaron_Wright
I'm working with an embedded device that mounts / and /var in initrd. It then switches root and fires up systemd. Early in the boot, after paths target, /var gets unmounted. I want systemd to not do that, but I can't figure out how to stop it. I would like systemd to leave /var mounted, but stil

[systemd-devel] minimal required units

2015-03-11 Thread Aaron_Wright
I'm trying to make an embedded device, and I would like to start with the minimal setup as possible. Are there some units that are required by systemd? I ask because systemd is complaining about a missing rescue.target unit, but I don't list rescue.target as a dependency of any other unit. Howev

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

2015-03-11 Thread Chris Murphy
On Wed, Mar 11, 2015 at 11:50 AM, Kay Sievers wrote: > On Wed, Mar 11, 2015 at 6:32 PM, Chris Murphy wrote: \ >> The bootloader configuration files aren't signed. Maybe the should be. > > With systemd-boot, there will be no config to sign: > > https://harald.hoyer.xyz/2015/02/25/single-uefi-ex

Re: [systemd-devel] Appc support in systemd-importd

2015-03-11 Thread Vincent Batts
On 11/03/15 16:33 +0100, Lennart Poettering wrote: On Wed, 11.03.15 15:24, Iago López Galeiras (i...@endocode.com) wrote: (added Vincent Batts to CC) Hi, We're looking into adding appc[1] support in systemd-importd. An appc image (ACI) is just a tar with a "rootfs" directory and a json "manife

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

2015-03-11 Thread Kay Sievers
On Wed, Mar 11, 2015 at 6:32 PM, Chris Murphy wrote: > On Wed, Mar 11, 2015 at 2:22 AM, Tobias Hunger > wrote: >>> If you're concerned about bootloader configuration modification as a >>> threat vector, then it needs to go on an encrypted volume. This >>> suggests an initial bootloader configura

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

2015-03-11 Thread Lucas De Marchi
On Wed, Mar 11, 2015 at 1:17 PM, David Herrmann wrote: diff --git a/src/vconsole/vconsole-setup.c b/src/vconsole/vconsole-setup.c index bf681d9..601ca4a 100644 --- a/src/vconsole/vconsole-setup.c +++ b/src/vconsole/vconsole-setup.c @@ -304,8 +304,12 @@ int main(int argc, c

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

2015-03-11 Thread Lucas De Marchi
On Wed, Mar 11, 2015 at 12:55 PM, David Herrmann wrote: > Hi > > On Tue, Mar 10, 2015 at 8:56 PM, wrote: >> 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

Re: [systemd-devel] udisks in systemd user-sessions (or kdbus in future)

2015-03-11 Thread David Herrmann
Hi On Mon, Mar 9, 2015 at 1:32 PM, Simon McVittie wrote: > (udisks developers, please see > > if you need more background on login sessions vs. user-sessions.) > > I'm developing a patch for udisks to fix its interacti

Re: [systemd-devel] Appc support in systemd-importd

2015-03-11 Thread Lennart Poettering
On Wed, 11.03.15 16:33, Lennart Poettering (lenn...@poettering.net) wrote: > > * Alban liked the idea of saving the manifest so we can extract the > > whole ACI and modify nspawn to detect a container is an ACI and > > set /var/lib/machines/appc-image.aci/rootfs as the container's > > root.

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

2015-03-11 Thread David Herrmann
Hi On Tue, Mar 10, 2015 at 8:56 PM, wrote: > 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:

Re: [systemd-devel] Appc support in systemd-importd

2015-03-11 Thread Lennart Poettering
On Wed, 11.03.15 15:24, Iago López Galeiras (i...@endocode.com) wrote: (added Vincent Batts to CC) > Hi, > > We're looking into adding appc[1] support in systemd-importd. An > appc image (ACI) is just a tar with a "rootfs" directory and a json > "manifest". We would have to implement image disco

[systemd-devel] [PATCH 1/6] fix strict aliasing issues in src/udev/udev-ctrl.c

2015-03-11 Thread Shawn Landden
it is ironic that "The only purpose of this structure is to cast the structure pointer passed in addr in order to avoid compiler warnings. See EXAMPLE below." from bind(2) --- src/udev/udev-ctrl.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/udev/ud

[systemd-devel] [PATCH 5/6] network: fix strict aliasing issue

2015-03-11 Thread Shawn Landden
We shouldn't assume 64-bit arch with the way we do math either. (although I will submit a patch to glibc to add a uint64_t union alias) --- src/network/networkd-address.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/network/networkd-address.c b/src/network/networ

[systemd-devel] Appc support in systemd-importd

2015-03-11 Thread Iago López Galeiras
Hi, We're looking into adding appc[1] support in systemd-importd. An appc image (ACI) is just a tar with a "rootfs" directory and a json "manifest". We would have to implement image discovery and simply extract the rootfs. Some questions: * I see that the dkr implementation ignores the informat

Re: [systemd-devel] SAT for dependencies

2015-03-11 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Mar 11, 2015 at 01:25:36PM +0100, Max wrote: > Hello. > > Part of the core systemd functionality is dependency resolution between jobs > which > should be executed. This sounds rather similar to dependencies between > packages which > has been solved using SAT solver tools. I wonder if i

Re: [systemd-devel] libsystemd-daemon wrapper

2015-03-11 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Mar 11, 2015 at 01:18:37PM +0100, Max wrote: > 23.02.2015 13:29, Lennart Poettering пишет: > > On Mon, 23.02.15 11:30, Max (maxim.sur...@campus.tu-berlin.de) wrote: > > > >> Hi. > >> > >> I've got question partially inspired by recent posts to this ML from some > >> troll > >> without shif

Re: [systemd-devel] [systemd-commits] 9 commits - configure.ac .gitignore Makefile.am Makefile-man.am man/systemd-fsckd.service.xml man/systemd-f...@.service.xml po/de.po po/el.po po/fr.po po/hu.po po

2015-03-11 Thread Didier Roche
Le 10/03/2015 11:55, Lennart Poettering a écrit : On Tue, 10.03.15 08:33, Martin Pitt (martin.p...@ubuntu.com) wrote: Lennart Poettering [2015-03-09 19:11 +0100]: Anyway, please look into fixing this, I am kinda relying on patches for this, as I don't use this myself. Fedora isn't set up for i

Re: [systemd-devel] [PATCH 1/5] fsckd: Don't use strjoina on gettext() call

2015-03-11 Thread Didier Roche
Le 11/03/2015 09:34, Didier Roche a écrit : Le 11/03/2015 09:29, Martin Pitt a écrit : Hello all, Didier Roche [2015-03-10 17:56 +0100]: --- a/src/fsckd/fsckd.c +++ b/src/fsckd/fsckd.c @@ -272,7 +272,7 @@ static int plymouth_send_message(int plymouth_fd, const char *message, bool upda }

[systemd-devel] SAT for dependencies

2015-03-11 Thread Max
Hello. Part of the core systemd functionality is dependency resolution between jobs which should be executed. This sounds rather similar to dependencies between packages which has been solved using SAT solver tools. I wonder if it might make sense to use something like https://github.com/msoos/c

Re: [systemd-devel] libsystemd-daemon wrapper

2015-03-11 Thread Max
23.02.2015 13:29, Lennart Poettering пишет: > On Mon, 23.02.15 11:30, Max (maxim.sur...@campus.tu-berlin.de) wrote: > >> Hi. >> >> I've got question partially inspired by recent posts to this ML from some >> troll >> without shift on his keyboard :) >> >> It's been mentioned that calls like sd_lis

Re: [systemd-devel] [PATCH] path_is_mount_point: handle false positive on some fs

2015-03-11 Thread Karel Zak
On Tue, Mar 10, 2015 at 04:53:38PM +0100, Lennart Poettering wrote: > Note that the st_dev thing is the traditional way to detect whether > one crosses a file system boundary. It's used for this by tools like > cp, find, We slightly enhance this by using name_to_handle_at(), > so that we can a

[systemd-devel] [PATCH] cgtop: fix assert when not on tty

2015-03-11 Thread Umut Tezduyar Lindskog
systemd-cgtop --dept=1 -b -n 10 -d 0.1 | cat Assertion 'new_length >= 3' failed at src/shared/util.c:3 \ 595, function ellipsize_mem(). Aborting. Aborted (core dumped) --- src/cgtop/cgtop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c i

Re: [systemd-devel] [PATCH 1/5] fsckd: Don't use strjoina on gettext() call

2015-03-11 Thread Didier Roche
Le 11/03/2015 09:29, Martin Pitt a écrit : Hello all, Didier Roche [2015-03-10 17:56 +0100]: --- a/src/fsckd/fsckd.c +++ b/src/fsckd/fsckd.c @@ -272,7 +272,7 @@ static int plymouth_send_message(int plymouth_fd, const char *message, bool upda } static int manager_send_plymouth_message(Ma

Re: [systemd-devel] [PATCH 1/5] fsckd: Don't use strjoina on gettext() call

2015-03-11 Thread Martin Pitt
Hello all, Didier Roche [2015-03-10 17:56 +0100]: > --- a/src/fsckd/fsckd.c > +++ b/src/fsckd/fsckd.c > @@ -272,7 +272,7 @@ static int plymouth_send_message(int plymouth_fd, const > char *message, bool upda > } > > static int manager_send_plymouth_message(Manager *m, const char *message) { >

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

2015-03-11 Thread Tobias Hunger
> If you're concerned about bootloader configuration modification as a > threat vector, then it needs to go on an encrypted volume. This > suggests an initial bootloader configuration that only enables the > user to supply a passphrase/key file to unlock that volume, and then > load a new bootloade

Re: [systemd-devel] [PATCH] path_is_mount_point: handle false positive on some fs

2015-03-11 Thread Didier Roche
Le 10/03/2015 18:54, Lennart Poettering a écrit : On Tue, 10.03.15 18:01, Didier Roche (didro...@ubuntu.com) wrote: The context is bug https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1411140, where systemd-machine-id-commit unit is entering in failed state (the binary handles gracefully