Re: s6-linux-init, alpine linux, and initramfs

2017-02-01 Thread Casper Ti. Vector
Oh, now I understand what you and Laurent meant: apart from `/proc/cmdline', the kernel also exports its boot parameters (except for `root=...', parameters without a value and possibly something else) into the environment of the init process. This is really useful when not all parameters need to

Re: s6-linux-init, alpine linux, and initramfs

2017-01-31 Thread Casper Ti. Vector
On Tue, Jan 31, 2017 at 09:35:55PM +, Laurent Bercot wrote: > It won't do it in every case: parsing /proc/cmdline is hazardous and > much more difficult than it appears. (There could be quotes, and quoted > spaces, in the elements.) We had a discussion about this on the Alpine > development

Re: s6-linux-init, alpine linux, and initramfs

2017-01-31 Thread Laurent Bercot
I had to mount /dev and to resort to busybox's switch_root because the one built using execline tools had trouble executing. Despite using executables from the actual root filesystem, it had issue spawing tools at some point in the loop. I guess this is because they are not statically

s6-linux-init, alpine linux, and initramfs

2017-01-30 Thread Guillaume Perréal
Hello there, Me again. After tweaking my Xsession for a stater, I am trying to build a VM with s6-linux-init. I am starting from Alpine Linux, because I am not into recompiling Linux and all tools from scratch (well, not yet) and this distro already provides binaries for all skarnet tools.