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

From: Casper Ti. Vector <caspervector_at_gmail.com>
Date: Wed, 1 Feb 2017 18:33:26 +0800

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 be scanned, which is often the case.

On Wed, Feb 01, 2017 at 10:11:12AM +0100, Guillaume Perréal wrote:
> For my tests, I used the following snippet as an init script:
>
> #!/bin/execlineb -p
> foreground { /usr/bin/s6-printenv }
> /bin/sh
>
> Neither execlineb nor s6-printenv touch the environment. Yet, I had
> "modules" and "initrd" variables (which are in the kernel command line)
> but not the "root" one.

-- 
My current OpenPGP key:
RSA4096/0x227E8CAAB7AA186C (expires: 2020.10.19)
7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C
Received on Wed Feb 01 2017 - 10:33:26 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC