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

2015-06-15 Thread Lennart Poettering
On Sat, 13.06.15 17:35, Anand Jain (anand.j...@oracle.com) wrote: Are there any other users? - If the the device in the argument is already mounted, can it straightaway return 0 (ready) ? (as of now it would again independently read the SB determine total_devices and

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

2015-06-15 Thread Lennart Poettering
On Fri, 12.06.15 21:16, Anand Jain (anand.j...@oracle.com) wrote: BTRFS_IOC_DEVICES_READY is to check if all the required devices are known by the btrfs kernel, so that admin/system-application could mount the FS. It is checked against a device in the argument. However the actual

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

2015-06-15 Thread Lennart Poettering
On Sat, 13.06.15 17:09, Goffredo Baroncelli (kreij...@libero.it) wrote: Further, the problem will be more intense in this eg. if you use dd and copy device A to device B. After you mount device A, by just providing device B in the above two commands you could let kernel update the device

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

2015-06-15 Thread eshark
Hi, All, If I post this email to the wrong mail-list, please tell me, thank you. Now many JS applications implement the client and service in the same thread, so they share the same connection too. However when the client or the service want to send signal to the other, the

[systemd-devel] systemd is trying to break mount ordering

2015-06-15 Thread Jan Synáček
I have the following setup on a freshly updated Fedora Rawhide machine with systemd-220-9.fc23.x86_64. # cat /etc/fstab [comments left out] UUID=d5ac823b-d0bd-4f7f-bf4b-5cc82d585a92 / btrfs subvol=root 0 0 UUID=ec79f233-055c-40fa-98e5-e2d77314913a /boot

Re: [systemd-devel] Improve boot-time of systemd-based device, revisited

2015-06-15 Thread Harald Hoyer
On 14.06.2015 15:17, cee1 wrote: Hi all, I've recently got another chance to improve the boot-time of a systemd-based device. I'd like to share the experience here, and some thoughts and questions. The first time I tried to improve the boot-time of systemd:

Re: [systemd-devel] systemd is trying to break mount ordering

2015-06-15 Thread Uoti Urpala
On Mon, 2015-06-15 at 13:24 +0200, Jan Synáček wrote: 192.168.122.1:/srv/nfs /mnt/nfs nfs defaults 0 0 /var/tmp/test.iso /mnt/nfs/content iso9660 loop,ro 0 0 Notice the last two lines. There is an NFS mount mounted to /mnt/nfs and an ISO filesystem mounted into /mnt/nfs/content, which

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

2015-06-15 Thread David Herrmann
Hi On Mon, Jun 15, 2015 at 4:43 PM, Simon McVittie simon.mcvit...@collabora.co.uk wrote: On 15/06/15 15:32, Lennart Poettering wrote: Did I get this right, you have one bus connection per thread, but possibly both a kdbus client and its service run from the server, and you want broadcast msgs

[systemd-devel] Fedora 21 and systemd-nspawn

2015-06-15 Thread Matthew Karas
I'm trying to use systemd-nspawn but when I launch it and try to login as root - it still asks for a password and I can't seem to set one. The docs for fedora mentioned turning off auditing - which I've done. My cmd line says audit=0 at the end. $ cat /proc/cmdline

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

2015-06-15 Thread Lennart Poettering
On Mon, 15.06.15 19:05, eshark (eshar...@163.com) wrote: Hi, All, If I post this email to the wrong mail-list, please tell me, thank you. Now many JS applications implement the client and service in the same thread, so they share the same connection too. However when the

Re: [systemd-devel] Fedora 21 and systemd-nspawn

2015-06-15 Thread Lennart Poettering
On Mon, 15.06.15 11:30, Matthew Karas (mkarasc...@gmail.com) wrote: I'm trying to use systemd-nspawn but when I launch it and try to login as root - it still asks for a password and I can't seem to set one. The docs for fedora mentioned turning off auditing - which I've done. My cmd line

Re: [systemd-devel] systemd is trying to break mount ordering

2015-06-15 Thread Lennart Poettering
On Mon, 15.06.15 13:24, Jan Synáček (jsyna...@redhat.com) wrote: I have the following setup on a freshly updated Fedora Rawhide machine with systemd-220-9.fc23.x86_64. # cat /etc/fstab [comments left out] UUID=d5ac823b-d0bd-4f7f-bf4b-5cc82d585a92 / btrfs

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

2015-06-15 Thread David Sterba
On Fri, Jun 12, 2015 at 09:16:30PM +0800, Anand Jain wrote: BTRFS_IOC_DEVICES_READY is to check if all the required devices are known by the btrfs kernel, so that admin/system-application could mount the FS. It is checked against a device in the argument. However the actual implementation is

Re: [systemd-devel] [PATCH v2] Add support for transient presets, applied on every boot.

2015-06-15 Thread Dimitri John Ledkov
On 22 April 2015 at 19:30, Lennart Poettering lenn...@poettering.net wrote: On Sat, 21.02.15 02:38, Dimitri John Ledkov (dimitri.j.led...@intel.com) wrote: Sorry for the late review! Hello, blast from the past =) Can you please add a commit description to this, explaining the precise

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

2015-06-15 Thread Simon McVittie
On 15/06/15 15:32, Lennart Poettering wrote: Did I get this right, you have one bus connection per thread, but possibly both a kdbus client and its service run from the server, and you want broadcast msgs sent out from one to then also be matchable by the other? If this is indeed what eshark

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

2015-06-15 Thread cee1
Hi, I maybe got confused. First, systemd-random-seed.service will save a seed from /dev/urandom when shutdown, and load that seed to /dev/urandom when next boot up. My questions are: 1. Can we not save a seed, but load a seed that is read from ** /dev/random ** to ** /dev/urandom **? 2. Saving

