[systemd-devel] [PATCH] configure: Add --enable-plymouth option

2011-06-27 Thread Henry Gebhardt
As in the bug[1] it would be nice to configure plymouth support independently of the distro. This patch adds a "--enable-plymouth" and "--disable-plymouth" option to the configure script to overwrite the distro specific default. [1] https://bugs.freedesktop.org/show_bug.cgi?id=38460 --- configure

Re: [systemd-devel] encrypted /var with systemd - impossible?

2011-06-27 Thread Lennart Poettering
On Mon, 27.06.11 17:04, yoshi watanabe ([email protected]) wrote: > > my guess is that systemd populates /var before mounting it, and then > mounts it over and some files are possibly lost. or maybe because the > /var is empty before mount and that causes problems. systemd is very careful in no

Re: [systemd-devel] RFC: creating a set of systemd RPM macros across distributions ?

2011-06-27 Thread Lennart Poettering
On Mon, 27.06.11 17:37, Ludwig Nussel ([email protected]) wrote: > Frederic Crozat wrote: > > [...] > > %service_add_enabled() > > if [ "$1" -eq 1 ] ; then > > # Initial installation > > /bin/systemctl enable %{1}.service >/dev/null 2>&1 || : > > fi > > Does this have an advantage over insta

Re: [systemd-devel] [PATCH] nspawn: spawn shell under specified --user

2011-06-27 Thread Lennart Poettering
On Mon, 27.06.11 17:32, Ludwig Nussel ([email protected]) wrote: > > Lennart Poettering wrote: > > On Mon, 27.06.11 14:50, Michal Vyskocil ([email protected]) wrote: > > > > > On Mon, Jun 27, 2011 at 02:01:27PM +0200, Lennart Poettering wrote: > > > > On Fri, 24.06.11 14:39, Michal Vyskocil

Re: [systemd-devel] Can't enable or start a new service

2011-06-27 Thread Lennart Poettering
On Mon, 27.06.11 16:19, Sérgio Basto ([email protected]) wrote: heya, > On Tue, 2011-06-21 at 18:37 +0200, Lennart Poettering wrote: > > On Tue, 21.06.11 17:24, Sérgio Basto ([email protected]) wrote: > > > > > > > > On Tue, 2011-06-21 at 12:35 +0200, Lennart Poettering wrote: > > > > These un

Re: [systemd-devel] BUG: systemd tmpfiles-clean.service trips over afuse stuff in /tmp

2011-06-27 Thread Kok, Auke-jan H
On Mon, Jun 27, 2011 at 5:35 AM, Lennart Poettering wrote: > On Thu, 23.06.11 23:05, Kok, Auke-jan H ([email protected]) wrote: > >> Trivial: afuse makes a booboo when encoutering afuse helper stuff in >> /tmp, which is made by my sshfs mounts: >> >> Jun 23 23:00:24 localhost systemd-tmpfil

Re: [systemd-devel] RFC: creating a set of systemd RPM macros across distributions ?

2011-06-27 Thread Ludwig Nussel
Frederic Crozat wrote: > [...] > %service_add_enabled() > if [ "$1" -eq 1 ] ; then > # Initial installation > /bin/systemctl enable %{1}.service >/dev/null 2>&1 || : > fi Does this have an advantage over installing the symlink at build time already and including the symlink in %files instead? cu

Re: [systemd-devel] [PATCH] nspawn: spawn shell under specified --user

2011-06-27 Thread Ludwig Nussel
Lennart Poettering wrote: > On Mon, 27.06.11 14:50, Michal Vyskocil ([email protected]) wrote: > > > On Mon, Jun 27, 2011 at 02:01:27PM +0200, Lennart Poettering wrote: > > > On Fri, 24.06.11 14:39, Michal Vyskocil ([email protected]) wrote: > > > > > > > Add -u/--user option, which changes the e

Re: [systemd-devel] Can't enable or start a new service

