Re: [systemd-devel] Bug in source_io_register?

2013-10-16 Thread Lennart Poettering
On Tue, 15.10.13 18:22, David Strauss (da...@davidstrauss.net) wrote: > > This appears to be a case of having more than one source enabled for > the same fd, even if they're for different conditions (EPOLLIN vs. > EPOLLOUT). I'm looking now at changing the code to use only one source > but in a d

Re: [systemd-devel] Bug in source_io_register?

2013-10-16 Thread David Strauss
On Wed, Oct 16, 2013 at 4:34 AM, Lennart Poettering wrote: > This is explicitly not supported by epoll, as discussed earlier. You > should get an EEXIST if you try to do this, and rightfully so. Yes, but I only truly understood what you meant after having failure as the teacher (and then fixing i

Re: [systemd-devel] [PATCH] Add sabridge for socket activation of traditional daemons

2013-10-16 Thread Kay Sievers
On Tue, Oct 15, 2013 at 2:58 AM, David Strauss wrote: > On Mon, Oct 14, 2013 at 5:53 PM, Kay Sievers wrote: >> Please give it a name a human can parse and pronounce. :) > > sa-bridge? act-bridge? other suggestions? We really should avoid non-obvious or not commonly used abbreviations. Neither s

[systemd-devel] moving from SysV to systemd - issue with / being ro

2013-10-16 Thread Warpme
Hi, I want to switch init system from SysV to systemd-196. Sys is PXE booted disk-less appliance with rootfs based on overlayfs. Currently I can PXEboot, successfully switch root from initrd to overlayfs based root, systemd starts and executes many of it's units. Unfortunately user units are fa

Re: [systemd-devel] moving from SysV to systemd - issue with / being ro

2013-10-16 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 16, 2013 at 06:18:12PM +0200, Warpme wrote: > Hi, > I want to switch init system from SysV to systemd-196. > Sys is PXE booted disk-less appliance with rootfs based on overlayfs. > > Currently I can PXEboot, successfully switch root from initrd to > overlayfs based root, systemd starts

Re: [systemd-devel] moving from SysV to systemd - issue with / being ro

2013-10-16 Thread Warpme
On 10/16/13 7:02 PM, Zbigniew Jędrzejewski-Szmek wrote: On Wed, Oct 16, 2013 at 06:18:12PM +0200, Warpme wrote: Hi, I want to switch init system from SysV to systemd-196. Sys is PXE booted disk-less appliance with rootfs based on overlayfs. Currently I can PXEboot, successfully switch root from

Re: [systemd-devel] moving from SysV to systemd - issue with / being ro

2013-10-16 Thread Reindl Harald
Am 16.10.2013 19:22, schrieb Warpme: > On 10/16/13 7:02 PM, Zbigniew Jędrzejewski-Szmek wrote: >> On Wed, Oct 16, 2013 at 06:18:12PM +0200, Warpme wrote: >>> Hi, >>> I want to switch init system from SysV to systemd-196. >>> Sys is PXE booted disk-less appliance with rootfs based on overlayfs. >>

Re: [systemd-devel] moving from SysV to systemd - issue with / being ro

2013-10-16 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 16, 2013 at 07:22:28PM +0200, Warpme wrote: > On 10/16/13 7:02 PM, Zbigniew Jędrzejewski-Szmek wrote: > >On Wed, Oct 16, 2013 at 06:18:12PM +0200, Warpme wrote: > >>Hi, > >>I want to switch init system from SysV to systemd-196. > >>Sys is PXE booted disk-less appliance with rootfs based

Re: [systemd-devel] moving from SysV to systemd - issue with / being ro

2013-10-16 Thread Warpme
On 10/16/13 7:40 PM, Zbigniew Jędrzejewski-Szmek wrote: On Wed, Oct 16, 2013 at 07:22:28PM +0200, Warpme wrote: On 10/16/13 7:02 PM, Zbigniew Jędrzejewski-Szmek wrote: On Wed, Oct 16, 2013 at 06:18:12PM +0200, Warpme wrote: Hi, I want to switch init system from SysV to systemd-196. Sys is PXE

Re: [systemd-devel] moving from SysV to systemd - issue with / being ro

2013-10-16 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 16, 2013 at 08:31:02PM +0200, Warpme wrote: > Zbyszku, > I add remount just after pivot_root. No change. > I don't get one thing: why exactly such script works OK for SysV ? > If it works for SysV - it means script leaves / in rw mode. > So it leaves / in rw mode also for systemd (only

Re: [systemd-devel] moving from SysV to systemd - issue with / being ro

2013-10-16 Thread Warpme
On 10/16/13 9:02 PM, Zbigniew Jędrzejewski-Szmek wrote: On Wed, Oct 16, 2013 at 08:31:02PM +0200, Warpme wrote: Zbyszku, I add remount just after pivot_root. No change. I don't get one thing: why exactly such script works OK for SysV ? If it works for SysV - it means script leaves / in rw mode.

Re: [systemd-devel] [PATCH] Add sabridge for socket activation of traditional daemons

2013-10-16 Thread David Strauss
On Wed, Oct 16, 2013 at 6:59 AM, Kay Sievers wrote: > Also this thing does not actually *activate* anything it just proxies. I was going more for socket *activated* proxy, in the sense that the proxy uses socket activation to get its listen() fd. > And long-running processes should get a d(aemon

Re: [systemd-devel] moving from SysV to systemd - issue with / being ro

2013-10-16 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 16, 2013 at 09:19:43PM +0200, Warpme wrote: > Maybe we should disable [re]mounting / by systemd at all? All systemd does, is call 'mount -o remount /'. I have no idea how you end up with a read-only filesystem. As a work-around, you can add /etc/systemd/system/systemd-remount-fs.servic

Re: [systemd-devel] moving from SysV to systemd - issue with / being ro

2013-10-16 Thread Kay Sievers
On Wed, Oct 16, 2013 at 7:35 PM, Reindl Harald wrote: >> none / auto remount,rw 0 0 > > why "none" and "remount"? "none" because at the time fstab is read, / is already mounted; therefore the device already known. Specifying the root device in fstab is in most cases really pointless and makes st

Re: [systemd-devel] moving from SysV to systemd - issue with / being ro

2013-10-16 Thread Andrey Borzenkov
В Thu, 17 Oct 2013 00:07:55 +0200 Kay Sievers пишет: > > > typically the line looks like this > > UUID=b834776d-69d1-49c6-97c1-d6d758a438f0 / ext4 defaults > > > > i doubt that anything smells what "none" means > > It typically makes not much sense to specify the id of the rootfs in a > file s