source: chapter07/bootscripts.xml@ c800f78

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 6.3 6.4 6.5 6.6 6.7 6.8 7.0 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 c800f78 was e4a5635, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Replaced "<" by "less than".

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

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