1999-04-18 09:21:12 +00:00
|
|
|
.\" Copyright (c) 1999 Daniel C. Sobral
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1999-08-28 01:08:13 +00:00
|
|
|
.\" $FreeBSD$
|
2005-11-15 21:26:49 +00:00
|
|
|
.Dd November 15, 2005
|
1999-04-18 09:21:12 +00:00
|
|
|
.Dt LOADER.CONF 5
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm loader.conf
|
2004-02-15 00:42:08 +00:00
|
|
|
.Nd "system bootstrap configuration information"
|
1999-04-18 09:21:12 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The file
|
|
|
|
.Nm
|
2004-02-15 00:42:08 +00:00
|
|
|
contains descriptive information on bootstrapping the system.
|
|
|
|
Through
|
1999-04-18 09:21:12 +00:00
|
|
|
it you can specify the kernel to be booted, parameters to be passed to
|
2002-08-27 01:01:31 +00:00
|
|
|
it, and additional modules to be loaded; and generally set all variables
|
1999-04-18 09:21:12 +00:00
|
|
|
described in
|
|
|
|
.Xr loader 8 .
|
|
|
|
.Pp
|
|
|
|
The file
|
|
|
|
.Pa /boot/loader.rc
|
1999-05-13 14:53:13 +00:00
|
|
|
must contain the following two lines for
|
1999-04-18 09:21:12 +00:00
|
|
|
.Nm
|
|
|
|
to be automatically processed:
|
|
|
|
.Pp
|
|
|
|
.Dl include /boot/loader.4th
|
|
|
|
.Dl start
|
|
|
|
.Pp
|
|
|
|
If no
|
|
|
|
.Pa /boot/loader.rc
|
|
|
|
exists at installworld time, one with the above lines will be installed.
|
|
|
|
.Sh SYNTAX
|
|
|
|
Though
|
2000-11-20 17:05:46 +00:00
|
|
|
.Nm Ns 's
|
1999-04-18 09:21:12 +00:00
|
|
|
format was defined explicitly to resemble
|
1999-08-18 05:55:22 +00:00
|
|
|
.Xr rc.conf 5 ,
|
1999-04-18 09:21:12 +00:00
|
|
|
and can be sourced by
|
|
|
|
.Xr sh 1 ,
|
2004-02-15 00:42:08 +00:00
|
|
|
some settings are treated in a special fashion.
|
|
|
|
Also, the
|
2002-08-27 01:02:56 +00:00
|
|
|
behavior of some settings is defined by the setting's suffix;
|
|
|
|
the prefix identifies which module the setting controls.
|
1999-04-18 09:21:12 +00:00
|
|
|
.Pp
|
|
|
|
The general parsing rules are:
|
|
|
|
.Bl -bullet
|
|
|
|
.It
|
|
|
|
Spaces and empty lines are ignored.
|
|
|
|
.It
|
2001-05-22 00:29:42 +00:00
|
|
|
A # sign will mark the remainder of the line as a comment.
|
1999-04-18 09:21:12 +00:00
|
|
|
.It
|
|
|
|
Only one setting can be present on each line.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
All settings have the following format:
|
|
|
|
.Pp
|
|
|
|
.Dl variable="value"
|
|
|
|
.Pp
|
|
|
|
Unless it belongs to one of the classes of settings that receive special
|
|
|
|
treatment, a setting will set the value of a
|
2002-08-27 01:01:31 +00:00
|
|
|
.Xr loader 8
|
2004-02-15 00:42:08 +00:00
|
|
|
environment variable.
|
|
|
|
The settings that receive special
|
|
|
|
treatment are listed below.
|
|
|
|
Settings beginning with
|
1999-04-18 09:21:12 +00:00
|
|
|
.Qq *
|
2002-08-27 01:01:31 +00:00
|
|
|
below define the modules to be loaded and
|
2002-08-27 01:02:56 +00:00
|
|
|
may have any prefix; the prefix identifies a module.
|
|
|
|
All such settings sharing a common
|
1999-04-18 09:21:12 +00:00
|
|
|
prefix refer to the same module.
|
|
|
|
.Bl -tag -width Ar
|
|
|
|
.It Ar exec
|
|
|
|
Immediately executes a
|
|
|
|
.Xr loader 8
|
2004-02-15 00:42:08 +00:00
|
|
|
command.
|
|
|
|
This type of setting cannot be processed by programs other
|
1999-04-18 09:21:12 +00:00
|
|
|
than
|
|
|
|
.Xr loader 8 ,
|
2004-02-15 00:42:08 +00:00
|
|
|
so its use should be avoided.
|
|
|
|
Multiple instances of it will be processed
|
1999-04-18 09:21:12 +00:00
|
|
|
independently.
|
|
|
|
.It Ar loader_conf_files
|
|
|
|
Defines additional configuration files to be processed right after the
|
|
|
|
present file.
|
|
|
|
.It Ar kernel
|
2004-02-15 00:42:08 +00:00
|
|
|
Name of the kernel to be loaded.
|
|
|
|
If no kernel name is set, no additional
|
1999-04-18 09:21:12 +00:00
|
|
|
modules will be loaded.
|
|
|
|
.It Ar kernel_options
|
|
|
|
Flags to be passed to the kernel.
|
1999-11-24 17:56:40 +00:00
|
|
|
.It Ar password
|
2002-08-27 01:01:31 +00:00
|
|
|
Provides a password to be required by check-password before execution is
|
1999-11-24 17:56:40 +00:00
|
|
|
allowed to continue.
|
1999-04-18 09:21:12 +00:00
|
|
|
.It Ar verbose_loading
|
|
|
|
If set to
|
|
|
|
.Dq YES ,
|
2002-08-27 01:01:31 +00:00
|
|
|
module names will be displayed as they are loaded.
|
1999-04-18 09:21:12 +00:00
|
|
|
.It Ar *_load
|
|
|
|
If set to
|
|
|
|
.Dq YES ,
|
2004-02-15 00:42:08 +00:00
|
|
|
that module will be loaded.
|
|
|
|
If no name is defined (see below), the
|
1999-04-18 09:21:12 +00:00
|
|
|
module's name is taken to be the same as the prefix.
|
|
|
|
.It Ar *_name
|
|
|
|
Defines the name of the module.
|
|
|
|
.It Ar *_type
|
2004-02-15 00:42:08 +00:00
|
|
|
Defines the module's type.
|
|
|
|
If none is given, it defaults to a kld module.
|
1999-04-18 09:21:12 +00:00
|
|
|
.It Ar *_flags
|
|
|
|
Flags and parameters to be passed to the module.
|
|
|
|
.It Ar *_before
|
2004-02-15 00:42:08 +00:00
|
|
|
Commands to be executed before the module is loaded.
|
|
|
|
Use of this setting
|
1999-04-18 09:21:12 +00:00
|
|
|
should be avoided.
|
|
|
|
.It Ar *_after
|
2004-02-15 00:42:08 +00:00
|
|
|
Commands to be executed after the module is loaded.
|
|
|
|
Use of this setting
|
1999-04-18 09:21:12 +00:00
|
|
|
should be avoided.
|
|
|
|
.It Ar *_error
|
2004-02-15 00:42:08 +00:00
|
|
|
Commands to be executed if the loading of a module fails.
|
|
|
|
Except for the
|
1999-04-18 09:21:12 +00:00
|
|
|
special value
|
|
|
|
.Dq abort ,
|
|
|
|
which aborts the bootstrap process, use of this setting should be avoided.
|
|
|
|
.El
|
2004-02-14 03:17:30 +00:00
|
|
|
.Pp
|
|
|
|
.Em WARNING:
|
|
|
|
developers should never use these suffixes for any kernel environment
|
|
|
|
variables (tunables) or conflicts will result.
|
1999-04-18 09:21:12 +00:00
|
|
|
.Sh DEFAULT SETTINGS
|
|
|
|
Most of
|
2000-11-20 17:05:46 +00:00
|
|
|
.Nm Ns 's
|
2004-02-15 00:42:08 +00:00
|
|
|
default settings can be ignored.
|
|
|
|
The few of them which are important
|
1999-04-18 09:21:12 +00:00
|
|
|
or useful are:
|
|
|
|
.Bl -tag -width bootfile -offset indent
|
|
|
|
.It Va bitmap_load
|
|
|
|
.Pq Dq NO
|
|
|
|
If set to
|
|
|
|
.Dq YES ,
|
|
|
|
a bitmap will be loaded to be displayed on screen while booting.
|
|
|
|
.It Va bitmap_name
|
2004-02-15 00:42:08 +00:00
|
|
|
.Pq Dq Pa /boot/splash.bmp
|
|
|
|
Name of the bitmap to be loaded.
|
|
|
|
Any other name can be used.
|
2005-08-18 01:39:43 +00:00
|
|
|
.It Va comconsole_speed
|
2005-11-18 10:36:29 +00:00
|
|
|
.Dq ( 9600
|
2005-08-18 01:39:43 +00:00
|
|
|
or the value of the
|
|
|
|
.Va BOOT_COMCONSOLE_SPEED
|
|
|
|
variable when
|
|
|
|
.Xr loader 8
|
2005-11-18 10:36:29 +00:00
|
|
|
was compiled).
|
2005-08-18 01:39:43 +00:00
|
|
|
Sets the speed of the serial console.
|
|
|
|
If the previous boot loader stage specified that a serial console
|
|
|
|
is in use then the default speed is determined from the current
|
|
|
|
serial port speed setting.
|
2001-11-27 20:37:40 +00:00
|
|
|
.It Va console
|
|
|
|
.Pq Dq vidconsole
|
|
|
|
.Dq comconsole
|
2002-03-13 10:55:22 +00:00
|
|
|
selects serial console,
|
2001-11-27 20:37:40 +00:00
|
|
|
.Dq vidconsole
|
2002-03-13 10:55:22 +00:00
|
|
|
selects the video console, and
|
|
|
|
.Dq nullconsole
|
|
|
|
selects a mute console
|
|
|
|
(useful for systems with neither a video console nor a serial port).
|
1999-04-18 09:21:12 +00:00
|
|
|
.It Va kernel
|
2004-02-15 00:42:08 +00:00
|
|
|
.Pq Dq Pa /boot/kernel/kernel
|
1999-04-18 09:21:12 +00:00
|
|
|
.It Va loader_conf_files
|
2004-05-16 22:51:36 +00:00
|
|
|
.Pq Dq Pa /boot/loader.conf /boot/loader.conf.local
|
1999-04-18 09:21:12 +00:00
|
|
|
.It Va splash_bmp_load
|
|
|
|
.Pq Dq NO
|
|
|
|
If set to
|
|
|
|
.Dq YES ,
|
2002-08-27 01:01:31 +00:00
|
|
|
will load the splash screen module, making it possible to display a bmp image
|
1999-11-26 08:09:04 +00:00
|
|
|
on the screen while booting.
|
|
|
|
.It Va splash_pcx_load
|
|
|
|
.Pq Dq NO
|
|
|
|
If set to
|
|
|
|
.Dq YES ,
|
2002-08-27 01:01:31 +00:00
|
|
|
will load the splash screen module, making it possible to display a pcx image
|
1999-04-18 09:21:12 +00:00
|
|
|
on the screen while booting.
|
|
|
|
.It Va vesa_load
|
|
|
|
.Pq Dq NO
|
|
|
|
If set to
|
|
|
|
.Dq YES ,
|
|
|
|
the vesa module will be loaded, enabling bitmaps above VGA resolution to
|
|
|
|
be displayed.
|
2005-11-15 21:26:49 +00:00
|
|
|
.It Va beastie_disable
|
2004-11-07 17:01:08 +00:00
|
|
|
If set to
|
|
|
|
.Dq YES ,
|
2005-11-15 21:26:49 +00:00
|
|
|
the beastie boot menu will be skipped.
|
|
|
|
.It Va loader_logo Pq Dq Li fbsdbw
|
|
|
|
Selects a desired logo in the beastie boot menu.
|
|
|
|
Possible values are:
|
|
|
|
.Dq Li fbsdbw ,
|
|
|
|
.Dq Li beastiebw ,
|
|
|
|
.Dq Li beastie ,
|
|
|
|
and
|
|
|
|
.Dq Li none .
|
1999-04-18 09:21:12 +00:00
|
|
|
.El
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /boot/defaults/loader.conf -compact
|
|
|
|
.It Pa /boot/defaults/loader.conf
|
|
|
|
default settings -- do not change this file.
|
|
|
|
.It Pa /boot/loader.4th
|
|
|
|
defines the commands used by loader to read and process
|
2000-11-20 17:05:46 +00:00
|
|
|
.Nm .
|
1999-04-18 09:21:12 +00:00
|
|
|
.It Pa /boot/loader.conf
|
|
|
|
user defined settings.
|
|
|
|
.It Pa /boot/loader.conf.local
|
|
|
|
machine-specific settings for sites with a common loader.conf.
|
|
|
|
.It Pa /boot/loader.rc
|
|
|
|
contains the instructions to automatically process
|
2000-11-20 17:05:46 +00:00
|
|
|
.Nm .
|
1999-04-18 09:21:12 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr boot 8 ,
|
|
|
|
.Xr loader 8 ,
|
2000-11-15 17:02:54 +00:00
|
|
|
.Xr loader.4th 8
|
1999-04-18 09:21:12 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The file
|
|
|
|
.Nm
|
|
|
|
first appeared in
|
|
|
|
.Fx 3.2 .
|
|
|
|
.Sh AUTHORS
|
|
|
|
This manual page was written by
|
|
|
|
.An Daniel C. Sobral Aq dcs@FreeBSD.org .
|