From 3e4be9a122886c87da690e996b92d126fc5e7bf8 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 20 Apr 2022 07:51:58 +0200 Subject: [PATCH] man: document command line options, complementing bootparam(7) Signed-off-by: Joachim Wiberg --- man/finit.8 | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/man/finit.8 b/man/finit.8 index 436b716f..f0013ae1 100644 --- a/man/finit.8 +++ b/man/finit.8 @@ -12,9 +12,9 @@ .Sh SYNOPSIS .Nm /sbin/finit .Op -- -.Op finit.status=[on,off] -.Op finit.status_style=[classic,modern] .Op finit.debug +.Op finit.status= +.Op finit.status_style= .Op rescue | recover .Op single | S .Nm /sbin/telinit @@ -62,6 +62,46 @@ Plugin support for customization .It Proper rescue mode with bundled `sulogin` for protected maintenance shell .El +.Sh BOOTPARAM +.Nm +support the following command line parameters to alter the behavior +at boot. Notice the +.Cm -- +separator needed to tell the kernel which paramters should be given to +PID 1. For more information on this, and available kernel command line +options, see +.Xr bootparam 7 . +.Bl -tag -width pid -offset indent +.It Cm finit.debug +Enable Finit debug messages on system console and log. Sometimes useful +when doing board bringup. Before the system log daemon has started, +Finit use the kernel ring buffer, +.Pa /dev/kmsg . +.It Cm finit.status= +Control finit boot progress, including banner. This used to be called +.Cm finit.show_status , +which still works but is deprecated. +.It Cm finit.status_style= +Set Finit boot progress style, when enabled. +.It Cm rescue | recover +Start rescue/maintenance mode. If your system comes with the bundled +.Cm sulogin +program (Finit, or from util-linux/Busybox), you will be given a root +login to a maintenance shell. However, if +.Cm sulogin +is missing, the file +.Pa /lib/finit/rescue.conf +is read and the system booted in a limited fallback mode. See +.Xr finit.conf 5 +for more information. +.It Cm single | S +Single user mode, runlevel 1, in Finit. Useful to debug problems with +the regular runlevel. All services and TTYs in +.Cm [1] +will be started, e.g., a +.Cm tty [1] @console nologin +configuration presents you with a root console without login. +.El .Sh BOOTING .Pp Before laucnhing services, the system needs to be bootstrapped. This