2011-06-27 Thread Sérgio Basto
On Tue, 2011-06-21 at 18:37 +0200, Lennart Poettering wrote: > On Tue, 21.06.11 17:24, Sérgio Basto ([email protected]) wrote: > > > > > On Tue, 2011-06-21 at 12:35 +0200, Lennart Poettering wrote: > > > These units are *not* installed locally, > > but I want install it , how I do know what shou

Re: [systemd-devel] encrypted /var with systemd - impossible?

2011-06-27 Thread yoshi watanabe
my guess is that systemd populates /var before mounting it, and then mounts it over and some files are possibly lost. or maybe because the /var is empty before mount and that causes problems. i'll run a debug boot in a minute and post results. 2011/6/27 Lennart Poettering : > On Mon, 27.06.11 14:

Re: [systemd-devel] [PATCH] Use /etc/rc.d/rc.local as the path to rc.local in Fedora.

2011-06-27 Thread Bill Nottingham
Lennart Poettering ([email protected]) said: > On Tue, 21.06.11 15:35, Bill Nottingham ([email protected]) wrote: > > > /etc/rc.local is a symlink. > > Applied. > > Hmm, should we drop the x bit on this script by default, as discussed on IRC? I'd like to find a better solution than that

Re: [systemd-devel] [PATCH] man/daemon: Use pkg-config as default for --with-systemdsystemunitdir

2011-06-27 Thread Lucas De Marchi
On Mon, Jun 27, 2011 at 10:28 AM, Dave Reisner wrote: > Behavior is such that: > > * if --with-systemdsystemunitdir is specified without arguments, it >  tries to autodetect it using pkg-config > * if --without-systemdsystemunitdir is specified, it does nothing > * if --with-systemdsystemunitdir i

Re: [systemd-devel] Problem with netwrok broadband modem

2011-06-27 Thread Christian Gagneraud
On 27/06/11 12:54, Lennart Poettering wrote: On Fri, 24.06.11 15:59, Christian Gagneraud ([email protected]) wrote: Hi, I'm trying to use a USB broadband modem with ofono and connman, when i plug the modem, i get an error from systemd "Failed to load device unit: Invalid argument" (full log b

[systemd-devel] [PATCH] man/daemon: Use pkg-config as default for --with-systemdsystemunitdir

2011-06-27 Thread Dave Reisner
Behavior is such that: * if --with-systemdsystemunitdir is specified without arguments, it tries to autodetect it using pkg-config * if --without-systemdsystemunitdir is specified, it does nothing * if --with-systemdsystemunitdir is specified with an argument, it uses that directory Suggested

Re: [systemd-devel] systemd and LSB Required/Should-Stop

2011-06-27 Thread Lennart Poettering
On Fri, 24.06.11 14:04, Ville Skyttä ([email protected]) wrote: > Hello, > > Am I right that systemd does currently have no support for the LSB > Required-Stop and Should-Stop keywords? If yes, are there plans to > support them in the future? That is true, we do not support this right now. In

Re: [systemd-devel] [PATCH] nspawn: spawn shell under specified --user

2011-06-27 Thread Lennart Poettering
On Mon, 27.06.11 14:50, Michal Vyskocil ([email protected]) wrote: > On Mon, Jun 27, 2011 at 02:01:27PM +0200, Lennart Poettering wrote: > > On Fri, 24.06.11 14:39, Michal Vyskocil ([email protected]) wrote: > > > > > Add -u/--user option, which changes the effective and real user and > > > group

Re: [systemd-devel] [PATCH] configure: Add --enable-plymouth option

2011-06-27 Thread Lennart Poettering
On Thu, 23.06.11 17:49, Henry Gebhardt ([email protected]) wrote: > As in the bug[1] it would be nice to configure plymouth support > independently of the distro. This patch adds a "--enable-plymouth" and > "--disable-plymouth" option to the configure script to overwrite the > distro spec

Re: [systemd-devel] encrypted /var with systemd - impossible?

