1 .\" Copyright (c) 1999 Daniel C. Sobral
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .Nd "system bootstrap configuration information"
36 contains descriptive information on bootstrapping the system.
38 it you can specify the kernel to be booted, parameters to be passed to
39 it, and additional modules to be loaded; and generally set all variables
43 Loader implements set of builtin commands and functions and script
44 interpreter as standalone binary program.
45 When starting, the loader will read the file
47 as initialization and startup script, to include other support files
48 and to read the configuration, describing current boot environment.
49 All loader scripts and configuration files are located in the
55 must contain the following two lines for
57 to be automatically processed:
59 .Dl include /boot/forth/loader.4th
64 is provided by the operating system and may be replaced on operating
66 The local updates are advised to be added into the
67 .Pa /boot/loader.rc.local
69 The configuration variables are read from the following files:
71 .It Ar /boot/solaris/bootenv.rc
75 .It Ar /boot/defaults/loader.conf
76 Loader defaults provided by the operating system.
77 .It Ar /boot/loader.conf
78 System specific loader configuration.
79 May be provided by the operating system.
80 .It Ar /boot/loader.conf.local
81 User editable loader configuration.
83 User editable loader configuration snippets.
84 The files are processed in lexicographical order.
85 The configuration snippets mechanism is not available in case of TFTP boot as
86 TFTP does not provide the directory list.
87 .It Ar /boot/transient.conf
88 Configuration file for transient boot.
89 This file is created by the
91 command and is automatically removed when system is reaching the multi-user
95 The configuration is processed in the order listed above.
97 The general parsing rules are:
100 Spaces and empty lines are ignored.
102 A # sign will mark the remainder of the line as a comment.
104 Only one setting can be present on each line.
107 All settings have the following format:
111 Unless it belongs to one of the classes of settings that receive special
112 treatment, a setting will set the value of a
114 environment variable.
115 The settings that receive special
116 treatment are listed below.
117 Settings beginning with
119 below define the modules to be loaded and
120 may have any prefix; the prefix identifies a module.
121 All such settings sharing a common
122 prefix refer to the same module.
125 Immediately executes a
128 This type of setting cannot be processed by programs other
131 so its use should be avoided.
132 Multiple instances of it will be processed
134 .It Ar loader_conf_files
135 Defines additional configuration files to be processed right after the
138 Name of the kernel to be loaded.
139 If no kernel name is set, no additional
140 modules will be loaded.
142 Flags to be passed to the kernel.
144 Protect boot menu with a password without interrupting
147 The password should be in clear text format.
148 If a password is set, boot menu will not appear until any key is pressed during
149 countdown period specified by
154 In both cases user should provide specified password to be able to access boot
156 .It Ar bootlock_password
157 Provides a password to be required by check-password before execution is
159 The password should be in clear text format.
160 If a password is set, the user must provide specified password to boot.
161 .It Ar verbose_loading
164 module names will be displayed as they are loaded.
168 that module will be loaded.
169 If no name is defined (see below), the
170 module's name is taken to be the same as the prefix.
172 Defines the name of the module.
174 Defines the module's type.
175 If none is given, it defaults to a kld module.
177 Flags and parameters to be passed to the module.
179 Commands to be executed before the module is loaded.
183 Commands to be executed after the module is loaded.
187 Commands to be executed if the loading of a module fails.
191 which aborts the bootstrap process, use of this setting should be avoided.
196 default settings can be ignored.
197 The few of them which are important
199 .Bl -tag -width bootfile -offset indent
205 selects serial console,
207 selects the video console,
209 selects a mute console
210 (useful for systems with neither a video console nor a serial port), and
212 selects the video console which prevents any input and hides all output
215 character (useful for embedded products and such).
217 .Pq Dq i86pc/kernel/${ISADIR}
219 sub-directory containing kernel
220 .It Va loader_conf_files
221 .Pq Dq Pa /boot/loader.conf /boot/loader.conf.local
222 .It Va beastie_disable
225 the beastie boot menu will be skipped.
226 The beastie boot menu is always skipped if running non-x86 hardware.
227 .It Va loader_logo Pq Dq Li illumos
228 Selects a desired logo in the beastie boot menu.
229 Possible values depend on distribution;
231 will disable the logo.
235 the beastie boot menu will be displayed without ANSI coloring.
247 when it encounters a syntax error, so any options which are vital for
248 booting a particular system should precede any experimental additions to