Re: [systemd-devel] systemd-resolved as dnsmasq replacement

2015-06-17 Thread Igor Bukanov
On 17 June 2015 at 15:27, Lennart Poettering lenn...@poettering.net wrote: To hook up local name service clients people should use the nss-resolve NSS module, which ensures that gethostbyname() and friends use resolved as backend. I suppose then non-glibc clients should deal with that on its

Re: [systemd-devel] [survey] BTRFS_IOC_DEVICES_READY return status

2015-06-17 Thread Goffredo Baroncelli
On 2015-06-15 19:38, Lennart Poettering wrote: On Mon, 15.06.15 19:23, Goffredo Baroncelli (kreij...@inwind.it) wrote: On 2015-06-15 12:46, Lennart Poettering wrote: On Sat, 13.06.15 17:09, Goffredo Baroncelli (kreij...@libero.it) wrote: Further, the problem will be more intense in this eg.

Re: [systemd-devel] [PATCH v4] watchdog: Don't require WDIOC_SETOPTIONS/WDIOS_ENABLECARD

2015-06-17 Thread Jean Delvare
On Wed, 17 Jun 2015 19:04:34 +0200, Lennart Poettering wrote: On Wed, 17.06.15 18:57, Jean Delvare (jdelv...@suse.de) wrote: Not all watchdog drivers implement WDIOC_SETOPTIONS. Drivers which do not implement it have their device always enabled. So it's fine to report an error if

Re: [systemd-devel] systemd-resolved as dnsmasq replacement

2015-06-17 Thread Lennart Poettering
On Wed, 17.06.15 19:48, Igor Bukanov (i...@mir2.org) wrote: On 17 June 2015 at 15:27, Lennart Poettering lenn...@poettering.net wrote: To hook up local name service clients people should use the nss-resolve NSS module, which ensures that gethostbyname() and friends use resolved as backend.

Re: [systemd-devel] systemd-resolved as dnsmasq replacement

2015-06-17 Thread Daurnimator
On 18 Jun 2015 3:51 am, Lennart Poettering lenn...@poettering.net wrote: On Wed, 17.06.15 19:48, Igor Bukanov (i...@mir2.org) wrote: On 17 June 2015 at 15:27, Lennart Poettering lenn...@poettering.net wrote: To hook up local name service clients people should use the nss-resolve NSS

Re: [systemd-devel] machinectl status vs show

2015-06-17 Thread Johannes Ernst
In which case: 1. The man pages, to me, imply that I should be able to get everything that ‘status' shows using ‘show' because it says: This function is intended to generate human-readable output. If you are looking for computer-parsable output, use show instead.” (and vice versa) This

Re: [systemd-devel] /etc/resolv.conf link in container

2015-06-17 Thread Johannes Ernst
On Jun 17, 2015, at 1:07, David Herrmann dh.herrm...@gmail.com wrote: Hi On Tue, Jun 16, 2015 at 11:39 PM, Johannes Ernst johannes.er...@gmail.com wrote: I have a root filesystem in directory foo/ It has symlink foo/etc/resolv.conf - /run/systemd/resolve/resolv.conf When I’m

Re: [systemd-devel] machinectl status vs show

2015-06-17 Thread Lennart Poettering
On Wed, 17.06.15 13:34, Johannes Ernst (johannes.er...@gmail.com) wrote: In which case: 1. The man pages, to me, imply that I should be able to get everything that ‘status' shows using ‘show' because it says: This function is intended to generate human-readable output. If you are

Re: [systemd-devel] machinectl status vs show

2015-06-17 Thread Johannes Ernst
On Jun 17, 2015, at 14:09, Lennart Poettering lenn...@poettering.net wrote: On Wed, 17.06.15 13:34, Johannes Ernst (johannes.er...@gmail.com) wrote: 2. So how do I get at the IP address of the container in a way that is easily parseable? make sure nss-mymachines is installed and

Re: [systemd-devel] [survey] BTRFS_IOC_DEVICES_READY return status

2015-06-17 Thread Andrei Borzenkov
В Wed, 17 Jun 2015 23:02:02 +0200 Lennart Poettering lenn...@poettering.net пишет: On Wed, 17.06.15 21:10, Goffredo Baroncelli (kreij...@libero.it) wrote: Well, /bin/mount is not a daemon, and it should not be one. My helper is not a deamon; you was correct the first time: it blocks

