[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] 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

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

2013-10-17 Thread Kay Sievers
On Thu, Oct 17, 2013 at 4:54 AM, Andrey Borzenkov wrote: > В 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 m

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

2013-10-17 Thread Warpme
On 10/16/13 9:46 PM, Zbigniew Jędrzejewski-Szmek wrote: 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,

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

2013-10-17 Thread Reindl Harald
Am 17.10.2013 14:59, schrieb Warpme: > On 10/16/13 9:46 PM, Zbigniew Jędrzejewski-Szmek wrote: >> 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 >>

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

2013-10-17 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Oct 17, 2013 at 02:59:37PM +0200, Warpme wrote: > On 10/16/13 9:46 PM, Zbigniew Jędrzejewski-Szmek wrote: > >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 ide

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

2013-10-17 Thread Colin Guthrie
'Twas brillig, and Warpme at 17/10/13 13:59 did gyre and gimble: > On 10/16/13 9:46 PM, Zbigniew Jędrzejewski-Szmek wrote: >> 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 ha

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

2013-10-17 Thread Warpme
On 10/17/13 4:27 PM, Colin Guthrie wrote: Perhaps a dumb question but are you 100% certain that systemd-remount-fs.service has been run? I've not seen any debug about it so far on this thread: systemctl status systemd-remount-fs.service Col Col, Console reports "Starting Remount Root and Ke

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

2013-10-17 Thread Colin Guthrie
'Twas brillig, and Warpme at 17/10/13 18:15 did gyre and gimble: > On 10/17/13 4:27 PM, Colin Guthrie wrote: >> Perhaps a dumb question but are you 100% certain that >> systemd-remount-fs.service has been run? I've not seen any debug about >> it so far on this thread: >> >> systemctl status systemd

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

2013-10-17 Thread Warpme
On 10/17/13 7:59 PM, Colin Guthrie wrote: 'Twas brillig, and Warpme at 17/10/13 18:15 did gyre and gimble: On 10/17/13 4:27 PM, Colin Guthrie wrote: Perhaps a dumb question but are you 100% certain that systemd-remount-fs.service has been run? I've not seen any debug about it so far on this thr

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

2013-10-17 Thread Reindl Harald
Am 17.10.2013 21:25, schrieb Warpme: > So summarizing: > 1.systemd-remount-fs.service status from boot sequence is OK - but / is ro > 2.starting /usr/lib/systemd/systemd-remount-fs switches / to rw > 3.systemctl restart systemd-remount-fs.service switches / to rw > > Console output from 1 & 3 is

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

2013-10-17 Thread Colin Guthrie
'Twas brillig, and Warpme at 17/10/13 20:25 did gyre and gimble: > On 10/17/13 7:59 PM, Colin Guthrie wrote: >> 'Twas brillig, and Warpme at 17/10/13 18:15 did gyre and gimble: >>> On 10/17/13 4:27 PM, Colin Guthrie wrote: Perhaps a dumb question but are you 100% certain that systemd-remo

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

2013-10-18 Thread Jan Engelhardt
On Thursday 2013-10-17 22:16, Colin Guthrie wrote: > Perhaps a dumb question but are you 100% certain that > systemd-remount-fs.service has been run? I've not seen any debug about > it so far on this thread: [lots of prose] > >That said, as the tool worked properly, it would seem that