Re: [systemd-devel] Luks + lvm in initrd, complete scenario

2014-10-31 Thread Luca Bruno
Sorry for the spam. Further tracking down the issue. I think I've come to a conclusion of the scenario: S1.service requires/after D.device and S2.service S1 is activating, thus starts D and S2 S2 starts, which activates D and deactivates D A "can" now start because D has no job running [1], but D

Re: [systemd-devel] Luks + lvm in initrd, tracking the issue

2014-10-31 Thread Luca Bruno
I've tracked down the issue a little. sysroot.mount requires/after dev-vg-lv.device. System start, dev-vg-lv is inactive. vgchange -a y -> dev-vg-lv active. vgchange -a n -> dev-vg-lv inactive. At this point, unit->job of dev-vg-lv is NULL (sometimes also happens when I don't run vgchange, but I

[systemd-devel] Minimal Userland

2014-10-31 Thread Fisher, Charles J. (Top Echelon)
Posting just in case someone finds it of interest. I did this on Oracle Linux 7. mkdir /home/nifty mkdir /home/nifty/bin cp /your/busybox /home/nifty/bin cd /home/nifty/bin ln -s busybox sh chroot /home/nifty bin/busybox ls -l #so far, so good, any system can do this exit ./busybox --list |

[systemd-devel] shutdown

2014-10-31 Thread Tom Deblauwe
Hello, I'm using systemd, but can't seem to correctly shutdown. I have already: - checked: reboot -f works - enabled the debug-shell on vt9 So I was hoping to issue the "systemctl list-jobs" command from the debug shell, however, it didn't allow me to type in commands. The debug shell allows

[systemd-devel] [PATCH] sd-dhcp6-client: fix off-by-two error in DUID length

2014-10-31 Thread Dan Williams
The duid data passed by the caller does not include the DUID type, but sd_dhcp6_client_set_duid() was treating it like it did. --- src/libsystemd-network/sd-dhcp6-client.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src

Re: [systemd-devel] starting Oracle with systemd

2014-10-31 Thread Reindl Harald
Am 31.10.2014 um 18:10 schrieb Reindl Harald: Am 31.10.2014 um 18:06 schrieb Fisher, Charles J. (Top Echelon): From: systemd-devel [mailto:systemd-devel-boun...@lists.freedesktop.org] On Behalf Of Reindl Harald For some reason, the iptables didn't happen. Maybe it needs to be fully qualified.

Re: [systemd-devel] starting Oracle with systemd

2014-10-31 Thread Reindl Harald
Am 31.10.2014 um 18:06 schrieb Fisher, Charles J. (Top Echelon): From: systemd-devel [mailto:systemd-devel-boun...@lists.freedesktop.org] On Behalf Of Reindl Harald For some reason, the iptables didn't happen. Maybe it needs to be fully qualified. yes it needs to be as any other path the

Re: [systemd-devel] starting Oracle with systemd

2014-10-31 Thread Fisher, Charles J. (Top Echelon)
-Original Message- From: systemd-devel [mailto:systemd-devel-boun...@lists.freedesktop.org] On Behalf Of Reindl Harald > > For some reason, the iptables didn't happen. Maybe it needs to be fully > > qualified. > yes it needs to be as any other path > the documentation is very clear here

Re: [systemd-devel] starting Oracle with systemd

2014-10-31 Thread Reindl Harald
Am 31.10.2014 um 17:47 schrieb Fisher, Charles J. (Top Echelon): From: Andrei Borzenkov [mailto:arvidj...@gmail.com] I know. So define service that starts listener, use "lsnrctl start" as ExecStart, "lsnrctl stop" as ExecStop and set KillMode=process (or "none"). What exactly does not work in

Re: [systemd-devel] starting Oracle with systemd

2014-10-31 Thread Fisher, Charles J. (Top Echelon)
-Original Message- From: Andrei Borzenkov [mailto:arvidj...@gmail.com] > I know. So define service that starts listener, use "lsnrctl start" as > ExecStart, "lsnrctl stop" as ExecStop and set KillMode=process (or > "none"). What exactly does not work in this case? Reading this, "none" i

Re: [systemd-devel] starting Oracle with systemd

2014-10-31 Thread Andrei Borzenkov
В Fri, 31 Oct 2014 11:20:02 -0400 "Fisher, Charles J. (Top Echelon)" пишет: > -Original Message- > > > >> How about: > > >> http://www.freedesktop.org/software/systemd/man/systemd.kill.html > > >> Would setting KillMode=process for the listener service have the required > >> effect:

[systemd-devel] user environment variables

2014-10-31 Thread arnaud gaboury
For systemd be aware of certain environment variables, I usually use a drop-in config in /etc/systemd/system/user@service.d. This way, I can see the varibale when running $ systemctl --user show-environment Now I am wondering why not using the /etc/systemd/user.conf for these variables. I tried th

Re: [systemd-devel] statelessy system

2014-10-31 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Oct 31, 2014 at 02:06:37PM +0100, Łukasz Stelmach wrote: > My question: is v217 ready to run without /etc/systemd/*.conf and read > them from /usr/lib/systemd wher I (vendor) can put properly tailored files? Hi Łukasz, if you look into those files, you'll see that they contain only comment

Re: [systemd-devel] starting Oracle with systemd

2014-10-31 Thread Fisher, Charles J. (Top Echelon)
-Original Message- >> How about: >> http://www.freedesktop.org/software/systemd/man/systemd.kill.html >> Would setting KillMode=process for the listener service have the required >> effect: on service stop, only kill the main process, leaving the child >> processes and cgroup running?

[systemd-devel] statelessy system

2014-10-31 Thread Łukasz Stelmach
Hello. I am working to upgrade systemd in Tizen to v217 from v212. To verify rpm packages we use rpmlint with some rules from opensuse[1]. For whatever reason v217 package exceed allowed badness because it puts config files (system.conf, journald.conf etc) in /etc/systemd. The check [2] forbids pu

[systemd-devel] [PATCH v4] Bootchart: use /proc/pid/mountinfo for root bdev

2014-10-31 Thread Timofey Titovets
Good time of day, list. I have try to fix "Fixme" in svg.c: /* FIXME: this works only in the simple case */ // By default function try to get only root=/dev/* I rewrite to parse /proc/self/mountinfo This only support root device like /dev/???* I can't support LVM/Luks & etc, i'm not using these s

