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 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.6 7.7 7.8 7.9 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 bf58c1e was bf58c1e, checked in by Bruce Dubbs <bdubbs@…>, 10 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
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[d781ffb]7
[81fd230]8<sect1 id="ch-scripts-bootscripts" role="wrap">
[d781ffb]9 <?dbhtml filename="bootscripts.html"?>
10
[e747759]11 <sect1info condition="script">
12 <productname>lfs-bootscripts</productname>
13 <productnumber>&lfs-bootscripts-version;</productnumber>
14 <address>&lfs-bootscripts-url;</address>
15 </sect1info>
16
[d781ffb]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/>
[673b0d8]25
[cba2d4e]26 <para>The LFS-Bootscripts package contains a set of scripts to start/stop
[bf58c1e]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>
[418e6cc]30
[d781ffb]31 <segmentedlist>
32 <segtitle>&buildtime;</segtitle>
33 <segtitle>&diskspace;</segtitle>
[418e6cc]34
[d781ffb]35 <seglistitem>
[e4a5635]36 <seg>&lfs-bootscripts-ch7-sbu;</seg>
37 <seg>&lfs-bootscripts-ch7-du;</seg>
[d781ffb]38 </seglistitem>
39 </segmentedlist>
[418e6cc]40
[d781ffb]41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of LFS-Bootscripts</title>
45
46 <para>Install the package:</para>
[673b0d8]47
[0445a3d]48<screen><userinput remap="install">make install</userinput></screen>
[673b0d8]49
[d781ffb]50 </sect2>
51
52 <sect2 id="contents-bootscripts" role="content">
53 <title>Contents of LFS-Bootscripts</title>
54 <segmentedlist>
55 <segtitle>Installed scripts</segtitle>
[cba2d4e]56 <segtitle>Installed unit</segtitle>
[fe05b08]57 <segtitle>Installed directories</segtitle>
[d781ffb]58
59 <seglistitem>
[6b13ebc6]60 <seg>checkfs, cleanfs, console, functions, halt, ifdown,
[b5b97081]61 ifup, localnet, modules, mountfs, mountvirtfs, network, rc, reboot,
62 sendsignals, setclock, ipv4-static, swap, sysctl, sysklogd, template,
[aeb956f]63 udev, and udev_retry</seg>
[cba2d4e]64 <seg>ifupdown@.service</seg>
[2ca8941]65 <seg>/etc/rc.d, /etc/init.d (symbolic link), /etc/sysconfig,
[f874424]66 /lib/services, /lib/lsb (symbolic link)</seg>
[d781ffb]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>
[0cda898]136 <para>Stops a network device</para>
[d781ffb]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>
[0cda898]146 <para>Initializes a network device</para>
[d781ffb]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
[aeb956f]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
[d781ffb]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
[b5b97081]186 <varlistentry id="mountvirtfs-bootscripts">
187 <term><command>mountvirtfs</command></term>
[d781ffb]188 <listitem>
189 <para>Mounts virtual kernel file systems, such as <systemitem
190 class="filesystem">proc</systemitem></para>
[b5b97081]191 <indexterm zone="ch-scripts-bootscripts mountvirtfs-bootscripts">
192 <primary sortas="d-mountvirtfs">mountvirtfs</primary>
[d781ffb]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
[b5b97081]252 <varlistentry id="ipv4-static-bootscripts">
253 <term><command>ipv4-static</command></term>
[d781ffb]254 <listitem>
255 <para>Provides the functionality needed to assign a static Internet
256 Protocol (IP) address to a network interface</para>
[b5b97081]257 <indexterm zone="ch-scripts-bootscripts ipv4-static-bootscripts">
258 <primary sortas="d-ipv4-static">ipv4-static</primary>
[d781ffb]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
[aeb956f]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
[d781ffb]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
[aeb956f]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
[0cda898]321 files from to
[aeb956f]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
[d781ffb]329 </variablelist>
330
331 </sect2>
[673b0d8]332
333</sect1>
Note: See TracBrowser for help on using the repository browser.