Re: [systemd-devel] systemd not initializing

2014-06-12 Thread Jay D Bhatt
I logged in shell script using init=/bin/sh and executed journalctl --boot, It says "No journal files were found. Failed to set boot id: No such file or directory" . I don't get login prompt when I use init=/sbin/init, so tried with init=/bin/sh. Is it correct? Thanks, Jay ~~~

Re: [systemd-devel] systemd not initializing

2014-06-12 Thread Mantas Mikulėnas
On Fri, Jun 13, 2014 at 9:13 AM, Jay D Bhatt wrote: > Hi Mantas, > > Thanks for your suggestions. I was able to run init=/sbin/init and run > systemd but it completed only partially. > > I changed kernel options pointed by you and I was able to start /sbin/init. > > I have attached the log. In th

Re: [systemd-devel] systemd not initializing

2014-06-12 Thread Jay D Bhatt
Hi Mantas, Thanks for your suggestions. I was able to run init=/sbin/init and run systemd but it completed only partially. I changed kernel options pointed by you and I was able to start /sbin/init. I have attached the log. In the log, I still see some [FAILED] parts. Can you suggest how to so

Re: [systemd-devel] [PATCH v2] Support for building journal-remote without microhttpd

2014-06-12 Thread Charles Duffy
On Thu, Jun 12, 2014 at 10:40 PM, Charles Duffy wrote: > Howdy -- > > It seems a bit unfortunate to have the only way to deserialize content in > journald's official serialization/export format depend on a HTTP server > library. A patch which allows journal-remote to build without microhttpd is >

[systemd-devel] [PATCH] Support for building journal-remote without microhttpd

2014-06-12 Thread Charles Duffy
Howdy -- It seems a bit unfortunate to have the only way to deserialize content in journald's official serialization/export format depend on a HTTP server library. A patch which allows journal-remote to build without microhttpd is available at https://github.com/threatgrid/systemd/compare/journal_

[systemd-devel] systemd m4 library complex systemd example, and coccinelle conversion

2014-06-12 Thread Luis R. Rodriguez
Hey folks, so I've been working on getting systemd support on xen for a bit now and thanks to the last suggestion about the launcher here on systemd-devel I think we're on the final stretch now. I'll be submitting a v6 PATCH series shortly which I think should be the last if not close to the last

Re: [systemd-devel] [PATCH] cryptsetup: check that password is not null

2014-06-12 Thread Thomas H.P. Andersen
On Fri, Jun 13, 2014 at 12:01 AM, Greg KH wrote: > On Thu, Jun 12, 2014 at 11:49:35PM +0200, Thomas H.P. Andersen wrote: >> On Thu, Jun 12, 2014 at 11:08 PM, Greg KH wrote: >> > On Thu, Jun 12, 2014 at 10:55:50PM +0200, Thomas H.P. Andersen wrote: >> >> From: Thomas Hindoe Paaboel Andersen >> >>

Re: [systemd-devel] [PATCH] cryptsetup: check that password is not null

2014-06-12 Thread Greg KH
On Thu, Jun 12, 2014 at 11:49:35PM +0200, Thomas H.P. Andersen wrote: > On Thu, Jun 12, 2014 at 11:08 PM, Greg KH wrote: > > On Thu, Jun 12, 2014 at 10:55:50PM +0200, Thomas H.P. Andersen wrote: > >> From: Thomas Hindoe Paaboel Andersen > >> > >> Beef up the assert to protect against passing null

Re: [systemd-devel] [PATCH] cryptsetup: check that password is not null

2014-06-12 Thread Thomas H.P. Andersen
On Thu, Jun 12, 2014 at 11:08 PM, Greg KH wrote: > On Thu, Jun 12, 2014 at 10:55:50PM +0200, Thomas H.P. Andersen wrote: >> From: Thomas Hindoe Paaboel Andersen >> >> Beef up the assert to protect against passing null to strlen. >> >> Found with scan-build. >> --- >> src/cryptsetup/cryptsetup.c

Re: [systemd-devel] [PATCH] cryptsetup: check that password is not null

2014-06-12 Thread Greg KH
On Thu, Jun 12, 2014 at 10:55:50PM +0200, Thomas H.P. Andersen wrote: > From: Thomas Hindoe Paaboel Andersen > > Beef up the assert to protect against passing null to strlen. > > Found with scan-build. > --- > src/cryptsetup/cryptsetup.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

