source: chapter07/bootscripts.xml@ b5b97081

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.4 7.5 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 b5b97081 was b5b97081, checked in by Bruce Dubbs <bdubbs@…>, 11 years ago

Updates to file and library contenets.

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

  • Property mode set to 100644
File size: 12.0 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, functions, halt, ifdown,
58 ifup, localnet, modules, mountfs, mountvirtfs, network, rc, reboot,
59 sendsignals, setclock, ipv4-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="functions-bootscripts">
109 <term><command>functions</command></term>
110 <listitem>
111 <para>Contains common functions, such as error and status checking,
112 that are used by several bootscripts</para>
113 <indexterm zone="ch-scripts-bootscripts functions-bootscripts">
114 <primary sortas="d-functions">functions</primary>
115 </indexterm>
116 </listitem>
117 </varlistentry>
118
119 <varlistentry id="halt-bootscripts">
120 <term><command>halt</command></term>
121 <listitem>
122 <para>Halts the system</para>
123 <indexterm zone="ch-scripts-bootscripts halt-bootscripts">
124 <primary sortas="d-halt">halt</primary>
125 </indexterm>
126 </listitem>
127 </varlistentry>
128
129 <varlistentry id="ifdown-bootscripts">
130 <term><command>ifdown</command></term>
131 <listitem>
132 <para>Stops a network device</para>
133 <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts">
134 <primary sortas="d-ifdown">ifdown</primary>
135 </indexterm>
136 </listitem>
137 </varlistentry>
138
139 <varlistentry id="ifup-bootscripts">
140 <term><command>ifup</command></term>
141 <listitem>
142 <para>Initializes a network device</para>
143 <indexterm zone="ch-scripts-bootscripts ifup-bootscripts">
144 <primary sortas="d-ifup">ifup</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
149 <varlistentry id="localnet-bootscripts">
150 <term><command>localnet</command></term>
151 <listitem>
152 <para>Sets up the system's hostname and local loopback device</para>
153 <indexterm zone="ch-scripts-bootscripts localnet-bootscripts">
154 <primary sortas="d-localnet">localnet</primary>
155 </indexterm>
156 </listitem>
157 </varlistentry>
158
159 <varlistentry id="modules-bootscripts">
160 <term><command>modules</command></term>
161 <listitem>
162 <para>Loads kernel modules listed in
163 <filename>/etc/sysconfig/modules</filename>, using arguments
164 that are also given there</para>
165 <indexterm zone="ch-scripts-bootscripts modules-bootscripts">
166 <primary sortas="d-modules">modules</primary>
167 </indexterm>
168 </listitem>
169 </varlistentry>
170
171 <varlistentry id="mountfs-bootscripts">
172 <term><command>mountfs</command></term>
173 <listitem>
174 <para>Mounts all file systems, except ones that are marked
175 <emphasis>noauto</emphasis> or are network based</para>
176 <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts">
177 <primary sortas="d-mountfs">mountfs</primary>
178 </indexterm>
179 </listitem>
180 </varlistentry>
181
182 <varlistentry id="mountvirtfs-bootscripts">
183 <term><command>mountvirtfs</command></term>
184 <listitem>
185 <para>Mounts virtual kernel file systems, such as <systemitem
186 class="filesystem">proc</systemitem></para>
187 <indexterm zone="ch-scripts-bootscripts mountvirtfs-bootscripts">
188 <primary sortas="d-mountvirtfs">mountvirtfs</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="network-bootscripts">
194 <term><command>network</command></term>
195 <listitem>
196 <para>Sets up network interfaces, such as network cards, and sets up
197 the default gateway (where applicable)</para>
198 <indexterm zone="ch-scripts-bootscripts network-bootscripts">
199 <primary sortas="d-network">network</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 <varlistentry id="rc-bootscripts">
205 <term><command>rc</command></term>
206 <listitem>
207 <para>The master run-level control script; it is responsible for
208 running all the other bootscripts one-by-one, in a sequence determined
209 by the name of the symbolic links being processed</para>
210 <indexterm zone="ch-scripts-bootscripts rc-bootscripts">
211 <primary sortas="d-rc">rc</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="reboot-bootscripts">
217 <term><command>reboot</command></term>
218 <listitem>
219 <para>Reboots the system</para>
220 <indexterm zone="ch-scripts-bootscripts reboot-bootscripts">
221 <primary sortas="d-reboot">reboot</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry id="sendsignals-bootscripts">
227 <term><command>sendsignals</command></term>
228 <listitem>
229 <para>Makes sure every process is terminated before the system reboots
230 or halts</para>
231 <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts">
232 <primary sortas="d-sendsignals">sendsignals</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 <varlistentry id="setclock-bootscripts">
238 <term><command>setclock</command></term>
239 <listitem>
240 <para>Resets the kernel clock to local time in case the hardware clock
241 is not set to UTC time</para>
242 <indexterm zone="ch-scripts-bootscripts setclock-bootscripts">
243 <primary sortas="d-setclock">setclock</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
248 <varlistentry id="ipv4-static-bootscripts">
249 <term><command>ipv4-static</command></term>
250 <listitem>
251 <para>Provides the functionality needed to assign a static Internet
252 Protocol (IP) address to a network interface</para>
253 <indexterm zone="ch-scripts-bootscripts ipv4-static-bootscripts">
254 <primary sortas="d-ipv4-static">ipv4-static</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258
259 <varlistentry id="swap-bootscripts">
260 <term><command>swap</command></term>
261 <listitem>
262 <para>Enables and disables swap files and partitions</para>
263 <indexterm zone="ch-scripts-bootscripts swap-bootscripts">
264 <primary sortas="d-swap">swap</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 <varlistentry id="sysctl-bootscripts">
270 <term><command>sysctl</command></term>
271 <listitem>
272 <para>Loads system configuration values from
273 <filename>/etc/sysctl.conf</filename>, if that file exists,
274 into the running kernel</para>
275 <indexterm zone="ch-scripts-bootscripts sysctl-bootscripts">
276 <primary sortas="d-sysctl">sysctl</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry id="sysklogd-bootscripts">
282 <term><command>sysklogd</command></term>
283 <listitem>
284 <para>Starts and stops the system and kernel log daemons</para>
285 <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts">
286 <primary sortas="d-sysklogd">sysklogd</primary>
287 </indexterm>
288 </listitem>
289 </varlistentry>
290
291 <varlistentry id="template-bootscripts">
292 <term><command>template</command></term>
293 <listitem>
294 <para>A template to create custom bootscripts for other
295 daemons</para>
296 <indexterm zone="ch-scripts-bootscripts template-bootscripts">
297 <primary sortas="d-template">template</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 <varlistentry id="udev-bootscripts">
303 <term><command>udev</command></term>
304 <listitem>
305 <para>Prepares the <filename class="directory">/dev</filename>
306 directory and starts Udev</para>
307 <indexterm zone="ch-scripts-bootscripts udev-bootscripts">
308 <primary sortas="d-udev">udev</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="udev-retry-bootscripts">
314 <term><command>udev_retry</command></term>
315 <listitem>
316 <para>Retries failed udev uevents, and copies generated rules
317 files from to
318 <filename class="directory">/etc/udev/rules.d</filename> if required</para>
319 <indexterm zone="ch-scripts-bootscripts udev-retry-bootscripts">
320 <primary sortas="d-udev-retry">udev_retry</primary>
321 </indexterm>
322 </listitem>
323 </varlistentry>
324
325 </variablelist>
326
327 </sect2>
328
329</sect1>
Note: See TracBrowser for help on using the repository browser.