Re: [systemd-devel] [PATCH] rules: add by-parttypeuuid rule for GPT labeled partitions

2014-05-13 Thread Karel Zak
On Mon, May 12, 2014 at 05:18:56PM +0200, Kay Sievers wrote: > > I just looked up libudev and it looks like there is even a pyudev wrapper, > > so that could indeed work better. I take it that queries via > > udev_enumerate for (say) ID_PART_ENTRY_TYPE=x are efficient? > > Sure, filter for "block

[systemd-devel] how can I add a boot parameter to a app which depend on kernel boot option

2014-05-13 Thread zhang xiong
Hi, All: I face a problem when I'm using systemd. It's appreciate that someone can give me some suggestion. I want to boot an app from systemd and this app's boot parameter is gotten from /proc/cmdline. the boot logic of my app is: if boot_option = a ExecStart=myapp --p

[systemd-devel] systemd headers missing and compiling failed

2014-05-13 Thread winew...@qq.com
hi all, i tried to compile some source code on archlinux (v 2014.05.01), but i got an error: (header missing ?) fatal error: systemd/sd-event.h: No such file or directory #include ^ compilation terminated. then i downloaded & unpacked systemd-212.tar.gz, and copy the header

Re: [systemd-devel] timed out waiting for device dev-disk-by\x2duuid

2014-05-13 Thread poma
On 13.05.2014 04:48, Chris Murphy wrote: ... > The problem seems to be that systemd (udev?) is not finding the volume by > uuid for some reason, and therefore not attempting to mount it. But I don't > know why it can't find it, or even how the find by uuid mechanism works this > early in boot. S

Re: [systemd-devel] how can I add a boot parameter to a app which depend on kernel boot option

2014-05-13 Thread Umut Tezduyar Lindskog
Hi Xiong You can have a script that reads the /proc/cmdline and then calls exec with your app. ExecStart=/your/custom/scipt cat /your/custom/script: # Do what ever you want, figure out parameters # Start your application exec myapp --parameter=xyz Umut On Tue, May 13, 2014 at 12:48 PM, zhan

[systemd-devel] [PATCH] readahead: ARM: fix rotational media detection for MMC

2014-05-13 Thread alison_chaiken
From: Alison Chaiken The ARM runtime reports the major device type associated with /proc/self/mountinfo as MMC_BLOCK_MAJOR, causing on_ssd() in readahead-common.c to return false. on_ssd() should return true, as MMC like SSD is not rotational. Signed-off-by: Alison Chaiken --- src/readahead/

[systemd-devel] udev too late renaming network interfaces

2014-05-13 Thread Grant
I'm on Gentoo and when the system tries to start my network interfaces at boot, I get: Cannot find device "enp0s20u2u1" * ERROR: interface enp0s20u2u1 does not exist * Ensure that you have loaded the correct kernel module for your hardware * ERROR: net.enp0s20u2u1 failed to start * Bringin

Re: [systemd-devel] udev too late renaming network interfaces

2014-05-13 Thread Tom Gundersen
On Tue, May 13, 2014 at 1:52 PM, Grant wrote: > I'm on Gentoo and when the system tries to start my network interfaces > at boot, I get: What software is managing your network? It needs to listen with libudev for the network devices to be fully initialized by udev, otherwise this will happen...

Re: [systemd-devel] [PATCH] readahead: ARM: fix rotational media detection for MMC

2014-05-13 Thread Lennart Poettering
On Tue, 13.05.14 13:49, alison_chai...@mentor.com (alison_chai...@mentor.com) wrote: > From: Alison Chaiken > > The ARM runtime reports the major device type associated with > /proc/self/mountinfo as MMC_BLOCK_MAJOR, causing on_ssd() in > readahead-common.c to return false. on_ssd() should re

Re: [systemd-devel] udev too late renaming network interfaces

2014-05-13 Thread Lennart Poettering
On Tue, 13.05.14 04:52, Grant (emailgr...@gmail.com) wrote: > I'm on Gentoo and when the system tries to start my network interfaces > at boot, I get: > > Cannot find device "enp0s20u2u1" > * ERROR: interface enp0s20u2u1 does not exist > * Ensure that you have loaded the correct kernel modu

Re: [systemd-devel] systemd headers missing and compiling failed