[systemd-devel] [PATCH] cryptsetup: check that password is not null

2014-06-12 Thread Thomas H.P. Andersen
From: Thomas Hindoe Paaboel Andersen Beef up the assert to protect against passing null to strlen. Found with scan-build. --- src/cryptsetup/cryptsetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c index 812b32f..

[systemd-devel] [PATCH] Remove libattr mentions from README

2014-06-12 Thread Cristian Rodríguez
It is no longer required. --- README | 1 - 1 file changed, 1 deletion(-) diff --git a/README b/README index de159fe..2fd95e9 100644 --- a/README +++ b/README @@ -115,7 +115,6 @@ REQUIREMENTS: libcryptsetup (optional) libaudit (optional) libacl (optional) -libat

Re: [systemd-devel] [PATCH] dbus1-generator: fix resource leak on file pointer f

2014-06-12 Thread Cristian Rodríguez
El 12/06/14 12:44, Colin King escribió: > From: Colin Ian King > > File pointer f is not closed on the multiple error exit paths > or on the end of create_dbus_files() causing multiple points > of a resource leak. Close f on the appropriate paths. There is no resource leak.. whatsoever. _cleanu

[systemd-devel] [PATCH] dbus1-generator: fix resource leak on file pointer f

2014-06-12 Thread Colin King
From: Colin Ian King File pointer f is not closed on the multiple error exit paths or on the end of create_dbus_files() causing multiple points of a resource leak. Close f on the appropriate paths. Signed-off-by: Colin Ian King --- src/dbus1-generator/dbus1-generator.c | 5 + 1 file chang

Re: [systemd-devel] systemd not initializing

2014-06-12 Thread Cristian Rodríguez
El 12/06/14 04:51, Mantas Mikulėnas escribió: >> name_to_handle_at(0xff9c, 0x96444, 0x7eefb7b8, 0x7eefb844, 0x400) = -1 >> ENOSYS (Function not implemented) > systemd is checking if it should load SMACK or IMA policy; this can be > safely ignored if you don't use these security modules. Or

[systemd-devel] machined: updating the PID of a created machine

2014-06-12 Thread Cedric Bosdonnat
Hi all, In libvirt lxc driver's use of machined, the CreateMachine call is sent out before the init process is actually started. This gives libvirt lxc driver some time to setup the container before starting it. However, the leader PID sent isn't the proper one and functions like machinectl login

[systemd-devel] [PATCH] Fix spelling mistake, scirpt --> script

2014-06-12 Thread Colin King
From: Colin Ian King Signed-off-by: Colin Ian King --- src/sysv-generator/sysv-generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c index 0b8d8f7..18dae5c 100644 --- a/src/sysv-generator/sysv-g

Re: [systemd-devel] [PATCH] conf-files: really work under different root

2014-06-12 Thread Lukáš Nykrýn
Lukas Nykryn píše v Čt 12. 06. 2014 v 15:53 +0200: > search_and_fopen_* and conf_files_list function accept > root parameter, but they are not using it. > > This leads to an issue with systemd-tmpfiles --root. > The files and dirs are created in the correct location, but > on the base of configura

[systemd-devel] [PATCH] conf-files: really work under different root

2014-06-12 Thread Lukas Nykryn
search_and_fopen_* and conf_files_list function accept root parameter, but they are not using it. This leads to an issue with systemd-tmpfiles --root. The files and dirs are created in the correct location, but on the base of configuration from the normal root. --- src/shared/conf-files.c | 14 ++

Re: [systemd-devel] [PATCH 2/2] kdbus-test: fix kdbus item alignment in kdbus_hello_registrar()

2014-06-12 Thread Kay Sievers
On Wed, Jun 11, 2014 at 6:27 PM, Djalal Harouni wrote: > Currently running the test-kdbus-activator test will fail with -EINVAL > > To fix this, remove the redundant offsetof() macros since it is already > handled. The KDBUS_ITEM_SIZE() will expand into KDBUS_ITEM_HEADER_SIZE() > which expands int

Re: [systemd-devel] [PATCH 1/2] connection: fix cpu stall by checking kdbus item alignment

