source: chapter07/bootscripts.xml@ bf58c1e

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 7.10 7.10-rc1 7.6 7.6-rc1 7.7 7.7-rc1 7.8 7.8-rc1 7.9 7.9-rc1 7.9-rc2 8.0 8.0-rc1 8.1 8.1-rc1 8.1-rc2 8.2 8.2-rc1 8.3 8.3-rc1 8.3-rc2 8.4 8.4-rc1 9.0 9.0-rc1 9.1 9.1-rc1 BOOK.old arm cross-chap5 hybrid ml-11.0 multilib nosym old-trunk trunk xry111/clfs-ng xry111/git-transition xry111/glibc-2.34 xry111/lfs-next xry111/tester-nohack xry111/usr-move
Last change on this file since bf58c1e was bf58c1e, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

Rewrite and reorganize Chapter 7.
Update systemd customization.

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

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