Re: s6 init-stage1

2015-01-06 Thread Colin Booth
On Mon, Jan 5, 2015 at 5:03 PM, James Powell james4...@hotmail.com wrote: The initial init bootscript that I'm currently drafting is in execline using the template provided by Laurent. I was going to take the advice on using /bin/sh rather than /bin/execlineb but I recanted that decision due

Re: s6 init-stage1

2015-01-06 Thread Laurent Bercot
On 06/01/2015 09:00, Colin Booth wrote: 1. Depending on your initramfs and your on-disk layout you can skip mounting proc and sys. I know this is the case with Debian, probably true elsewhere as well. It all depends on the assumptions that init-stage2 makes, but yes, now that you're

Re: s6 init-stage1

2015-01-06 Thread Peter Pentchev
On Tue, Jan 06, 2015 at 01:02:46PM +0100, Laurent Bercot wrote: On 06/01/2015 09:00, Colin Booth wrote: [snip] 5. I made a few more classes of services for init-stage2 to copy into the service directory. Specifically for things that I wanted running ASAP and were udev agnostic. Those were:

Re: s6 init-stage1

2015-01-06 Thread Laurent Bercot
On 06/01/2015 13:12, Peter Pentchev wrote: Even better: most modern systems have a tsort(1) utility for this kind of topological sorting; BSD-derived systems have had it for ages. Interesting. Thanks for the heads-up - I had heard of tsort, but didn't know exactly what it does. However, I'd

Re: s6 init-stage1

2015-01-06 Thread Avery Payne
On Tue, Jan 6, 2015 at 4:02 AM, Laurent Bercot ska-supervis...@skarnet.org wrote: I very much dislike having / read-write. In desktops or other systems where /etc is not really static, it is unfortunately unavoidable (unless symlinks to /var are made, for instance /etc/resolv.conf should be

Re: s6 init-stage1

2015-01-06 Thread post-sysv
On 01/06/2015 07:48 AM, Laurent Bercot wrote: Interesting. Thanks for the heads-up - I had heard of tsort, but didn't know exactly what it does. However, I'd like a tool that knows what steps it can parallelize. A sequential output is great for functions name in a piece of code, but for

Execline: was s6 init-stage1

2015-01-06 Thread Steve Litt
On Tue, 06 Jan 2015 04:28:59 +0100 Laurent Bercot ska-supervis...@skarnet.org wrote: Far be it from me to discourage you from your noble quest ! But you could write it in sh and just use the 'redirfd' command from execline, which does the FIFO magic. I read the documentation of execline,

RE: s6 init-stage1

2015-01-06 Thread James Powell
init-stage1 On 01/06/2015 07:48 AM, Laurent Bercot wrote: Interesting. Thanks for the heads-up - I had heard of tsort, but didn't know exactly what it does. However, I'd like a tool that knows what steps it can parallelize. A sequential output is great for functions name in a piece of code

Re: s6 init-stage1

2015-01-06 Thread Colin Booth
On Tue, Jan 6, 2015 at 6:27 AM, Avery Payne avery.p.pa...@gmail.com wrote: On Tue, Jan 6, 2015 at 4:02 AM, Laurent Bercot ska-supervis...@skarnet.org wrote: But on servers and embedded systems, / should definitely be read-only. Having it read-write makes it susceptible to filesystem

Re: s6 init-stage1

2015-01-05 Thread Laurent Bercot
On 06/01/2015 02:03, James Powell wrote: The initial init bootscript that I'm currently drafting is in execline using the template provided by Laurent. I was going to take the advice on using /bin/sh rather than /bin/execlineb but I recanted that decision due to the fact I wanted the using the