3 ms·
where do you set variables on pid1 ? I dont fully get this use case yet..
by sigmonsays 4y ago
where do you set variables on pid1 ?
I dont fully get this use case yet..
- pxx 4y agoDocker.
- sigjuice 4y agoOr the kernel command line https://www.kernel.org/doc/html/v5.15/admin-guide/kernel-parameters.html https://www.kernel.org/doc/html/v5.15/admin-guide/kernel-par... parameters with ‘=’ go into init’s environment
- chatmasta 4y agoIt's pretty niche (and hacky). My use case is debugging CI runners by connecting to them via a reverse shell [0]. I want to manually run CI commands, but my reverse shell drops me into a new process without any of the same environment variables available to it that are made available by the CI platform to the runner. So I wanted a command I could paste to quickly inherit those environment variables and run the CI scripts that depend on them. [0] https://github.com/milesrichardson/shonion https://github.com/milesrichardson/shonion