Re: [systemd-devel] systemd-nspawn: cannot join existing macvlan

2015-05-30 Thread Kai Krakow
Lennart Poettering lenn...@poettering.net schrieb: On Mon, 25.05.15 16:26, Kai Krakow (hurikha...@gmail.com) wrote: Lennart Poettering lenn...@poettering.net schrieb: On Fri, 08.05.15 20:53, Kai Krakow (hurikha...@gmail.com) wrote: # systemd-nspawn -b --link-journal=try-guest #

Re: [systemd-devel] What does udevd do

2015-05-30 Thread Tomasz Torcz
On Sat, May 30, 2015 at 09:53:36PM +0800, cee1 wrote: Hi all, If a service wants to be notified when a device is plugged in, it invokes routines of libudev which actually: * Receive notifications from the kernel via NETLINK socket. * Query the detailed info from /sys/... Am I right?

Re: [systemd-devel] Questions about socket activated services

2015-05-30 Thread Andrei Borzenkov
В Sat, 30 May 2015 21:36:02 +0800 cee1 fykc...@gmail.com пишет: Hi all, Which service type should a socket activated service be? 1. For systemd-udevd.service and systemd-journald.service, they are notify type 2. For dbus.service, it is simple type It can be any type. notify is always

[systemd-devel] [PATCH] build-sys: Normalize paths of configure options

2015-05-30 Thread Filipe Brandenburger
From: Michael Biebl bi...@debian.org Strip trailing slashes from options such as --with-rootprefix, so that building with rootprefix=/ results in paths like /lib instead of //lib. Also handle paths such as /usr/ gracefully. Use m4/ax_normalize_path.m4 from the autoconf-archive project, which is

Re: [systemd-devel] [PATCH 1/2] configure.ac: strip off trailing slashed from $rootprefix

2015-05-30 Thread Filipe Brandenburger
Hi, On Fri, May 29, 2015 at 6:04 PM, Michael Biebl mbi...@gmail.com wrote: I we assume, autconf-archive is installed, the resulting patch would look like the attached diff. For convenience sake, we could also ship a copy of /usr/share/aclocal/ax_normalize_path.m4 in our m4/ directory. Yep...

Re: [systemd-devel] Questions about socket activated services

2015-05-30 Thread Tom Gundersen
On Sat, May 30, 2015 at 3:36 PM, cee1 fykc...@gmail.com wrote: Which service type should a socket activated service be? 1. For systemd-udevd.service and systemd-journald.service, they are notify type 2. For dbus.service, it is simple type A service can be of type 'simple' if all that other

Re: [systemd-devel] What does udevd do

2015-05-30 Thread cee1
2015-05-31 5:52 GMT+08:00 Lennart Poettering lenn...@poettering.net: Then udevd is only responsible for 1) Making nodes, and doing other device initialization stuffs. udev does not create device nodes. That's the job of devtmpfs in the kernel. udev will however apply access modes/acls/fix

Re: [systemd-devel] [ANNOUNCE] Separating gudev from systemd

2015-05-30 Thread Zbigniew Jędrzejewski-Szmek
On Wed, May 27, 2015 at 11:21:06AM +0200, Bastien Nocera wrote: On Wed, 2015-05-20 at 12:01 +0200, David Herrmann wrote: Hi On Wed, May 20, 2015 at 8:46 AM, Tom Gundersen t...@jklm.no wrote: On Wed, May 20, 2015 at 8:24 AM, Martin Pitt martin.p...@ubuntu.com wrote: Hey David,

Re: [systemd-devel] What does udevd do

2015-05-30 Thread Lennart Poettering
On Sat, 30.05.15 21:53, cee1 (fykc...@gmail.com) wrote: Hi all, If a service wants to be notified when a device is plugged in, it invokes routines of libudev which actually: * Receive notifications from the kernel via NETLINK socket. Not quite. udev receives notifications from the kernel

Re: [systemd-devel] What does udevd do

2015-05-30 Thread Greg KH
On Sun, May 31, 2015 at 10:26:46AM +0800, cee1 wrote: 2015-05-31 5:52 GMT+08:00 Lennart Poettering lenn...@poettering.net: Then udevd is only responsible for 1) Making nodes, and doing other device initialization stuffs. udev does not create device nodes. That's the job of devtmpfs in the

Re: [systemd-devel] What does udevd do

2015-05-30 Thread Andrei Borzenkov
В Sun, 31 May 2015 10:26:46 +0800 cee1 fykc...@gmail.com пишет: 2015-05-31 5:52 GMT+08:00 Lennart Poettering lenn...@poettering.net: Then udevd is only responsible for 1) Making nodes, and doing other device initialization stuffs. udev does not create device nodes. That's the job of

Re: [systemd-devel] [PATCH] build-sys: Normalize paths of configure options

2015-05-30 Thread systemd github import bot
Patchset imported to github. Pull request: https://github.com/systemd-devs/systemd/compare/master...systemd-mailing-devs:1432966890-8267-1-git-send-email-filbranden%40google.com -- Generated by https://github.com/haraldh/mail2git ___ systemd-devel

Re: [systemd-devel] [PATCH 1/2] configure.ac: strip off trailing slashed from $rootprefix

2015-05-30 Thread Daniel Mack
On 05/30/2015 08:50 AM, Mike Gilbert wrote: On Fri, May 29, 2015 at 8:05 PM, Daniel Mack dan...@zonque.org wrote: Make sure the variable set via --with-rootprefix= does not contain a trailing slash, so man pages can use entities like rootprefix;/lib without ending up having double slashes.

Re: [systemd-devel] [PATCH 1/2] configure.ac: strip off trailing slashed from $rootprefix

2015-05-30 Thread Mike Gilbert
On Fri, May 29, 2015 at 8:05 PM, Daniel Mack dan...@zonque.org wrote: Make sure the variable set via --with-rootprefix= does not contain a trailing slash, so man pages can use entities like rootprefix;/lib without ending up having double slashes. --- configure.ac | 3 ++- 1 file changed, 2

Re: [systemd-devel] [PATCH 1/2] configure.ac: strip off trailing slashed from $rootprefix

2015-05-30 Thread Christian Seiler
On 05/30/2015 12:42 PM, Daniel Mack wrote: On 05/30/2015 12:31 PM, Christian Seiler wrote: Speaking of: using 'echo' for shell scripting is problematic, because while bash, busybox's sh, mksh, pdksh and zsh don't interpret escape sequences (\n, \0oo, ...) by default when using echo and invoked

Re: [systemd-devel] [PATCH v3] systemctl: drop hardcoded chkconfig invocation

2015-05-30 Thread Michael Biebl
2015-05-28 15:02 GMT+02:00 Martin Pitt martin.p...@ubuntu.com: Lennart Poettering [2015-05-28 13:05 +0200]: Nah, please remove this part. We should not ship that upstream. THis is something that Fedora's initscripts.rpm should provide eventually, and should be neither shipped with systemd

Re: [systemd-devel] [PATCH 1/2] configure.ac: strip off trailing slashed from $rootprefix

2015-05-30 Thread Christian Seiler
On 05/30/2015 10:28 AM, Daniel Mack wrote: On 05/30/2015 08:50 AM, Mike Gilbert wrote: On Fri, May 29, 2015 at 8:05 PM, Daniel Mack dan...@zonque.org wrote: Make sure the variable set via --with-rootprefix= does not contain a trailing slash, so man pages can use entities like rootprefix;/lib

[systemd-devel] Questions about socket activated services

2015-05-30 Thread cee1
Hi all, Which service type should a socket activated service be? 1. For systemd-udevd.service and systemd-journald.service, they are notify type 2. For dbus.service, it is simple type Does socket activation handles the timeout case? E.g. A.service connects to B.socket, but B.service spends a

[systemd-devel] What does udevd do

2015-05-30 Thread cee1
Hi all, If a service wants to be notified when a device is plugged in, it invokes routines of libudev which actually: * Receive notifications from the kernel via NETLINK socket. * Query the detailed info from /sys/... Am I right? Then udevd is only responsible for 1) Making nodes, and doing

Re: [systemd-devel] nspawn: No Return key in machinectl login?

2015-05-30 Thread Tobias Hunger
Lennart, this apparently is a problem with machinectl login: If I just use nsenter --target PID --mount --uts --ipc --net as root the return key works fine. TERM=xterm with nsenter (no surprise considering that I run that from a xterm;-), while it is vt220 in machinectl. Any ideas? Best