2014-06-12 Thread Kay Sievers
On Wed, Jun 11, 2014 at 6:27 PM, Djalal Harouni wrote: > Fix the following stall triggered by a policy holder hello: > call test/kdbus-util.c:kdbus_hello_registrar() and pass > KDBUS_HELLO_POLICY_HOLDER as a flag. > > While we are it make sure that kdbus_cmd_conn_update() also checks for > proper

Re: [systemd-devel] Detecting failed units based on active state

2014-06-12 Thread David . Yates
> Lennart Poettering wrote on 11.06.2014 14:58:02: > > On Wed, 11.06.14 13:43, Mantas Mikulėnas (graw...@gmail.com) wrote: > > > Hmm, didn't this get fixed in recent versions? I seem to remember that > > after the sd-bus port systemd started sending changed_properties with > > values, not just

[systemd-devel] R: Re: Slow startup of systemd-journal on BTRFS

2014-06-12 Thread Goffredo Baroncelli
>Da: da...@fromorbit.com >Data: 12/06/2014 3.21 >A: >Cc: "systemd Mailing List", "linux-btrfs" >Ogg: Re: Slow startup of systemd-journal on BTRFS > >On Wed, Jun 11, 2014 at 11:28:54PM +0200, Goffredo Baroncelli wrote: >> Hi all, >> >> I would like to share a my experience about a slowness of sys

[systemd-devel] R: Re: Slow startup of systemd-journal on BTRFS

2014-06-12 Thread Goffredo Baroncelli
>Messaggio originale >Da: russ...@coker.com.au >Data: 12/06/2014 3.18 >A: >Cc: "systemd Mailing List", "linux-btrfs" >Ogg: Re: Slow startup of systemd-journal on BTRFS > >On Wed, 11 Jun 2014 23:28:54 Goffredo Baroncelli wrote: >> https://bugzilla.redhat.com/show_bug.cgi?id=10063

[systemd-devel] R: Re: Slow startup of systemd-journal on BTRFS

2014-06-12 Thread Goffredo Baroncelli
>Messaggio originale >Da: li...@colorremedies.com >Data: 12/06/2014 2.40 >A: , "Goffredo Baroncelli" >Cc: "systemd Mailing List", "linux-btrfs" >Ogg: Re: Slow startup of systemd-journal on BTRFS > > >On Jun 11, 2014, at 3:28 PM, Goffredo Baroncelli wrote: >> >> If someone is able to su

[systemd-devel] [Question]Type=idle looks not work.

2014-06-12 Thread bia...@cn.fujitsu.com
Hi all I have set Type=idle in my getty\@.service, but lots of service run after getty. The log like following. -- localhost login: [ OK ] Started ... [ OK ] Started ... ... ... -- My systemd

Re: [systemd-devel] [ANNOUNCE] systemd 214

2014-06-12 Thread Kay Sievers
On Wed, Jun 11, 2014 at 8:49 PM, Alexander E. Patrakov wrote: > 11.06.2014 23:00, Lennart Poettering wrote: > >> CHANGES WITH 214: >> >> * As an experimental feature, udev now tries to lock the >>disk device node (flock(LOCK_SH|LOCK_NB)) while it >>executes events

Re: [systemd-devel] systemd not initializing

2014-06-12 Thread Mantas Mikulėnas
On Thu, Jun 12, 2014 at 11:36 AM, Jay D Bhatt wrote: > Hi Mantas, > > I checked the PID by using command 'echo $$' and got reply 1. > > I used command: exec trace -D /sbin/init and took the log, which is attached. > > In the log , I find lot of (Function not implemented),(No such file or > direc

Re: [systemd-devel] systemd not initializing

2014-06-12 Thread Jay D Bhatt
Hi Mantas, I checked the PID by using command 'echo $$' and got reply 1. I used command: exec trace -D /sbin/init and took the log, which is attached. In the log , I find lot of (Function not implemented),(No such file or directory) mentions. It seems difficult to figure out which one might be

Re: [systemd-devel] systemd not initializing

2014-06-12 Thread Mantas Mikulėnas
On Thu, Jun 12, 2014 at 9:24 AM, Jay D Bhatt wrote: > Hi Mantas, > > The systemd_loglevel=console doesn't work either. So, I tried the command of > strace which you suggested. I have taken the log of that output. Please find > attached output file. Hmm, did you use `exec`, and the -D option wit