summaryrefslogtreecommitdiffstats
path: root/share/man/man5/boot.config.5
blob: 681fc3aa765f45e9990b65d65536833531e9e6c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
.\" Copyright (c) 2007 Daniel Gerzo <danger@FreeBSD.org>
.\" 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.
.\"
.\" $FreeBSD$
.Dd May 13, 2007
.Dt BOOT.CONFIG 5
.Os
.Sh NAME
.Nm boot.config
.Nd "Configuration file for the boot blocks"
.Sh DESCRIPTION
The
.Nm
file contains options for the
.Fx
boot block code.
.Pp
When the
.Fx
boot loader runs, it searches the
.Dq Li a
slice of the boot partition for a
.Nm
file (as a result, slices which are missing an
.Dq Li a
partition require user intervention during the boot process).
If the
.Nm
file is found, its contents are used as the default configuration
options for the boot block code and are echoed to the system console.
.Pp
A valid format of this file is to put BIOS drive number, a controller
type, a unit number, a partition, a kernel file name, and any other
valid
.Xr boot 8
option on a single line, as it is done at the
.Dq Li "boot:"
prompt.
.Pp
The options related to the boot image selection described below and all
the other options available for
.Nm
are documented in detail in the
.Xr boot 8
manual page.
.Sh FILES
.Bl -tag -width /boot.config -compact
.It Pa /boot.config
parameters for the boot blocks (optional)
.El
.Sh EXAMPLES
The command:
.Bd -literal -offset indent
# echo "-P" > /boot.config
.Ed
.Pp
will activate the serial console of
.Fx .
.Pp
The command:
.Bd -literal -offset indent
# echo "1:ad(1,a)/boot/loader" > /boot.config
.Ed
.Pp
will instruct the second stage of
.Xr boot 8
on the first disk to boot with the third
.Xr boot 8
stage from the second disk.
.Pp
The command:
.Bd -literal -offset indent
# echo "1:ad(1,a)/boot/loader -P" > /boot.config
.Ed
.Pp
will do both of the above.
.Sh SEE ALSO
.Xr boot 8 ,
.Xr loader 8
.Sh AUTHORS
This manual page was written by
.An Daniel Gerzo Aq danger@FreeBSD.org .
OpenPOWER on IntegriCloud