diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2018-08-14 11:01:52 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2018-08-14 11:01:52 +0000 |
commit | 335fe94f907864b647160ab616d8caa91a983287 (patch) | |
tree | b7ece28387eec7fd447525e046d145b770180197 /stand/man | |
parent | 398810619cb32abf349f8de23f29510b2ee0839b (diff) | |
download | src-test-335fe94f907864b647160ab616d8caa91a983287.tar.gz src-test-335fe94f907864b647160ab616d8caa91a983287.zip |
Add init_exec kenv(1) variable, to make init(8) execute a file
after opening the console, replacing init as PID 1.
From the user point of view, it makes it possible to run eg the
shell as PID 1, using 'set init_exec=/bin/sh' at the loader(8)
prompt.
Reviewed by: kib
MFC after: 2 weeks
Relnotes: yes
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D16625
Notes
Notes:
svn path=/head/; revision=337740
Diffstat (limited to 'stand/man')
-rw-r--r-- | stand/man/loader.8 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/stand/man/loader.8 b/stand/man/loader.8 index 0b9a2a2fe1d76..374b6ee0d9d67 100644 --- a/stand/man/loader.8 +++ b/stand/man/loader.8 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 13, 2018 +.Dd August 14, 2018 .Dt LOADER 8 .Os .Sh NAME @@ -492,6 +492,9 @@ of boot to be captured. .It Va init_chroot See .Xr init 8 . +.It Va init_exec +See +.Xr init 8 . .It Va init_path Sets the list of binaries which the kernel will try to run as the initial process. |