1999-04-24 17:25:35 +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$
|
1999-04-24 17:25:35 +00:00
|
|
|
.\"
|
2013-11-04 20:28:10 +00:00
|
|
|
.Dd October 17, 2013
|
1999-04-24 17:25:35 +00:00
|
|
|
.Dt LOADER.4TH 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm loader.4th
|
|
|
|
.Nd loader.conf processing tools
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The file that goes by the name of
|
|
|
|
.Nm
|
|
|
|
is a set of commands designed to manipulate
|
|
|
|
.Xr loader.conf 5
|
2002-08-13 15:09:33 +00:00
|
|
|
files.
|
|
|
|
The default
|
1999-04-24 17:25:35 +00:00
|
|
|
.Pa /boot/loader.rc
|
|
|
|
includes
|
|
|
|
.Nm
|
2002-05-30 09:24:01 +00:00
|
|
|
and uses one of its commands to automatically read and process
|
1999-04-24 17:25:35 +00:00
|
|
|
the standard
|
|
|
|
.Xr loader.conf 5
|
2002-08-13 15:09:33 +00:00
|
|
|
files.
|
|
|
|
Other commands exists to help the user specify alternate
|
1999-04-24 17:25:35 +00:00
|
|
|
configurations.
|
|
|
|
.Pp
|
|
|
|
The commands of
|
|
|
|
.Nm
|
2002-08-13 15:09:33 +00:00
|
|
|
by themselves are not enough for most uses.
|
|
|
|
Please refer to the
|
1999-04-24 17:25:35 +00:00
|
|
|
examples below for the most common situations, and to
|
|
|
|
.Xr loader 8
|
|
|
|
for additional commands.
|
|
|
|
.Pp
|
|
|
|
Before using any of the commands provided in
|
2002-08-13 15:09:33 +00:00
|
|
|
.Nm ,
|
1999-04-24 17:25:35 +00:00
|
|
|
it must be included
|
|
|
|
through the command:
|
|
|
|
.Pp
|
|
|
|
.Dl include loader.4th
|
|
|
|
.Pp
|
2002-05-30 09:24:01 +00:00
|
|
|
This line is present in the default
|
1999-04-24 17:25:35 +00:00
|
|
|
.Pa /boot/loader.rc
|
2005-02-13 22:25:33 +00:00
|
|
|
file, so it is not needed (and should not be re-issued) in a normal setup.
|
1999-04-24 17:25:35 +00:00
|
|
|
.Pp
|
|
|
|
The commands provided by it are:
|
2000-09-08 21:39:31 +00:00
|
|
|
.Bl -tag -width disable-module_module -compact -offset indent
|
|
|
|
.It Ic boot
|
|
|
|
.It Ic boot Ar kernelname Op Cm ...
|
|
|
|
.It Ic boot Ar directory Op Cm ...
|
|
|
|
.It Ic boot Fl flag Cm ...
|
1999-04-24 17:25:35 +00:00
|
|
|
Boot as specified by the
|
|
|
|
.Xr loader.conf 5
|
2000-09-08 21:39:31 +00:00
|
|
|
files read.
|
|
|
|
.Pp
|
|
|
|
Depending on the arguments passed, it can override boot flags and
|
|
|
|
either the kernel name or the search path for kernel and modules.
|
|
|
|
.Pp
|
|
|
|
.It Ic boot-conf
|
|
|
|
.It Ic boot-conf Ar kernelname Op Cm ...
|
|
|
|
.It Ic boot-conf Ar directory Op Cm ...
|
|
|
|
.It Ic boot-conf Fl flag Cm ...
|
|
|
|
Works like
|
|
|
|
.Ic boot
|
|
|
|
described above, but instead of booting immediately, uses
|
1999-04-24 17:25:35 +00:00
|
|
|
.Ic autoboot ,
|
|
|
|
so it can be stopped.
|
2000-09-08 21:39:31 +00:00
|
|
|
.Pp
|
1999-04-24 17:25:35 +00:00
|
|
|
.It Ic start
|
|
|
|
Reads
|
|
|
|
.Pa /boot/defaults/loader.conf ,
|
|
|
|
all other
|
|
|
|
.Xr loader.conf 5
|
2013-11-04 20:28:10 +00:00
|
|
|
files specified in it, then loads the desired kernel and modules
|
|
|
|
.Pq if not already loaded .
|
|
|
|
After which you can use the
|
|
|
|
.Ic boot
|
|
|
|
or
|
|
|
|
.Ic autoboot
|
|
|
|
commmands or simply exit (provided
|
|
|
|
.Va autoboot_delay
|
|
|
|
is not set to NO) to boot the system.
|
|
|
|
.Ic start
|
2002-05-30 09:24:01 +00:00
|
|
|
is the command used in the default
|
1999-04-24 17:25:35 +00:00
|
|
|
.Pa /boot/loader.rc
|
2013-11-04 20:28:10 +00:00
|
|
|
file
|
|
|
|
.Pq see Xr loader 8 .
|
2000-09-08 21:39:31 +00:00
|
|
|
.Pp
|
1999-05-14 18:59:27 +00:00
|
|
|
.It Ic initialize
|
2013-11-04 20:28:10 +00:00
|
|
|
Initialize the support library so commands can be used without executing
|
1999-05-14 18:59:27 +00:00
|
|
|
.Ic start
|
2002-08-13 15:09:33 +00:00
|
|
|
first.
|
|
|
|
Like
|
1999-05-14 18:59:27 +00:00
|
|
|
.Ic start ,
|
2013-11-04 20:28:10 +00:00
|
|
|
it reads
|
1999-05-14 18:59:27 +00:00
|
|
|
.Pa /boot/defaults/loader.conf
|
|
|
|
and all other
|
|
|
|
.Xr loader.conf 5
|
2013-11-04 20:28:10 +00:00
|
|
|
files specified in it
|
|
|
|
.Pq but does not load kernel or modules .
|
2002-08-13 15:09:33 +00:00
|
|
|
Returns a flag on the stack to indicate
|
2013-11-04 20:28:10 +00:00
|
|
|
if any configuration files were successfully loaded.
|
2000-09-08 21:39:31 +00:00
|
|
|
.Pp
|
1999-04-24 17:25:35 +00:00
|
|
|
.It Ic read-conf Ar filename
|
|
|
|
Reads and processes a
|
|
|
|
.Xr loader.conf 5
|
2002-08-13 15:09:33 +00:00
|
|
|
file.
|
|
|
|
Does not proceed to boot.
|
2000-09-08 21:39:31 +00:00
|
|
|
.Pp
|
1999-04-24 17:25:35 +00:00
|
|
|
.It Ic enable-module Ar module
|
|
|
|
Enables the loading of
|
|
|
|
.Ar module .
|
2000-09-08 21:39:31 +00:00
|
|
|
.Pp
|
1999-04-24 17:25:35 +00:00
|
|
|
.It Ic disable-module Ar module
|
|
|
|
Disables the loading of
|
|
|
|
.Ar module .
|
2000-09-08 21:39:31 +00:00
|
|
|
.Pp
|
1999-04-24 17:25:35 +00:00
|
|
|
.It Ic toggle-module Ar module
|
|
|
|
Toggles the loading of
|
|
|
|
.Ar module
|
|
|
|
on and off.
|
2000-09-08 21:39:31 +00:00
|
|
|
.Pp
|
1999-04-24 17:25:35 +00:00
|
|
|
.It Ic show-module Ar module
|
|
|
|
Shows the information gathered in the
|
|
|
|
.Xr loader.conf 5
|
|
|
|
files about the module
|
|
|
|
.Ar module .
|
2000-09-08 21:39:31 +00:00
|
|
|
.Pp
|
1999-04-24 17:25:35 +00:00
|
|
|
.It Ic retry
|
|
|
|
Used inside
|
|
|
|
.Xr loader.conf 5
|
|
|
|
files to specify the action after a module loading fails.
|
2000-09-08 21:39:31 +00:00
|
|
|
.Pp
|
1999-04-24 17:25:35 +00:00
|
|
|
.It Ic ignore
|
|
|
|
Used inside
|
|
|
|
.Xr loader.conf 5
|
|
|
|
files to specify the action after a module loading fails.
|
|
|
|
.El
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /boot/loader.4th -compact
|
|
|
|
.It Pa /boot/loader
|
|
|
|
The
|
|
|
|
.Xr loader 8 .
|
|
|
|
.It Pa /boot/loader.4th
|
|
|
|
.Nm
|
|
|
|
itself.
|
|
|
|
.It Pa /boot/loader.rc
|
|
|
|
.Xr loader 8
|
|
|
|
bootstrapping script.
|
|
|
|
.It Pa /boot/defaults/loader.conf
|
|
|
|
File loaded by the
|
|
|
|
.Ic start
|
|
|
|
command.
|
|
|
|
.El
|
|
|
|
.Sh EXAMPLES
|
|
|
|
Standard
|
|
|
|
.Pa /boot/loader.rc :
|
|
|
|
.Pp
|
|
|
|
.Bd -literal -offset indent -compact
|
|
|
|
include /boot/loader.4th
|
|
|
|
start
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2002-05-30 09:24:01 +00:00
|
|
|
Load a different kernel with the standard configuration:
|
1999-04-24 17:25:35 +00:00
|
|
|
.Pp
|
|
|
|
.Bd -literal -offset indent -compact
|
2004-09-30 21:48:51 +00:00
|
|
|
set kernel="kernel.old"
|
1999-04-24 17:25:35 +00:00
|
|
|
unload
|
|
|
|
boot-conf
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2002-05-30 09:24:01 +00:00
|
|
|
Read an additional configuration file and then proceed to boot:
|
1999-04-24 17:25:35 +00:00
|
|
|
.Pp
|
|
|
|
.Bd -literal -offset indent -compact
|
|
|
|
unload
|
|
|
|
read-conf /boot/special.conf
|
|
|
|
boot-conf
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Disable the loading of the splash screen module and bitmap and then
|
2002-05-30 09:24:01 +00:00
|
|
|
proceed to boot:
|
1999-04-24 17:25:35 +00:00
|
|
|
.Pp
|
2000-11-20 17:05:46 +00:00
|
|
|
.Bd -literal -offset indent -compact
|
1999-04-24 17:25:35 +00:00
|
|
|
unload
|
|
|
|
disable-module splash_bmp
|
|
|
|
disable-module bitmap
|
|
|
|
boot-conf
|
|
|
|
.Ed
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr loader.conf 5 ,
|
|
|
|
.Xr loader 8
|
|
|
|
.Sh HISTORY
|
2002-07-14 15:21:28 +00:00
|
|
|
The
|
1999-04-24 17:25:35 +00:00
|
|
|
.Nm
|
2002-07-14 15:21:28 +00:00
|
|
|
set of commands first appeared in
|
1999-04-24 17:25:35 +00:00
|
|
|
.Fx 3.2 .
|
|
|
|
.Sh AUTHORS
|
2002-07-14 15:21:28 +00:00
|
|
|
The
|
1999-04-24 17:25:35 +00:00
|
|
|
.Nm
|
2002-07-14 15:21:28 +00:00
|
|
|
set of commands was written by
|
2001-08-13 16:33:00 +00:00
|
|
|
.An Daniel C. Sobral Aq dcs@FreeBSD.org .
|
1999-04-24 17:25:35 +00:00
|
|
|
.Sh BUGS
|
2002-05-30 09:24:01 +00:00
|
|
|
A British espionage series.
|