Re: [systemd-devel] [PATCH v3] Bootchart: use /proc/pid/mountinfo for root bdev

2014-10-31 Thread Timofey Titovets
2014-10-31 11:57 GMT+03:00 Karel Zak : > > somewhere in systemd code is mountinfo parser.. or see > https://github.com/karelzak/util-linux/blob/master/libmount/src/tab_parse.c#L124 > > it seems you also want to read: > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentati

Re: [systemd-devel] [PATCH] shared/install: avoid prematurely rejecting "missing" units

2014-10-31 Thread Dave Reisner
On Fri, Oct 31, 2014 at 04:04:53AM +0100, Zbigniew Jędrzejewski-Szmek wrote: > On Thu, Oct 30, 2014 at 08:28:14PM -0400, Dave Reisner wrote: > > f7101b7368df copied some logic to prevent enabling masked units, but > > also added a check which causes attempts to enable templated units to > > fail. S

Re: [systemd-devel] [PATCH] shared: fix typo

2014-10-31 Thread Tom Gundersen
Applied. Thanks! Tom On Thu, Oct 30, 2014 at 10:34 PM, Ronny Chevalier wrote: > --- > src/shared/capability.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/shared/capability.c b/src/shared/capability.c > index d2b9013..0226542 100644 > --- a/src/shared/capabil

Re: [systemd-devel] [PATCH 1/4] shared: add missing includes

2014-10-31 Thread Tom Gundersen
Applied all four. Thanks! Tom On Thu, Oct 30, 2014 at 10:32 PM, Ronny Chevalier wrote: > --- > src/shared/copy.h| 3 +++ > src/shared/locale-util.h | 4 > 2 files changed, 7 insertions(+) > > diff --git a/src/shared/copy.h b/src/shared/copy.h > index 0bf2598..6b93107 100644 > --- a

Re: [systemd-devel] [PATCH] tests: add tests for strv.c

2014-10-31 Thread Tom Gundersen
Applied. Thanks! Tom On Thu, Oct 30, 2014 at 10:34 PM, Ronny Chevalier wrote: > add tests for: > - strv_find_startswith > - strv_push_prepend > - strv_consume_prepend > --- > src/test/test-strv.c | 39 +++ > 1 file changed, 39 insertions(+) > > diff --git a/s

Re: [systemd-devel] [PATCH] remove references of readahead

2014-10-31 Thread Tom Gundersen
Applied. Thanks! Tom On Wed, Oct 29, 2014 at 2:38 PM, Ronny Chevalier wrote: > --- > .gitignore | 1 - > README | 1 - > TODO | 7 --- > 3 files changed, 9 deletions(-) > > diff --git a/.gitignore b/.gitignore > index 0b71f09..14f1691 100644 > --- a/.gitignore > +++ b/.gitignore >

Re: [systemd-devel] [PATCH] tests: add tests for fileio.c

2014-10-31 Thread Tom Gundersen
Applied. Thanks! Tom On Thu, Oct 30, 2014 at 10:34 PM, Ronny Chevalier wrote: > add tests for the following functions: > - write_string_file_no_create > - load_env_file_pairs > --- > src/test/test-fileio.c | 63 > ++ > 1 file changed, 63 insertio

[systemd-devel] [PATCH v3] core: improve error message when machine id is missing

2014-10-31 Thread Jan Synacek
--- Changes in v3: - check correct errno Changes in v2: - show long explanation only when errno == EROFS src/core/machine-id-setup.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/core/machine-id-setup.c b/src/core/machine-id-setup.c index efb074f..e54b879

Re: [systemd-devel] [PATCH v3] Bootchart: use /proc/pid/mountinfo for root bdev

2014-10-31 Thread Karel Zak
On Fri, Oct 31, 2014 at 07:51:59AM +0300, Timofey Titovets wrote: > 2014-10-31 3:06 GMT+03:00 Zbigniew Jędrzejewski-Szmek : > > On Thu, Oct 30, 2014 at 05:45:53PM +0300, Timofey Titovets wrote: > >> Good time of day, list. > >> I have try to fix "Fixme" in svg.c: > >> /* FIXME: this works only in t

Re: [systemd-devel] remote-fs ordering, iSCSI and _netdev

2014-10-31 Thread Karel Zak
On Thu, Oct 30, 2014 at 03:04:59PM -0700, Chris Leech wrote: > On Thu, Oct 30, 2014 at 12:10:16PM +0100, Karel Zak wrote: > > On Tue, Oct 28, 2014 at 02:29:35AM +0100, Lennart Poettering wrote: > > > On Mon, 27.10.14 14:10, Chris Leech (cle...@redhat.com) wrote: > > > > > > > So for any mounts to

Re: [systemd-devel] Switch root slowness

2014-10-31 Thread Jan Synacek
Lennart Poettering writes: > On Thu, 30.10.14 14:35, Lennart Poettering (lenn...@poettering.net) wrote: >> I wish there was a way how we could use getrandom() in a way like >> /dev/urandom, where we can pull out the non-initialized data >> anyway. In absence of that we can just fallback to /dev/ur