[systemd-devel] [HEADSUP] Intend to release 221 by the end of the week

2015-06-15 Thread Lennart Poettering
Heya, People asked for a heads-up on this: I intend to prepare v221 by the end of this week. It's a good time to start testing what's currently in git! If you take this as hint to start your auto-builder however, then that's wrong: you should run your auto-builder CI-style all the time anyway,

Re: [systemd-devel] Fedora 21 and systemd-nspawn

2015-06-15 Thread Chris Morgan
On Monday, June 15, 2015, Lennart Poettering lenn...@poettering.net wrote: On Mon, 15.06.15 13:22, Matthew Karas (mkarasc...@gmail.com javascript:;) wrote: Yes - that seems to have let me set the password. Now I can get started learning about this. Thanks a lot! Though it does

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

2015-06-15 Thread Lennart Poettering
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 to /dev/urandom when next boot up. My questions are: 1. Can we not save a seed, but load a seed

Re: [systemd-devel] Fedora 21 and systemd-nspawn

2015-06-15 Thread Matthew Karas
Here is my output https://gist.github.com/mkcybi/eae6a2a67c5dc864 -- Forwarded message -- From: Lennart Poettering lenn...@poettering.net Date: Mon, Jun 15, 2015 at 11:32 AM Subject: Re: [systemd-devel] Fedora 21 and systemd-nspawn To: Matthew Karas mkarasc...@gmail.com Cc:

Re: [systemd-devel] Fedora 21 and systemd-nspawn

2015-06-15 Thread Matthew Karas
Yes - that seems to have let me set the password. Now I can get started learning about this. Thanks a lot! Though it does return an error about selinux when I start the shell to set the password $ sudo systemd-nspawn -bD /srv/srv1 Spawning container srv1 on /srv/srv1. Press ^] three times

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

2015-06-15 Thread Lennart Poettering
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. if you use dd and copy device A to device

Re: [systemd-devel] Fedora 21 and systemd-nspawn

2015-06-15 Thread Lennart Poettering
On Mon, 15.06.15 13:22, Matthew Karas (mkarasc...@gmail.com) wrote: Yes - that seems to have let me set the password. Now I can get started learning about this. Thanks a lot! Though it does return an error about selinux when I start the shell to set the password $ sudo systemd-nspawn

Re: [systemd-devel] Understanding DHCP, DNS and IPMasquerade

2015-06-15 Thread Johannes Ernst
On Jun 15, 2015, at 11:32, Lennart Poettering lenn...@poettering.net wrote: On Mon, 15.06.15 10:39, Johannes Ernst (johannes.er...@gmail.com) wrote: On Jun 15, 2015, at 10:33, Lennart Poettering lenn...@poettering.net wrote: On Mon, 15.06.15 10:32, Johannes Ernst

Re: [systemd-devel] Understanding DHCP, DNS and IPMasquerade

2015-06-15 Thread Lennart Poettering
On Mon, 15.06.15 10:39, Johannes Ernst (johannes.er...@gmail.com) wrote: On Jun 15, 2015, at 10:33, Lennart Poettering lenn...@poettering.net wrote: On Mon, 15.06.15 10:32, Johannes Ernst (johannes.er...@gmail.com mailto:johannes.er...@gmail.com) wrote: On Jun 14, 2015, at

Re: [systemd-devel] Understanding DHCP, DNS and IPMasquerade

2015-06-15 Thread Johannes Ernst
On Jun 14, 2015, at 15:27, Lennart Poettering lenn...@poettering.net wrote: On Fri, 12.06.15 17:32, Johannes Ernst (johannes.er...@gmail.com) wrote: * host and container can ping test (if test is the name of the * container machine per machinectl): FAILS, neither can Do you have

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

2015-06-15 Thread Lennart Poettering
On Mon, 15.06.15 18:14, 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] Understanding DHCP, DNS and IPMasquerade

2015-06-15 Thread Lennart Poettering
On Mon, 15.06.15 10:32, Johannes Ernst (johannes.er...@gmail.com) wrote: On Jun 14, 2015, at 15:27, Lennart Poettering lenn...@poettering.net wrote: On Fri, 12.06.15 17:32, Johannes Ernst (johannes.er...@gmail.com) wrote: * host and container can ping test (if test is the name of

Re: [systemd-devel] Understanding DHCP, DNS and IPMasquerade

2015-06-15 Thread Johannes Ernst
On Jun 15, 2015, at 10:33, Lennart Poettering lenn...@poettering.net wrote: On Mon, 15.06.15 10:32, Johannes Ernst (johannes.er...@gmail.com mailto:johannes.er...@gmail.com) wrote: On Jun 14, 2015, at 15:27, Lennart Poettering lenn...@poettering.net wrote: On Fri, 12.06.15 17:32,

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

2015-06-15 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-15 Thread Cristian Rodríguez
On Mon, Jun 15, 2015 at 12:33 PM, 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 to /dev/urandom when next boot up. My questions are: 1. Can we not save a seed, but load a

[systemd-devel] Scripting a server test

2015-06-15 Thread Johannes Ernst
This is a best-practice question. I’d like to automate testing of a web application (running in a container) by running curl from the host. The logical sequence should be: * boot container using local tar file or existing directory * wait until container is-system-running=true * on the

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

2015-06-15 Thread Jean Delvare
Hi Lennart, Thanks for your quick reply. Le Monday 15 June 2015 à 18:16 +0200, Lennart Poettering a écrit : On Mon, 15.06.15 18:14, Jean Delvare (jdelv...@suse.de) wrote: Not all watchdog drivers implement WDIOC_SETOPTIONS. Drivers which do not implement it have their device always