2011-06-27 Thread Lennart Poettering
On Mon, 27.06.11 14:49, yoshi watanabe ([email protected]) wrote: > Hi list (again) ;) > > In short : my setup is as follows - i have my / on ssd, so i decided > to move /var over to regular hdd. which is entirely encrypted (lvm > inside luks, /var is one of lvm volumes). > > This works just fi

Re: [systemd-devel] systemd-analyze plot

2011-06-27 Thread Lennart Poettering
On Wed, 22.06.11 14:25, [email protected] ([email protected]) wrote: > I am currently in the process of analyzing and optimizing a systemd > startup in an Embedded project and wondered if someone could tell me what > is being performed in the time bet

Re: [systemd-devel] [PATCH] nspawn: spawn shell under specified --user

2011-06-27 Thread Michal Vyskocil
On Mon, Jun 27, 2011 at 02:01:27PM +0200, Lennart Poettering wrote: > On Fri, 24.06.11 14:39, Michal Vyskocil ([email protected]) wrote: > > > Add -u/--user option, which changes the effective and real user and > > group id to the new value. The user must exists in the chroot, otherwise > > it wil

[systemd-devel] encrypted /var with systemd - impossible?

2011-06-27 Thread yoshi watanabe
Hi list (again) ;) In short : my setup is as follows - i have my / on ssd, so i decided to move /var over to regular hdd. which is entirely encrypted (lvm inside luks, /var is one of lvm volumes). This works just fine on various distributions i tried (gentoo,arch,exherbo,probably opensuse as well

Re: [systemd-devel] RFC: creating a set of systemd RPM macros across distributions ?

2011-06-27 Thread Frederic Crozat
Le lundi 27 juin 2011 à 14:38 +0200, Lennart Poettering a écrit : > On Mon, 27.06.11 14:34, Frederic Crozat ([email protected]) wrote: > > > > > %service_add_enabled() > > > > if [ "$1" -eq 1 ] ; then > > > > # Initial installation > > > > /bin/systemctl enable %{1}.service >/dev/null 2>&1 || : >

Re: [systemd-devel] RFC: creating a set of systemd RPM macros across distributions ?

2011-06-27 Thread Lennart Poettering
On Mon, 27.06.11 14:34, Frederic Crozat ([email protected]) wrote: > > > %service_add_enabled() > > > if [ "$1" -eq 1 ] ; then > > > # Initial installation > > > /bin/systemctl enable %{1}.service >/dev/null 2>&1 || : > > > fi > > > > I'd strongly advise against this. Units might install more tha

Re: [systemd-devel] BUG: systemd tmpfiles-clean.service trips over afuse stuff in /tmp

2011-06-27 Thread Lennart Poettering
On Thu, 23.06.11 23:05, Kok, Auke-jan H ([email protected]) wrote: > Trivial: afuse makes a booboo when encoutering afuse helper stuff in > /tmp, which is made by my sshfs mounts: > > Jun 23 23:00:24 localhost systemd-tmpfiles[32497]: > stat(/tmp/afuse-CBUznW/server) failed: Permission den

Re: [systemd-devel] RFC: creating a set of systemd RPM macros across distributions ?

2011-06-27 Thread Frederic Crozat
Le lundi 27 juin 2011 à 14:24 +0200, Lennart Poettering a écrit : > On Fri, 24.06.11 15:08, Frederic Crozat ([email protected]) wrote: > > Heya, > > Sounds good! A few comments: > > > %service_add() > > if [ "$1" -eq 1 ] ; then > > # Initial installation > > /bin/systemctl daemon-reload >/dev/

Re: [systemd-devel] [PATCH] swap: ignore missing /proc/swaps

2011-06-27 Thread Lennart Poettering
On Fri, 24.06.11 13:43, Michael Olbrich ([email protected]) wrote: Uh oh, I hadn't seen this patch when I replied to your earlier mail. Sorry. > Otherwise systemd reports "Failed to fully start up daemon: No such file or > directory" when swap is disabled in the kernel. Thanks. Applied.

Re: [systemd-devel] systemd and swap

2011-06-27 Thread Lennart Poettering
On Thu, 23.06.11 14:02, Michael Olbrich ([email protected]) wrote: > Hi, heya, > I'm getting "Failed to fully start up daemon: No such file or directory" > when systemd starts. > It took some time to track it down. Basically swap_enumerate() fails > because /proc/swaps does not exist. > I

Re: [systemd-devel] [PATCH] Use /etc/rc.d/rc.local as the path to rc.local in Fedora.

2011-06-27 Thread Lennart Poettering
On Tue, 21.06.11 15:35, Bill Nottingham ([email protected]) wrote: > /etc/rc.local is a symlink. Applied. Hmm, should we drop the x bit on this script by default, as discussed on IRC? Lennart -- Lennart Poettering - Red Hat, Inc. ___ systemd-devel

Re: [systemd-devel] RFC: creating a set of systemd RPM macros across distributions ?

2011-06-27 Thread Lennart Poettering
On Fri, 24.06.11 15:08, Frederic Crozat ([email protected]) wrote: Heya, Sounds good! A few comments: > %service_add() > if [ "$1" -eq 1 ] ; then > # Initial installation > /bin/systemctl daemon-reload >/dev/null 2>&1 || : > fi > > %service_add_enabled() > if [ "$1" -eq 1 ] ; then > # Initia

Re: [systemd-devel] PATCH: add support for --root for systemctl enable/disable/is-enabled

2011-06-27 Thread Lennart Poettering
On Fri, 24.06.11 15:02, Frederic Crozat ([email protected]) wrote: > Add --root= for enable/disable/is-enabled systemctl commands. To > be used for easily enable / disable systemd services for a chroot, > without running systemctl inside chroot. Thanks! Applied. Lennart -- Lennart Poettering -

Re: [systemd-devel] [PATCH] nspawn: spawn shell under specified --user

2011-06-27 Thread Lennart Poettering
On Fri, 24.06.11 14:39, Michal Vyskocil ([email protected]) wrote: > Add -u/--user option, which changes the effective and real user and > group id to the new value. The user must exists in the chroot, otherwise > it will fail. Both username and user id are accepted. Sounds sensible, though I do

Re: [systemd-devel] Problem with netwrok broadband modem

2011-06-27 Thread Lennart Poettering
On Fri, 24.06.11 15:59, Christian Gagneraud ([email protected]) wrote: > Hi, > > I'm trying to use a USB broadband modem with ofono and connman, when > i plug the modem, i get an error from systemd "Failed to load device > unit: Invalid argument" (full log below). Hmm, this smells like a bug in

Re: [systemd-devel] Error: inappropriate ioctl stty standard input

2011-06-27 Thread Lennart Poettering
On Sat, 25.06.11 21:57, Stef Bon ([email protected]) wrote: > Hi, > > I've been able to make my shiny new LFS system boot using systemd, but > still with errors. When the tty's are activated, > Iget the message: > > stty: standard input: Inappropriate ioctl for device This usually indicates th

Re: [systemd-devel] systemd-analyze plot

2011-06-27 Thread Christian.Muck
Hi David, you could set the log level of systemd to debug. To do this edit /etc/system/system.conf and change LogLevel=debug LogTarget=syslog-or-kmsg Do a restart and have a look to the generated output with dmesg. Before -.mount is reported it seems to me that systemd does some basic preparati

Re: [systemd-devel] [PATCH] nspawn: spawn shell under specified --user

2011-06-27 Thread Michal Vyskocil
On Sun, Jun 26, 2011 at 09:59:14PM +0200, Zbigniew Jędrzejewski-Szmek wrote: > On 06/24/2011 02:39 PM, Michal Vyskocil wrote: > > +int isdigits(const char* str) { > > +size_t i; > > + > > +if (!str) > > +return 0; > > + > > +for (i = 0; i != strlen(str); i++)