Re: [systemd-devel] systemd not initializing

2014-06-11 Thread Jay D Bhatt
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. Can you suggest what could be wrong with init after looking at log? Thanks, Jay Bhatt

Re: [systemd-devel] systemd not initializing

2014-06-11 Thread Mantas Mikulėnas
On Thu, Jun 12, 2014 at 6:44 AM, Jay D Bhatt wrote: > Hi Mantas, > > Thanks for your reply. > > I tried putting boot options boot options loglevel=6, systemd.log_level=debug Maybe also systemd.log_target=console? I don't remember if that's needed > But it got stuck as before. So I added init=/bi

Re: [systemd-devel] systemd not initializing

2014-06-11 Thread Jay D Bhatt
Hi Mantas, Thanks for your reply. I tried putting boot options boot options loglevel=6, systemd.log_level=debug But it got stuck as before. So I added init=/bin/sh to the arguments and removed system.log_level=debug. Then I could have the Shell command line but it gave some messages before gi

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

2014-06-11 Thread Cameron Norman
El Wed, 11 de Jun 2014 a las 10:00 AM, Lennart Poettering escribió: Hi! http://www.freedesktop.org/software/systemd/systemd-214.tar.xz Here it is, version 214. Stuffed with great new features, improvements in all areas, ‘1’ I would think that removing m from the documentation entirely would

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

2014-06-11 Thread Chris Murphy
On Jun 11, 2014, at 7:21 PM, Dave Chinner wrote: > 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 systemd when used >> on BTRFS. >> >> My boot time was very high (about ~50 seconds); most of time i

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

2014-06-11 Thread Chris Murphy
On Jun 11, 2014, at 3:28 PM, Goffredo Baroncelli wrote: > > If someone is able to suggest me how FRAGMENT the log file, I can try to > collect more scientific data. So long as you're not using compression, filefrag will show you fragments of systemd-journald journals. I can vouch for the beha

[systemd-devel] [PATCH] shared: fix searching for configs in alternate roots

2014-06-11 Thread Michael Marineau
Commit 12ed81d9 changed path_strv_canonicalize_absolute's behavior to return a directory list without the root prefix if one was given but did not update other users of the function to the new behavior. This broke the --root option in systemd-tmpfiles, a regression in v213. To better reflect that

Re: [systemd-devel] systemd-network-wait-online symlinks to systemd-networkd

2014-06-11 Thread Kirill Elagin
You're welcome. Please, tell the PMS guys to add this to the spec and ask the Paludis guys to implement this as well. -- Кирилл Елагин On Thu, Jun 12, 2014 at 1:33 AM, Mike Gilbert wrote: > On Wed, Jun 11, 2014 at 4:56 PM, Mike Gilbert wrote: > > On Wed, Jun 11, 2014 at 12:15 PM, Kirill Ela

Re: [systemd-devel] systemd-network-wait-online symlinks to systemd-networkd