2014-05-13 Thread Matthew Monaco
On 05/13/2014 04:44 AM, winew...@qq.com wrote: > hi all, > > i tried to compile some source code on archlinux (v 2014.05.01), but i got an > error: (header missing ?) > fatal error:*systemd/sd-event.h*: No such file or directory > #include > ^ > compilation terminated. > I get

Re: [systemd-devel] udev too late renaming network interfaces

2014-05-13 Thread Grant
>> I'm on Gentoo and when the system tries to start my network interfaces >> at boot, I get: >> >> Cannot find device "enp0s20u2u1" >> * ERROR: interface enp0s20u2u1 does not exist >> * Ensure that you have loaded the correct kernel module for your hardware >> * ERROR: net.enp0s20u2u1 failed

Re: [systemd-devel] udev too late renaming network interfaces

2014-05-13 Thread Tom Gundersen
On Tue, May 13, 2014 at 3:43 PM, Grant wrote: >>> I'm on Gentoo and when the system tries to start my network interfaces >>> at boot, I get: >>> >>> Cannot find device "enp0s20u2u1" >>> * ERROR: interface enp0s20u2u1 does not exist >>> * Ensure that you have loaded the correct kernel module

Re: [systemd-devel] udev too late renaming network interfaces

2014-05-13 Thread Samuli Suominen
On 13/05/14 16:43, Grant wrote: >>> I'm on Gentoo and when the system tries to start my network interfaces >>> at boot, I get: >>> >>> Cannot find device "enp0s20u2u1" >>> * ERROR: interface enp0s20u2u1 does not exist >>> * Ensure that you have loaded the correct kernel module for your hardw

Re: [systemd-devel] [PATCH] readahead: ARM: fix rotational media detection for MMC

2014-05-13 Thread Chaiken, Alison
I wrote: > The ARM runtime reports the major device type associated with > /proc/self/mountinfo as MMC_BLOCK_MAJOR, causing on_ssd() in > readahead-common.c to return false. on_ssd() should return true, as > MMC like SSD is not rotational. Lennart writes: > Not following here. fs_on_ssd() will a

Re: [systemd-devel] how can I add a boot parameter to a app which depend on kernel boot option

2014-05-13 Thread Colin Guthrie
'Twas brillig, and Umut Tezduyar Lindskog at 13/05/14 12:18 did gyre and gimble: > Hi Xiong > > You can have a script that reads the /proc/cmdline and then calls > exec with your app. > > ExecStart=/your/custom/scipt > > cat /your/custom/script: > > # Do what ever you want, figure out paramete

Re: [systemd-devel] [PATCH] Fix systemd-stdio-bridge symlink

2014-05-13 Thread Umut Tezduyar Lindskog
On Wednesday, May 7, 2014, Colin Guthrie wrote: > 'Twas brillig, and Umut Tezduyar Lindskog at 04/03/14 12:44 did gyre and > gimble: > >> Does that actually matter much? This ln usage is at build time, not > install time, > >> and those stable versions aren't going to upgrade to a current systemd

Re: [systemd-devel] systemd freezes after rshd execution, if network connection is down

2014-05-13 Thread Umut Tezduyar Lindskog
It is also reproducible by just loosing the carrier on the link. Maybe new async close is a candidate to solve it. On Tuesday, April 29, 2014, Harald Hoyer wrote: > Am 28.04.2014 13:33, schrieb Jimmy Assarsson: > > Hi, > > > > We stumbled upon a freeze/block in systemd. > > The problem occurs wh

[systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-13 Thread Andy Kittner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi all, first I hope I'm asking at the right place here, if not feel free to kick me in the right direction. Now, for my problem: I have several encrypted partions set up via /etc/crypttab Since the update to systemd-212 (from 207 I think) the fo

[systemd-devel] How do I make some environment variables available to user-mode unit?

2014-05-13 Thread Andrei Dziahel
Hey list, I've create socket-activated user-mode unit[1] that sets up a SSH tunnel, but it fails to start because ssh is unaware of ssh-agent (gnome-keyring) because of empty environment. Is this possible to feed ssh-agent-related environment variables to foo-tunnel.service making gnome-keyring as

Re: [systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-13 Thread Zbigniew Jędrzejewski-Szmek
On Tue, May 13, 2014 at 08:01:21PM +0200, Andy Kittner wrote: > | May 13 18:50:33 pinky systemd-udevd[2751]: conflicting device node > '/dev/mapper/swap' found, link to '/dev/dm-1' will not be created > Thats the first one I find a bit fishy, but it doesn't sound fatal > either... When this happens

Re: [systemd-devel] How do I make some environment variables available to user-mode unit?

2014-05-13 Thread Zbigniew Jędrzejewski-Szmek
On Tue, May 13, 2014 at 10:21:07PM +0300, Andrei Dziahel wrote: > Hey list, > > I've create socket-activated user-mode unit[1] that sets up a SSH > tunnel, but it fails to start because ssh is unaware of ssh-agent > (gnome-keyring) because of empty environment. Is this possible to feed > ssh-agent

Re: [systemd-devel] [PATCH] readahead: ARM: fix rotational media detection for MMC

2014-05-13 Thread Zbigniew Jędrzejewski-Szmek
On Tue, May 13, 2014 at 02:14:20PM +, Chaiken, Alison wrote: > I wrote: > > The ARM runtime reports the major device type associated with > > /proc/self/mountinfo as MMC_BLOCK_MAJOR, causing on_ssd() in > > readahead-common.c to return false. on_ssd() should return true, as > > MMC like SSD i

Re: [systemd-devel] systemd freezes after rshd execution, if network connection is down

2014-05-13 Thread Zbigniew Jędrzejewski-Szmek
On Tue, May 13, 2014 at 07:40:53PM +0200, Umut Tezduyar Lindskog wrote: > It is also reproducible by just loosing the carrier on the link. Maybe new > async close is a candidate to solve it. > > On Tuesday, April 29, 2014, Harald Hoyer wrote: > > > Am 28.04.2014 13:33, schrieb Jimmy Assarsson: >

Re: [systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-13 Thread Andy Kittner
On 13/05/14 23:39, Zbigniew Jędrzejewski-Szmek wrote: > On Tue, May 13, 2014 at 08:01:21PM +0200, Andy Kittner wrote: >> | May 13 18:50:33 pinky systemd-udevd[2751]: conflicting device node >> '/dev/mapper/swap' found, link to '/dev/dm-1' will not be created >> Thats the first one I find a bit fish

[systemd-devel] [PATCH] network: fix build failure, missing KMOD_XXX flags

2014-05-13 Thread Cristian Rodríguez
- Add KMOD_CFLAGS and KMOD_LIBS where appropiate - networkd now requires kmod. make --disable-kmod --enable-networkd to raise an error. --- Makefile.am | 7 ++- configure.ac | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index b8ff732..0d08975

[systemd-devel] remounting root fs outside containers as MS_SHARED

2014-05-13 Thread Ani Sinha
Note: I had sent this email earlier but I realized that I needed to be subscribed to the mailing list. Now that I have my subscription, I am resending it again. Lennart, sorry for the double noise. --- Hello folks: The following change started mounting the rootfs as shared : b3ac5f8cb98757416d

Re: [systemd-devel] systemd headers missing and compiling failed

2014-05-13 Thread winew...@qq.com
hi Matthew Monaco,since i want to make and install the whole package, your workaround doesn't work for me.anyway, thanks for your reply!Hurry Zeng @ China > Matthew Monaco matt at monaco.cx > Tue May 13 05:38:18 PDT 2014> On 05/13/2014 04:44 AM, winewolf at qq.com > wrote:>> hi all, >> >> i tri

Re: [systemd-devel] Failed to mark scope session-20.scope as abandoned

2014-05-13 Thread Garry T. Williams
On 5-12-14 15:11:46 Michal Sekletar wrote: > On Sat, May 10, 2014 at 05:12:21PM -0400, Garry T. Williams wrote: > > This recently stated showing up in the journal on Fedora F20 here: > > > > May 10 17:01:01 vfr systemd[1]: Failed to mark scope session-20.scope > > as abandoned : Stale file ha

Re: [systemd-devel] Failed to mark scope session-20.scope as abandoned

2014-05-13 Thread Michal Sekletar
On Tue, May 13, 2014 at 11:54:49PM -0400, Garry T. Williams wrote: > On 5-12-14 15:11:46 Michal Sekletar wrote: > > On Sat, May 10, 2014 at 05:12:21PM -0400, Garry T. Williams wrote: > > > This recently stated showing up in the journal on Fedora F20 here: > > > > > > May 10 17:01:01 vfr system