Re: [systemd-devel] [PATCH] zsh-completion: fix completion of --user services

2015-06-17 Thread Eric Cook
On 06/17/2015 12:34 PM, Lennart Poettering wrote: On Mon, 18.05.15 18:45, Eric Cook (l...@gmx.com) wrote: By the time __systemctl is called, --user/--system are shifted out of `words' by _arguments. This patch queries the array sooner. In the case that both --user and --system are on the

Re: [systemd-devel] [survey] BTRFS_IOC_DEVICES_READY return status

2015-06-17 Thread Lennart Poettering
On Wed, 17.06.15 21:10, Goffredo Baroncelli (kreij...@libero.it) wrote: Well, /bin/mount is not a daemon, and it should not be one. My helper is not a deamon; you was correct the first time: it blocks until all needed/enough devices are appeared. Anyway this should not be different from

Re: [systemd-devel] [PATCH v2] watchdog: Don't require WDIOC_SETOPTIONS/WDIOS_ENABLECARD

2015-06-17 Thread Jean Delvare
On Wed, 17 Jun 2015 12:02:27 +0200, Lennart Poettering wrote: On Wed, 17.06.15 11:26, Jean Delvare (jdelv...@suse.de) wrote: Not all watchdog drivers implement WDIOC_SETOPTIONS. Drivers which do not implement it have their device always enabled. So it's fine to report an error if

Re: [systemd-devel] [PATCH] improve systemctl daemon-reexec and daemon-reload documentation

2015-06-17 Thread Lennart Poettering
On Wed, 17.06.15 11:22, Thomas Blume (thomas.bl...@suse.com) wrote: The systemctl daemon-reexec and daemon-reload documentation in the manpage is a bit ambiguous. It suggests that daemon-reload reloads the configuration of the manager itself (e.g. the [Manager] section in

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread cee1
2015-06-17 16:40 GMT+08:00 Reindl Harald h.rei...@thelounge.net: Am 17.06.2015 um 05:06 schrieb cee1: 2015-06-16 0:21 GMT+08:00 Lennart Poettering lenn...@poettering.net: On Mon, 15.06.15 23:33, cee1 (fykc...@gmail.com) wrote: Hi, I maybe got confused. First,

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread Reindl Harald
Am 17.06.2015 um 14:21 schrieb cee1: 2015-06-17 16:40 GMT+08:00 Reindl Harald h.rei...@thelounge.net: systemd-random-seed.service will load the seed on disk to /dev/urandom, and save a seed to disk when shutdown, right? The article at http://www.2uo.de/myths-about-urandom/ suggests us saving

Re: [systemd-devel] nspawn --ephemeral

2015-06-17 Thread Tobias Hunger
Hi Johannes, there is a tmpfiles.d rule in your container that creates that snapshot if it is not there yet. I started to create a var/lib/machines directory in the container as part of the container creation process, which prevents systemd 219 from creating the btrfs snapshot there.

Re: [systemd-devel] [PATCH] improve systemctl daemon-reexec and daemon-reload documentation

2015-06-17 Thread Thomas Blume
On Mittwoch 2015-06-17 13:16, Lennart Poettering wrote: The systemctl daemon-reexec and daemon-reload documentation in the manpage is a bit ambiguous. It suggests that daemon-reload reloads the configuration of the manager itself (e.g. the [Manager] section in /etc/systemd/system.conf). It

Re: [systemd-devel] machinectl status vs show

2015-06-17 Thread David Herrmann
Hi On Wed, Jun 17, 2015 at 5:53 AM, Johannes Ernst johannes.er...@gmail.com wrote: Are those supposed to produce the same information, just formatted differently (man vs machine per man page)? I’m failing to convince ‘show’ to give me the container’s IP address, while ‘status’ has all of

Re: [systemd-devel] sd-bus vs glib object path node hierarchy

2015-06-17 Thread David Herrmann
Hi On Tue, Jun 16, 2015 at 11:32 PM, Lennart Poettering lenn...@poettering.net wrote: On Tue, 16.06.15 22:54, Krzesimir Nowak (krzesi...@endocode.com) wrote: That reminds me of a bug (or not-a-bug) in go-dbus [1] - it also generates flat hierarchy. This is a problem for tools like d-feet -

Re: [systemd-devel] [PATCH 4/5] import/pull: Tag replaced with reference

2015-06-17 Thread Pavel Odvody
On Tue, 2015-06-16 at 19:53 +0200, Thomas H.P. Andersen wrote: On Thu, May 7, 2015 at 5:47 PM, Pavel Odvody podv...@redhat.com wrote: Signed-off-by: Pavel Odvody podv...@redhat.com --- src/import/pull.c | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-)

Re: [systemd-devel] /etc/resolv.conf link in container

2015-06-17 Thread David Herrmann
Hi On Tue, Jun 16, 2015 at 11:39 PM, Johannes Ernst johannes.er...@gmail.com wrote: I have a root filesystem in directory foo/ It has symlink foo/etc/resolv.conf - /run/systemd/resolve/resolv.conf When I’m booting the container: sudo systemd-nspawn --directory foo --boot I’m

Re: [systemd-devel] Can kdbus send signal to the source connection?

2015-06-17 Thread eshark
Hi, I'm so sorry for not giving you more details, I'm a freshman here, but I'll try to do better in the future. I will give the answers under each of the questions . At 2015-06-16 18:54:23, David Herrmann dh.herrm...@gmail.com wrote: Hi On Tue, Jun 16, 2015 at 12:07 PM, eshark

Re: [systemd-devel] machinectl status vs show

2015-06-17 Thread Lennart Poettering
On Wed, 17.06.15 10:13, David Herrmann (dh.herrm...@gmail.com) wrote: Hi On Wed, Jun 17, 2015 at 5:53 AM, Johannes Ernst johannes.er...@gmail.com wrote: Are those supposed to produce the same information, just formatted differently (man vs machine per man page)? I’m failing to

Re: [systemd-devel] [PATCH v2] watchdog: Don't require WDIOC_SETOPTIONS/WDIOS_ENABLECARD

2015-06-17 Thread Lennart Poettering
On Wed, 17.06.15 11:26, Jean Delvare (jdelv...@suse.de) wrote: Not all watchdog drivers implement WDIOC_SETOPTIONS. Drivers which do not implement it have their device always enabled. So it's fine to report an error if WDIOS_DISABLECARD is passed and the ioctl is not implemented, however

[systemd-devel] [PATCH v2] watchdog: Don't require WDIOC_SETOPTIONS/WDIOS_ENABLECARD

2015-06-17 Thread Jean Delvare
Not all watchdog drivers implement WDIOC_SETOPTIONS. Drivers which do not implement it have their device always enabled. So it's fine to report an error if WDIOS_DISABLECARD is passed and the ioctl is not implemented, however failing when WDIOS_ENABLECARD is passed and the ioctl is not implemented

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread Reindl Harald
Am 17.06.2015 um 05:06 schrieb cee1: 2015-06-16 0:21 GMT+08:00 Lennart Poettering lenn...@poettering.net: On Mon, 15.06.15 23:33, cee1 (fykc...@gmail.com) wrote: Hi, I maybe got confused. First, systemd-random-seed.service will save a seed from /dev/urandom when shutdown, and load that seed

Re: [systemd-devel] Can kdbus send signal to the source connection?

2015-06-17 Thread eshark
Hi, With my kdbus broadcast patch, I found that the systemd process would endlessly emit the signal type=signal sender=:1.2 destination=n/a object=/org/freedesktop/systemd1/agent interface=org.freedesktop.systemd1.Agent member=Released .What does this signal mean ? I searched

[systemd-devel] [PATCH] improve systemctl daemon-reexec and daemon-reload documentation

2015-06-17 Thread Thomas Blume
The systemctl daemon-reexec and daemon-reload documentation in the manpage is a bit ambiguous. It suggests that daemon-reload reloads the configuration of the manager itself (e.g. the [Manager] section in /etc/systemd/system.conf). It should be pointed out that it only reloads the configuration

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread Kay Sievers
On Wed, Jun 17, 2015 at 2:28 PM, Reindl Harald h.rei...@thelounge.net wrote: Am 17.06.2015 um 14:21 schrieb cee1: 2015-06-17 16:40 GMT+08:00 Reindl Harald h.rei...@thelounge.net: systemd-random-seed.service will load the seed on disk to /dev/urandom, and save a seed to disk when shutdown,

[systemd-devel] systemd-resolved as dnsmasq replacement

2015-06-17 Thread Igor Bukanov
Hello, perhaps I missed something, but it seems that systemd-resolved cannot be configured to serve the same role as dnsmasq and be a DNS server for local machine. I.e. I cannot just have nameserver 127.0.0.1 in /ertc/resolv.conf and get LLMNR resolution working for progams that only use

Re: [systemd-devel] systemd-resolved as dnsmasq replacement

2015-06-17 Thread Lennart Poettering
On Wed, 17.06.15 15:19, Igor Bukanov (i...@mir2.org) wrote: Hello, perhaps I missed something, but it seems that systemd-resolved cannot be configured to serve the same role as dnsmasq and be a DNS server for local machine. I.e. I cannot just have nameserver 127.0.0.1 in /ertc/resolv.conf

Re: [systemd-devel] 628c89cc (tentative devices) + disk/by-label udev rule

2015-06-17 Thread Peter Mattern
The messages about several sysfs paths per device aren't caused by volume labels as seen in /dev/disk/by-label only. On GPT systems they seem to be triggered by identical partition labels corresponding to variable PARTLABEL in output of blkid as well. Also, they can be seen launching Arch Linux

Re: [systemd-devel] 628c89cc (tentative devices) + disk/by-label udev rule

2015-06-17 Thread Lennart Poettering
On Wed, 17.06.15 15:44, Peter Mattern (matte...@arcor.de) wrote: The messages about several sysfs paths per device aren't caused by volume labels as seen in /dev/disk/by-label only. On GPT systems they seem to be triggered by identical partition labels corresponding to variable PARTLABEL in

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread Lennart Poettering
On Wed, 17.06.15 16:04, Reindl Harald (h.rei...@thelounge.net) wrote: Please keep such comments to yourself or you will be moderated again you threaten everytime you personally don't agree is a better style? Congratulations, I just put you back on moderation. Lennart -- Lennart

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread Lennart Poettering
On Wed, 17.06.15 20:21, cee1 (fykc...@gmail.com) wrote: 2015-06-17 16:40 GMT+08:00 Reindl Harald h.rei...@thelounge.net: Am 17.06.2015 um 05:06 schrieb cee1: 2015-06-16 0:21 GMT+08:00 Lennart Poettering lenn...@poettering.net: On Mon, 15.06.15 23:33, cee1 (fykc...@gmail.com) wrote:

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread Reindl Harald
Am 17.06.2015 um 14:51 schrieb Kay Sievers: On Wed, Jun 17, 2015 at 2:28 PM, Reindl Harald h.rei...@thelounge.net wrote: Am 17.06.2015 um 14:21 schrieb cee1: 2015-06-17 16:40 GMT+08:00 Reindl Harald h.rei...@thelounge.net: systemd-random-seed.service will load the seed on disk to

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread cee1
2015-06-17 22:03 GMT+08:00 Lennart Poettering lenn...@poettering.net: On Wed, 17.06.15 20:21, cee1 (fykc...@gmail.com) wrote: What I means is: 1. Load a saved seed to /dev/urandom. 2. The service read /dev/random, which will block until kernel thinks there's enough entropy - then the Random

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread Lennart Poettering
On Wed, 17.06.15 23:08, cee1 (fykc...@gmail.com) wrote: 2015-06-17 22:03 GMT+08:00 Lennart Poettering lenn...@poettering.net: On Wed, 17.06.15 20:21, cee1 (fykc...@gmail.com) wrote: What I means is: 1. Load a saved seed to /dev/urandom. 2. The service read /dev/random, which will block

[systemd-devel] [PATCH v4] watchdog: Don't require WDIOC_SETOPTIONS/WDIOS_ENABLECARD

2015-06-17 Thread Jean Delvare
Not all watchdog drivers implement WDIOC_SETOPTIONS. Drivers which do not implement it have their device always enabled. So it's fine to report an error if WDIOS_DISABLECARD is passed and the ioctl is not implemented, however failing when WDIOS_ENABLECARD is passed and the ioctl is not implemented

Re: [systemd-devel] [PATCH v4] watchdog: Don't require WDIOC_SETOPTIONS/WDIOS_ENABLECARD

2015-06-17 Thread Lennart Poettering
On Wed, 17.06.15 18:57, Jean Delvare (jdelv...@suse.de) wrote: Not all watchdog drivers implement WDIOC_SETOPTIONS. Drivers which do not implement it have their device always enabled. So it's fine to report an error if WDIOS_DISABLECARD is passed and the ioctl is not implemented, however

Re: [systemd-devel] [PATCH v2] selinux: fix missing SELinux unit access check

2015-06-17 Thread Lennart Poettering
On Wed, 10.06.15 14:40, HATAYAMA Daisuke (d.hatay...@jp.fujitsu.com) wrote: From 398deee74edb06b54b8a74c25697cd6d977d8f2d Mon Sep 17 00:00:00 2001 From: HATAYAMA Daisuke d.hatay...@jp.fujitsu.com Date: Wed, 10 Jun 2015 14:10:31 +0900 Subject: [PATCH] selinux: fix missing SELinux unit access

Re: [systemd-devel] [PATCH] mount: use libmount to monitor mountinfo utab

2015-06-17 Thread Lennart Poettering
On Wed, 03.06.15 14:59, Karel Zak (k...@redhat.com) wrote: The current implementation directly monitor /proc/self/mountinfo and /run/mount/utab files. It's really not optimal because utab file is private libmount stuff without any official guaranteed semantic. The libmount since v2.26

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread cee1
2015-06-17 23:15 GMT+08:00 Lennart Poettering lenn...@poettering.net: That don't mean blocking boot, but a service, let's say systemd-random-seed.service: 1. systemd-random-seed.service loads a seed from disk to /dev/urandom 2. systemd-random-seed.service tells systemd I'm ready (sd_notify())

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread cee1
2015-06-17 23:38 GMT+08:00 Reindl Harald h.rei...@thelounge.net: Am 17.06.2015 um 17:08 schrieb cee1: 2015-06-17 22:03 GMT+08:00 Lennart Poettering lenn...@poettering.net: On Wed, 17.06.15 20:21, cee1 (fykc...@gmail.com) wrote: What I means is: 1. Load a saved seed to /dev/urandom. 2.

Re: [systemd-devel] [PATCH v3] watchdog: Don't require WDIOC_SETOPTIONS/WDIOS_ENABLECARD

2015-06-17 Thread Lennart Poettering
On Wed, 17.06.15 17:49, Jean Delvare (jdelv...@suse.de) wrote: Not all watchdog drivers implement WDIOC_SETOPTIONS. Drivers which do not implement it have their device always enabled. So it's fine to report an error if WDIOS_DISABLECARD is passed and the ioctl is not implemented, however

Re: [systemd-devel] [PATCH v3] watchdog: Don't require WDIOC_SETOPTIONS/WDIOS_ENABLECARD

2015-06-17 Thread Jean Delvare
On Wed, 17 Jun 2015 18:00:58 +0200, Lennart Poettering wrote: On Wed, 17.06.15 17:49, Jean Delvare (jdelv...@suse.de) wrote: Not all watchdog drivers implement WDIOC_SETOPTIONS. Drivers which do not implement it have their device always enabled. So it's fine to report an error if

Re: [systemd-devel] [PATCH 4/5] import/pull: Tag replaced with reference

2015-06-17 Thread Lennart Poettering
On Wed, 17.06.15 09:09, Pavel Odvody (podv...@redhat.com) wrote: -tag = latest; +reference = latest; } This part does not look correct. Any value that we set for reference/name in the digest part will be overwritten in the next block. I

[systemd-devel] [PATCH v3] watchdog: Don't require WDIOC_SETOPTIONS/WDIOS_ENABLECARD

2015-06-17 Thread Jean Delvare
Not all watchdog drivers implement WDIOC_SETOPTIONS. Drivers which do not implement it have their device always enabled. So it's fine to report an error if WDIOS_DISABLECARD is passed and the ioctl is not implemented, however failing when WDIOS_ENABLECARD is passed and the ioctl is not implemented

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread Lennart Poettering
B1;4002;0cOn Wed, 17.06.15 23:45, cee1 (fykc...@gmail.com) wrote: 2015-06-17 23:15 GMT+08:00 Lennart Poettering lenn...@poettering.net: That don't mean blocking boot, but a service, let's say systemd-random-seed.service: 1. systemd-random-seed.service loads a seed from disk to /dev/urandom

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread Lennart Poettering
On Thu, 18.06.15 00:00, cee1 (fykc...@gmail.com) wrote: First it seeds /dev/urandom Second, seed /dev/random will not increase the entropy without using ioctl (please see https://www.mail-archive.com/systemd-devel@lists.freedesktop.org/msg32555.html) Though, some other services may read