2014-06-11 Thread Mike Gilbert
On Wed, Jun 11, 2014 at 4:56 PM, Mike Gilbert wrote: > On Wed, Jun 11, 2014 at 12:15 PM, Kirill Elagin wrote: >> On Wed, Jun 11, 2014 at 3:24 AM, Mike Gilbert wrote: >>> >>> On Tue, Jun 10, 2014 at 5:50 PM, Lennart Poettering >>> wrote: >>> > On Tue, 10.06.14 13:58, Mike Gilbert (flop...@gentoo

[systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-11 Thread Goffredo Baroncelli
Hi all, I would like to share a my experience about a slowness of systemd when used on BTRFS. My boot time was very high (about ~50 seconds); most of time it was due to NetworkManager which took about 30-40 seconds to start (this data came from "systemd-analyze plot"). I make several attempts

Re: [systemd-devel] systemd-network-wait-online symlinks to systemd-networkd

2014-06-11 Thread Mike Gilbert
On Wed, Jun 11, 2014 at 12:15 PM, Kirill Elagin wrote: > On Wed, Jun 11, 2014 at 3:24 AM, Mike Gilbert wrote: >> >> On Tue, Jun 10, 2014 at 5:50 PM, Lennart Poettering >> wrote: >> > On Tue, 10.06.14 13:58, Mike Gilbert (flop...@gentoo.org) wrote: >> > >> >> > Symlinks should probably just be co

[systemd-devel] [PATCH] tests: add missing XDG_RUNTIME_DIR env variable

2014-06-11 Thread Ronny Chevalier
Otherwise the test fails because specifier_runtime() returns -ENOTSUP when XDG_RUNTIME_DIR is not set. --- src/test/test-unit-name.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/test-unit-name.c b/src/test/test-unit-name.c index fff3e16..bff4319 100644 --- a/src/test/test-unit-name

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

2014-06-11 Thread Alexander E. Patrakov
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 for the disk or any of its partitions. Applications like partitioni

Re: [systemd-devel] How to Restrict device in systemd?

2014-06-11 Thread Kirill Elagin
By the way, reading throw the NEWS I thought you might be interested in `InaccessibleDirectories=/` or something like that -- Кирилл Елагин On Wed, Jun 4, 2014 at 1:18 PM, Mohit Agrawal wrote: > Hi, > > Thanks to share the example of unit file,now query is resolved. > > > Regards > Mohit Agra

Re: [systemd-devel] [PATCH] NEWS: fix directory name

2014-06-11 Thread Lennart Poettering
On Wed, 11.06.14 17:09, Mantas Mikulėnas (graw...@gmail.com) wrote: Ah, grrr. Didn't see your mail before the release. :-( Anyway, commited now! Thanks! > --- > NEWS | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/NEWS b/NEWS > index 54d9e9e..1effaf5 100644 > --- a/NE

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

2014-06-11 Thread Djalal Harouni
Hi, The tests are not clean... just a copy/past if you want to confirm this one! they are attached. patch with policy-holder.patch then run: test-kdbus-policy-holder You should hit it! On Wed, Jun 11, 2014 at 05:27:58PM +0100, Djalal Harouni wrote: > Fix the following stall triggered by a poli

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

2014-06-11 Thread Djalal Harouni
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 into an offsetof() one. Signed-off-by: Djalal Harouni --- test/kd

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

2014-06-11 Thread Djalal Harouni
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 8 byte alignment. [ 142.731011] INFO: rcu_sched self-detected sta

Re: [systemd-devel] systemd-network-wait-online symlinks to systemd-networkd

2014-06-11 Thread Kirill Elagin
On Wed, Jun 11, 2014 at 3:24 AM, Mike Gilbert wrote: > On Tue, Jun 10, 2014 at 5:50 PM, Lennart Poettering > wrote: > > On Tue, 10.06.14 13:58, Mike Gilbert (flop...@gentoo.org) wrote: > > > >> > Symlinks should probably just be considered different type of file, > that > >> > have a contents an

Re: [systemd-devel] systemd-network-wait-online symlinks to systemd-networkd

2014-06-11 Thread Colin Guthrie
'Twas brillig, and Dave Reisner at 10/06/14 18:10 did gyre and gimble: > Traditional configuration files have their own content. They can be > hashed and tracked by your package manager. On upgrade, you can make an > intelligent decision about what to do with the new file (replace, > ignore, merge)

Re: [systemd-devel] [PATCH] tmpfiles: Fix journal file permissions broken by a606871

2014-06-11 Thread Greg KH
On Wed, Jun 11, 2014 at 10:53:53AM +0200, Lennart Poettering wrote: > On Mon, 09.06.14 20:05, Jan Alexander Steffens (heftig) > (jan.steff...@gmail.com) wrote: > > > They shouldn't be executable nor world-readable. > > I have now committed a different set of patches to clean this up for > good:

Re: [systemd-devel] [PATCH] Add a network-pre.target to avoid firewall leaks

2014-06-11 Thread Rusty Bird
Lennart Poettering: > On Wed, 11.06.14 11:13, Rusty Bird (rustyb...@openmailbox.org) wrote: > >> Lennart Poettering: >>> I am not convinced that the firewall being broken should break the >>> boot. >> >> It shouldn't! But there should be at least an option (arguably the >> default) to break *conne

[systemd-devel] [PATCH] NEWS: fix directory name

2014-06-11 Thread Mantas Mikulėnas
--- NEWS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 54d9e9e..1effaf5 100644 --- a/NEWS +++ b/NEWS @@ -52,7 +52,7 @@ CHANGES WITH 214: transports. Instead it is assumed the kernel loads them automatically when required. This only work

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

2014-06-11 Thread Lennart Poettering
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 invalidated_properties... This is indeed the case. In more recent

Re: [systemd-devel] [PATCH] Add a network-pre.target to avoid firewall leaks

2014-06-11 Thread Lennart Poettering
On Wed, 11.06.14 11:13, Rusty Bird (rustyb...@openmailbox.org) wrote: > Lennart Poettering: > > I am not convinced that the firewall being broken should break the > > boot. > > It shouldn't! But there should be at least an option (arguably the > default) to break *connectivity*. well, but that's

Re: [systemd-devel] systemd not initializing

2014-06-11 Thread Mantas Mikulėnas
On Wed, Jun 11, 2014 at 2:04 PM, Jay D Bhatt wrote: > Hi, > > I am working on the Freescale hardware. I am using u-boot and uImage > provided with hardware. > > When I try to boot the Tizen on my board, It boots u-boot and kernel uImage > loads fine. But it stops at “Freeing Init Memory: 244k” an

Re: [systemd-devel] [PATCH] Add a network-pre.target to avoid firewall leaks

2014-06-11 Thread Rusty Bird
Lennart Poettering: > I am not convinced that the firewall being broken should break the > boot. It shouldn't! But there should be at least an option (arguably the default) to break *connectivity*. With the v1-v3 patches that's decided by the firewall service, which chooses if it is RequiredBy=,

[systemd-devel] systemd not initializing

2014-06-11 Thread Jay D Bhatt
Hi, I am working on the Freescale hardware. I am using u-boot and uImage provided with hardware. When I try to boot the Tizen on my board, It boots u-boot and kernel uImage loads fine. But it stops at "Freeing Init Memory: 244k" and does not do anything. I wanted to know how does the kernel

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

2014-06-11 Thread Mantas Mikulėnas
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 invalidated_properties... -- Mantas Mikulėnas // sent from phone On Jun 11, 2014 12:59 PM, wrote: > Hi, > > > > We have written a compon

Re: [systemd-devel] [PATCH] doc: specify kernel configs for cpushares

2014-06-11 Thread Lennart Poettering
On Tue, 10.06.14 23:29, Umut Tezduyar Lindskog (umut.tezdu...@axis.com) wrote: Applied! Thanks! > --- > README |4 > 1 file changed, 4 insertions(+) > > diff --git a/README b/README > index f01087f..011c7f6 100644 > --- a/README > +++ b/README > @@ -80,6 +80,10 @@ REQUIREMENTS: >

Re: [systemd-devel] [PATCH] Add a network-pre.target to avoid firewall leaks

2014-06-11 Thread Lennart Poettering
On Wed, 11.06.14 10:18, Rusty Bird (rustyb...@openmailbox.org) wrote: > Hi Lennart, > > >> However, if we do this, then this needs to be a "passive" target, see > >> systemd.special(7), under "Special passive system units", and it should > >> be documented in that section. "Passive" means it is p

Re: [systemd-devel] [PATCH] Add a network-pre.target to avoid firewall leaks

2014-06-11 Thread Lennart Poettering
On Tue, 10.06.14 22:16, Michael Biebl (mbi...@gmail.com) wrote: > > 2014-06-10 19:44 GMT+02:00 Lennart Poettering : > > I figure we don't really need network-pre.target, as units that want to > > run before the network is up should just use: > > > > Before=systemd-networkd.service basic.targe

Re: [systemd-devel] [PATCH] Add a network-pre.target to avoid firewall leaks

2014-06-11 Thread Rusty Bird
Hi Lennart, >> However, if we do this, then this needs to be a "passive" target, see >> systemd.special(7), under "Special passive system units", and it should >> be documented in that section. "Passive" means it is pulled it by the >> units that implement a pre job, not by the units that implemen

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

2014-06-11 Thread David . Yates
Hi, We have written a component that detects failing units in the system. This registers for the PropertiesChanged signal, to be notified whenever the ActiveState of a unit changes. However this signal is sent without the property values. This can result in a problem when a unit is restarted

Re: [systemd-devel] Soliciting feedback for golang bindings to the systemd journal C API

2014-06-11 Thread Lennart Poettering
On Tue, 10.06.14 10:13, Brandon Philips (bran...@ifup.co) wrote: > > Can you please point me to the implementation? All I've seen is this: > > > > https://github.com/coreos/go-systemd/blob/master/journal/send.go > > > > Which only handles writes via the Unix socket. The implementation we're >

Re: [systemd-devel] [PATCH] tmpfiles: Fix journal file permissions broken by a606871

2014-06-11 Thread Lennart Poettering
On Mon, 09.06.14 20:05, Jan Alexander Steffens (heftig) (jan.steff...@gmail.com) wrote: > They shouldn't be executable nor world-readable. I have now committed a different set of patches to clean this up for good:

Re: [systemd-devel] HandleLidSwitch v204

2014-06-11 Thread Lennart Poettering
On Mon, 09.06.14 23:09, Justin Brown (justin.br...@fandingo.org) wrote: > I need to run Fedora 19 (systemd 204) for a particular piece of > software on a laptop, and I'm having trouble disabling suspend when I > shut the screen. My default target is multi-user.target, and the > laptop is not conne

Re: [systemd-devel] [PATCH] shorten_uuid: use proper table size

2014-06-11 Thread Maciej Wereski
10.06.2014 at 19:20 Lennart Poettering wrote: On Wed, 28.05.14 11:24, Maciej Wereski (m.were...@partner.samsung.com) wrote: >When the function is called the buffer is filled with 36 chars, and we >then strip the non-hex-chars, so that 34 chars result. But the function >signature should stil