source: chapter07/bootscripts.xml@ 1b3de968

Last change on this file since 1b3de968 was 1b3de968, checked in by Matthew Burgess <matthew@…>, 18 years ago

Remove hotplug and its bootscript from the book - Udev will take over module handling

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

  • Property mode set to 100644
File size: 10.9 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>Prevent the hotplug bootscript from being installed, as the hotplug
47 package is no longer installed.</para>
48
49<screen><userinput>sed -i '/hotplug/d' Makefile</userinput></screen>
50
51 <para>Install the package:</para>
52
53<screen><userinput>make install</userinput></screen>
54
55 </sect2>
56
57 <sect2 id="contents-bootscripts" role="content">
58 <title>Contents of LFS-Bootscripts</title>
59
60 <segmentedlist>
61 <segtitle>Installed scripts</segtitle>
62
63 <seglistitem>
64 <seg>checkfs, cleanfs, console, functions, halt, hotplug, ifdown, ifup,
65 localnet, mountfs, mountkernfs, network, rc, reboot, sendsignals,
66 setclock, static, swap, sysklogd, template, and udev</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="hotplug-bootscripts">
134 <term><command>hotplug</command></term>
135 <listitem>
136 <para>Loads modules for system devices</para>
137 <indexterm zone="ch-scripts-bootscripts hotplug-bootscripts">
138 <primary sortas="d-hotplug">hotplug</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 <varlistentry id="ifdown-bootscripts">
144 <term><command>ifdown</command></term>
145 <listitem>
146 <para>Assists the network script with stopping network devices</para>
147 <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts">
148 <primary sortas="d-ifdown">ifdown</primary>
149 </indexterm>
150 </listitem>
151 </varlistentry>
152
153 <varlistentry id="ifup-bootscripts">
154 <term><command>ifup</command></term>
155 <listitem>
156 <para>Assists the network script with starting network devices</para>
157 <indexterm zone="ch-scripts-bootscripts ifup-bootscripts">
158 <primary sortas="d-ifup">ifup</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
163 <varlistentry id="localnet-bootscripts">
164 <term><command>localnet</command></term>
165 <listitem>
166 <para>Sets up the system's hostname and local loopback device</para>
167 <indexterm zone="ch-scripts-bootscripts localnet-bootscripts">
168 <primary sortas="d-localnet">localnet</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
173 <varlistentry id="mountfs-bootscripts">
174 <term><command>mountfs</command></term>
175 <listitem>
176 <para>Mounts all file systems, except ones that are marked
177 <emphasis>noauto</emphasis> or are network based</para>
178 <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts">
179 <primary sortas="d-mountfs">mountfs</primary>
180 </indexterm>
181 </listitem>
182 </varlistentry>
183
184 <varlistentry id="mountkernfs-bootscripts">
185 <term><command>mountkernfs</command></term>
186 <listitem>
187 <para>Mounts virtual kernel file systems, such as <systemitem
188 class="filesystem">proc</systemitem></para>
189 <indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts">
190 <primary sortas="d-mountkernfs">mountkernfs</primary>
191 </indexterm>
192 </listitem>
193 </varlistentry>
194
195 <varlistentry id="network-bootscripts">
196 <term><command>network</command></term>
197 <listitem>
198 <para>Sets up network interfaces, such as network cards, and sets up
199 the default gateway (where applicable)</para>
200 <indexterm zone="ch-scripts-bootscripts network-bootscripts">
201 <primary sortas="d-network">network</primary>
202 </indexterm>
203 </listitem>
204 </varlistentry>
205
206 <varlistentry id="rc-bootscripts">
207 <term><command>rc</command></term>
208 <listitem>
209 <para>The master run-level control script; it is responsible for
210 running all the other bootscripts one-by-one, in a sequence determined
211 by the name of the symbolic links being processed</para>
212 <indexterm zone="ch-scripts-bootscripts rc-bootscripts">
213 <primary sortas="d-rc">rc</primary>
214 </indexterm>
215 </listitem>
216 </varlistentry>
217
218 <varlistentry id="reboot-bootscripts">
219 <term><command>reboot</command></term>
220 <listitem>
221 <para>Reboots the system</para>
222 <indexterm zone="ch-scripts-bootscripts reboot-bootscripts">
223 <primary sortas="d-reboot">reboot</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry id="sendsignals-bootscripts">
229 <term><command>sendsignals</command></term>
230 <listitem>
231 <para>Makes sure every process is terminated before the system reboots
232 or halts</para>
233 <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts">
234 <primary sortas="d-sendsignals">sendsignals</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="setclock-bootscripts">
240 <term><command>setclock</command></term>
241 <listitem>
242 <para>Resets the kernel clock to local time in case the hardware clock
243 is not set to UTC time</para>
244 <indexterm zone="ch-scripts-bootscripts setclock-bootscripts">
245 <primary sortas="d-setclock">setclock</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="static-bootscripts">
251 <term><command>static</command></term>
252 <listitem>
253 <para>Provides the functionality needed to assign a static Internet
254 Protocol (IP) address to a network interface</para>
255 <indexterm zone="ch-scripts-bootscripts static-bootscripts">
256 <primary sortas="d-static">static</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="swap-bootscripts">
262 <term><command>swap</command></term>
263 <listitem>
264 <para>Enables and disables swap files and partitions</para>
265 <indexterm zone="ch-scripts-bootscripts swap-bootscripts">
266 <primary sortas="d-swap">swap</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id="sysklogd-bootscripts">
272 <term><command>sysklogd</command></term>
273 <listitem>
274 <para>Starts and stops the system and kernel log daemons</para>
275 <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts">
276 <primary sortas="d-sysklogd">sysklogd</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry id="template-bootscripts">
282 <term><command>template</command></term>
283 <listitem>
284 <para>A template to create custom bootscripts for other
285 daemons</para>
286 <indexterm zone="ch-scripts-bootscripts template-bootscripts">
287 <primary sortas="d-template">template</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
292 <varlistentry id="udev-bootscripts">
293 <term><command>udev</command></term>
294 <listitem>
295 <para>Prepares the <filename class="directory">/dev</filename>
296 directory and starts Udev</para>
297 <indexterm zone="ch-scripts-bootscripts udev-bootscripts">
298 <primary sortas="d-udev">udev</primary>
299 </indexterm>
300 </listitem>
301 </varlistentry>
302
303 </variablelist>
304
305 </sect2>
306
307</sect1>
Note: See TracBrowser for help on using the repository browser.