source: chapter07/bootscripts.xml@ 31534911

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 31534911 was d2c332bc, checked in by Archaic <archaic@…>, 18 years ago

Merged the udev_update branch to trunk.

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

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