source: chapter07/bootscripts.xml@ 3d6999c

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 3d6999c was f874424, checked in by Bruce Dubbs <bdubbs@…>, 13 years ago

Rename /etc/sysconfig/init_params to /etc/sysconfig/rc.site.
Move network services to /lib/services.
Move init-functions to /lib/lsb.
Make /lib/lsb a symlink to /lib/services.
Create convenience symlink /etc/init.d->/etc/rc.d/init.d
Add help and man pages to ifup/ifdown.

Append /run/var/bootlog to /var/log/boot.log at the end of
the boot sequence.

Add capability to step through the boot scripts at boot time.

Optionally allow environment variables in sysconfig directory's
console, network, and clock files to be placed in rc.site.

Add an optional FASTBOOT parameter to set /fastboot when rebooting.

Remove a minor warning message from udev that is triggered
by the udev_retry boot script.

Add SKIPTMPCLEAN as an optional parameter to skip cleaning /tmp at boot time.

Add a page to Chapter 7 documenting rc.site.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9597 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 12.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-scripts-bootscripts" role="wrap">
9 <?dbhtml filename="bootscripts.html"?>
10
11 <sect1info condition="script">
12 <productname>lfs-bootscripts</productname>
13 <productnumber>&lfs-bootscripts-version;</productnumber>
14 <address>&lfs-bootscripts-url;</address>
15 </sect1info>
16
17 <title>LFS-Bootscripts-&lfs-bootscripts-version;</title>
18
19 <indexterm zone="ch-scripts-bootscripts">
20 <primary sortas="a-Bootscripts">Bootscripts</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The LFS-Bootscripts package contains a set of scripts to start/stop the
27 LFS system at bootup/shutdown.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&lfs-bootscripts-ch7-sbu;</seg>
35 <seg>&lfs-bootscripts-ch7-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of LFS-Bootscripts</title>
43
44 <para>Install the package:</para>
45
46<screen><userinput remap="install">make install</userinput></screen>
47
48 </sect2>
49
50 <sect2 id="contents-bootscripts" role="content">
51 <title>Contents of LFS-Bootscripts</title>
52 <segmentedlist>
53 <segtitle>Installed scripts</segtitle>
54 <segtitle>Installed directories</segtitle>
55
56 <seglistitem>
57 <seg>checkfs, cleanfs, console, consolelog, functions, halt, ifdown,
58 ifup, localnet, modules, mountfs, mountkernfs, network, rc, reboot,
59 sendsignals, setclock, static, swap, sysctl, sysklogd, template,
60 udev, and udev_retry</seg>
61 <seg>/etc/rc.d, /etc/init.d (symbolic link), /etc/sysconfig,
62 /lib/services, /lib/lsb (symbolic link)</seg>
63 </seglistitem>
64 </segmentedlist>
65
66 <variablelist>
67 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
68 <?dbfo list-presentation="list"?>
69 <?dbhtml list-presentation="table"?>
70
71 <varlistentry id="checkfs-bootscripts">
72 <term><command>checkfs</command></term>
73 <listitem>
74 <para>Checks the integrity of the file systems before they are mounted
75 (with the exception of journal and network based file systems)</para>
76 <indexterm zone="ch-scripts-bootscripts checkfs-bootscripts">
77 <primary sortas="d-checkfs">checkfs</primary>
78 </indexterm>
79 </listitem>
80 </varlistentry>
81
82 <varlistentry id="cleanfs-bootscripts">
83 <term><command>cleanfs</command></term>
84 <listitem>
85 <para>Removes files that should not be preserved between reboots, such
86 as those in <filename class="directory">/var/run/</filename> and
87 <filename class="directory">/var/lock/</filename>; it re-creates
88 <filename>/var/run/utmp</filename> and removes the possibly present
89 <filename>/etc/nologin</filename>, <filename>/fastboot</filename>, and
90 <filename>/forcefsck</filename> files</para>
91 <indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts">
92 <primary sortas="d-cleanfs">cleanfs</primary>
93 </indexterm>
94 </listitem>
95 </varlistentry>
96
97 <varlistentry id="console-bootscripts">
98 <term><command>console</command></term>
99 <listitem>
100 <para>Loads the correct keymap table for the desired keyboard layout;
101 it also sets the screen font</para>
102 <indexterm zone="ch-scripts-bootscripts console-bootscripts">
103 <primary sortas="d-console">console</primary>
104 </indexterm>
105 </listitem>
106 </varlistentry>
107
108 <varlistentry id="consolelog-bootscripts">
109 <term><command>consolelog</command></term>
110 <listitem>
111 <para>Sets the kernel log level to control messages reaching the
112 console.</para>
113 <indexterm zone="ch-scripts-bootscripts consolelog-bootscripts">
114 <primary sortas="d-consolelog">consolelog</primary>
115 </indexterm>
116 </listitem>
117 </varlistentry>
118
119 <varlistentry id="functions-bootscripts">
120 <term><command>functions</command></term>
121 <listitem>
122 <para>Contains common functions, such as error and status checking,
123 that are used by several bootscripts</para>
124 <indexterm zone="ch-scripts-bootscripts functions-bootscripts">
125 <primary sortas="d-functions">functions</primary>
126 </indexterm>
127 </listitem>
128 </varlistentry>
129
130 <varlistentry id="halt-bootscripts">
131 <term><command>halt</command></term>
132 <listitem>
133 <para>Halts the system</para>
134 <indexterm zone="ch-scripts-bootscripts halt-bootscripts">
135 <primary sortas="d-halt">halt</primary>
136 </indexterm>
137 </listitem>
138 </varlistentry>
139
140 <varlistentry id="ifdown-bootscripts">
141 <term><command>ifdown</command></term>
142 <listitem>
143 <para>Stops a network device</para>
144 <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts">
145 <primary sortas="d-ifdown">ifdown</primary>
146 </indexterm>
147 </listitem>
148 </varlistentry>
149
150 <varlistentry id="ifup-bootscripts">
151 <term><command>ifup</command></term>
152 <listitem>
153 <para>Initializes a network device</para>
154 <indexterm zone="ch-scripts-bootscripts ifup-bootscripts">
155 <primary sortas="d-ifup">ifup</primary>
156 </indexterm>
157 </listitem>
158 </varlistentry>
159
160 <varlistentry id="localnet-bootscripts">
161 <term><command>localnet</command></term>
162 <listitem>
163 <para>Sets up the system's hostname and local loopback device</para>
164 <indexterm zone="ch-scripts-bootscripts localnet-bootscripts">
165 <primary sortas="d-localnet">localnet</primary>
166 </indexterm>
167 </listitem>
168 </varlistentry>
169
170 <varlistentry id="modules-bootscripts">
171 <term><command>modules</command></term>
172 <listitem>
173 <para>Loads kernel modules listed in
174 <filename>/etc/sysconfig/modules</filename>, using arguments
175 that are also given there</para>
176 <indexterm zone="ch-scripts-bootscripts modules-bootscripts">
177 <primary sortas="d-modules">modules</primary>
178 </indexterm>
179 </listitem>
180 </varlistentry>
181
182 <varlistentry id="mountfs-bootscripts">
183 <term><command>mountfs</command></term>
184 <listitem>
185 <para>Mounts all file systems, except ones that are marked
186 <emphasis>noauto</emphasis> or are network based</para>
187 <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts">
188 <primary sortas="d-mountfs">mountfs</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="mountkernfs-bootscripts">
194 <term><command>mountkernfs</command></term>
195 <listitem>
196 <para>Mounts virtual kernel file systems, such as <systemitem
197 class="filesystem">proc</systemitem></para>
198 <indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts">
199 <primary sortas="d-mountkernfs">mountkernfs</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 <varlistentry id="network-bootscripts">
205 <term><command>network</command></term>
206 <listitem>
207 <para>Sets up network interfaces, such as network cards, and sets up
208 the default gateway (where applicable)</para>
209 <indexterm zone="ch-scripts-bootscripts network-bootscripts">
210 <primary sortas="d-network">network</primary>
211 </indexterm>
212 </listitem>
213 </varlistentry>
214
215 <varlistentry id="rc-bootscripts">
216 <term><command>rc</command></term>
217 <listitem>
218 <para>The master run-level control script; it is responsible for
219 running all the other bootscripts one-by-one, in a sequence determined
220 by the name of the symbolic links being processed</para>
221 <indexterm zone="ch-scripts-bootscripts rc-bootscripts">
222 <primary sortas="d-rc">rc</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
226
227 <varlistentry id="reboot-bootscripts">
228 <term><command>reboot</command></term>
229 <listitem>
230 <para>Reboots the system</para>
231 <indexterm zone="ch-scripts-bootscripts reboot-bootscripts">
232 <primary sortas="d-reboot">reboot</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 <varlistentry id="sendsignals-bootscripts">
238 <term><command>sendsignals</command></term>
239 <listitem>
240 <para>Makes sure every process is terminated before the system reboots
241 or halts</para>
242 <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts">
243 <primary sortas="d-sendsignals">sendsignals</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
248 <varlistentry id="setclock-bootscripts">
249 <term><command>setclock</command></term>
250 <listitem>
251 <para>Resets the kernel clock to local time in case the hardware clock
252 is not set to UTC time</para>
253 <indexterm zone="ch-scripts-bootscripts setclock-bootscripts">
254 <primary sortas="d-setclock">setclock</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258
259 <varlistentry id="static-bootscripts">
260 <term><command>static</command></term>
261 <listitem>
262 <para>Provides the functionality needed to assign a static Internet
263 Protocol (IP) address to a network interface</para>
264 <indexterm zone="ch-scripts-bootscripts static-bootscripts">
265 <primary sortas="d-static">static</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
269
270 <varlistentry id="swap-bootscripts">
271 <term><command>swap</command></term>
272 <listitem>
273 <para>Enables and disables swap files and partitions</para>
274 <indexterm zone="ch-scripts-bootscripts swap-bootscripts">
275 <primary sortas="d-swap">swap</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
279
280 <varlistentry id="sysctl-bootscripts">
281 <term><command>sysctl</command></term>
282 <listitem>
283 <para>Loads system configuration values from
284 <filename>/etc/sysctl.conf</filename>, if that file exists,
285 into the running kernel</para>
286 <indexterm zone="ch-scripts-bootscripts sysctl-bootscripts">
287 <primary sortas="d-sysctl">sysctl</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
292 <varlistentry id="sysklogd-bootscripts">
293 <term><command>sysklogd</command></term>
294 <listitem>
295 <para>Starts and stops the system and kernel log daemons</para>
296 <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts">
297 <primary sortas="d-sysklogd">sysklogd</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 <varlistentry id="template-bootscripts">
303 <term><command>template</command></term>
304 <listitem>
305 <para>A template to create custom bootscripts for other
306 daemons</para>
307 <indexterm zone="ch-scripts-bootscripts template-bootscripts">
308 <primary sortas="d-template">template</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="udev-bootscripts">
314 <term><command>udev</command></term>
315 <listitem>
316 <para>Prepares the <filename class="directory">/dev</filename>
317 directory and starts Udev</para>
318 <indexterm zone="ch-scripts-bootscripts udev-bootscripts">
319 <primary sortas="d-udev">udev</primary>
320 </indexterm>
321 </listitem>
322 </varlistentry>
323
324 <varlistentry id="udev-retry-bootscripts">
325 <term><command>udev_retry</command></term>
326 <listitem>
327 <para>Retries failed udev uevents, and copies generated rules
328 files from to
329 <filename class="directory">/etc/udev/rules.d</filename> if required</para>
330 <indexterm zone="ch-scripts-bootscripts udev-retry-bootscripts">
331 <primary sortas="d-udev-retry">udev_retry</primary>
332 </indexterm>
333 </listitem>
334 </varlistentry>
335
336 </variablelist>
337
338 </sect2>
339
340</sect1>
Note: See TracBrowser for help on using the repository browser.