source: BOOK/boot/common/bootscripts.xml@ f6dfda5

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f6dfda5 was 90e8c97, checked in by Chris Staub <chris@…>, 11 years ago

Install eudev in /tools

  • Property mode set to 100644
File size: 11.8 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 <title>Bootscripts for CLFS &bootscripts-clfs-version;</title>
12
13 <indexterm zone="ch-scripts-bootscripts">
14 <primary sortas="a-Bootscripts">Bootscripts</primary>
15 <secondary>boot</secondary>
16 </indexterm>
17
18 <sect2 role="package">
19 <title/>
20
21 <para>The Bootscripts package contains a set of scripts to
22 start/stop the CLFS system at bootup/shutdown.</para>
23
24 </sect2>
25
26 <sect2 role="installation">
27 <title>Installation of Bootscripts</title>
28
29 <para os="s1">Remove references to Makefile targets that do not need
30 to be used at this time:</para>
31
32<screen os="s2"><userinput>cp Makefile{,.orig}
33sed -e '/^install-minimal/s/ udev_device_dirs udev_device_links//' \
34 -e '/ mknod_devices/d' \
35 Makefile.orig > Makefile</userinput></screen>
36
37 <para os="s3">Account for udev now being in /tools:</para>
38
39<screen os="s4"><userinput>cp clfs/init.d/udev{,.orig}
40sed 's@/sbin/udev@/tools&amp;@' clfs/init.d/udev.orig > clfs/init.d/udev</userinput></screen>
41
42 <para os="a">Install the package:</para>
43
44<screen os="b"><userinput>make DESTDIR=${CLFS} install-minimal</userinput></screen>
45
46 <para os="c">The <command>setclock</command> script reads the time from the
47 hardware clock, also known as the BIOS or the Complementary Metal Oxide
48 Semiconductor (CMOS) clock. If the hardware clock is set to UTC, this
49 script will convert the hardware clock's time to the local time using
50 the <filename>/etc/localtime</filename> file (which tells the
51 <command>hwclock</command> program which timezone the user is in). There
52 is no way to detect whether or not the hardware clock is set to UTC, so
53 this needs to be configured manually.</para>
54
55
56
57 <para os="d">If you do not know whether or not the hardware clock is set to UTC,
58 you can find out after you have booted the new machine by running the
59 <userinput>hwclock --localtime --show</userinput> command, and if
60 necessary editing the <filename>/etc/sysconfig/clock</filename> script.
61 The worst that will happen if you make a wrong guess here is that the
62 time displayed will be wrong.</para>
63
64 <para os="e">Change the value of the <envar>UTC</envar> variable below
65 to a value of <option>0</option> (zero) if the hardware clock
66 is <emphasis>not</emphasis> set to UTC time.</para>
67
68<screen os="f"><userinput>cat &gt; ${CLFS}/etc/sysconfig/clock &lt;&lt; "EOF"
69<literal># Begin /etc/sysconfig/clock
70
71UTC=1
72
73# End /etc/sysconfig/clock</literal>
74EOF</userinput></screen>
75
76 </sect2>
77
78 <sect2 id="contents-bootscripts" role="content">
79 <title>Contents of Bootscripts</title>
80
81 <segmentedlist>
82 <segtitle>Installed scripts</segtitle>
83
84 <seglistitem>
85 <seg>checkfs, cleanfs, console, functions, halt, ifdown,
86 ifup, localnet, mountfs, mountkernfs, network, rc, reboot, sendsignals,
87 setclock, static, swap, sysklogd, template, and udev.</seg>
88 </seglistitem>
89 </segmentedlist>
90
91 <variablelist>
92 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
93 <?dbfo list-presentation="list"?>
94 <?dbhtml list-presentation="table"?>
95
96 <varlistentry id="checkfs-bootscripts">
97 <term><command>checkfs</command></term>
98 <listitem>
99 <para>Checks the integrity of the file systems before they are
100 mounted (with the exception of journal and network based file
101 systems)</para>
102 <indexterm zone="ch-scripts-bootscripts checkfs-bootscripts">
103 <primary sortas="d-checkfs">checkfs</primary>
104 </indexterm>
105 </listitem>
106 </varlistentry>
107
108 <varlistentry id="cleanfs-bootscripts">
109 <term><command>cleanfs</command></term>
110 <listitem>
111 <para>Removes files that should not be preserved between reboots,
112 such as those in <filename class="directory">/var/run/</filename>
113 and <filename class="directory">/var/lock/</filename>; it re-creates
114 <filename>/var/run/utmp</filename> and removes the possibly present
115 <filename>/etc/nologin</filename>, <filename>/fastboot</filename>,
116 and <filename>/forcefsck</filename> files</para>
117 <indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts">
118 <primary sortas="d-cleanfs">cleanfs</primary>
119 </indexterm>
120 </listitem>
121 </varlistentry>
122
123 <varlistentry id="console-bootscripts">
124 <term><command>console</command></term>
125 <listitem>
126 <para>Loads the correct keymap table for the desired keyboard
127 layout; it also sets the screen font</para>
128 <indexterm zone="ch-scripts-bootscripts console-bootscripts">
129 <primary sortas="d-console">console</primary>
130 </indexterm>
131 </listitem>
132 </varlistentry>
133
134 <varlistentry id="functions-bootscripts">
135 <term><command>functions</command></term>
136 <listitem>
137 <para>Contains common functions, such as error and status checking,
138 that are used by several bootscripts</para>
139 <indexterm zone="ch-scripts-bootscripts functions-bootscripts">
140 <primary sortas="d-functions">functions</primary>
141 </indexterm>
142 </listitem>
143 </varlistentry>
144
145 <varlistentry id="halt-bootscripts">
146 <term><command>halt</command></term>
147 <listitem>
148 <para>Halts the system</para>
149 <indexterm zone="ch-scripts-bootscripts halt-bootscripts">
150 <primary sortas="d-halt">halt</primary>
151 </indexterm>
152 </listitem>
153 </varlistentry>
154
155 <varlistentry id="ifdown-bootscripts">
156 <term><command>ifdown</command></term>
157 <listitem>
158 <para>Assists the network script with stopping network devices</para>
159 <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts">
160 <primary sortas="d-ifdown">ifdown</primary>
161 </indexterm>
162 </listitem>
163 </varlistentry>
164
165 <varlistentry id="ifup-bootscripts">
166 <term><command>ifup</command></term>
167 <listitem>
168 <para>Assists the network script with starting network devices</para>
169 <indexterm zone="ch-scripts-bootscripts ifup-bootscripts">
170 <primary sortas="d-ifup">ifup</primary>
171 </indexterm>
172 </listitem>
173 </varlistentry>
174
175 <varlistentry id="localnet-bootscripts">
176 <term><command>localnet</command></term>
177 <listitem>
178 <para>Sets up the system's hostname and local loopback device</para>
179 <indexterm zone="ch-scripts-bootscripts localnet-bootscripts">
180 <primary sortas="d-localnet">localnet</primary>
181 </indexterm>
182 </listitem>
183 </varlistentry>
184
185 <varlistentry id="mountfs-bootscripts">
186 <term><command>mountfs</command></term>
187 <listitem>
188 <para>Mounts all file systems, except ones that are marked
189 <emphasis>noauto</emphasis> or are network based</para>
190 <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts">
191 <primary sortas="d-mountfs">mountfs</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="mountkernfs-bootscripts">
197 <term><command>mountkernfs</command></term>
198 <listitem>
199 <para>Mounts virtual kernel file systems, such as
200 <systemitem class="filesystem">proc</systemitem></para>
201 <indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts">
202 <primary sortas="d-mountkernfs">mountkernfs</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 <varlistentry id="network-bootscripts">
208 <term><command>network</command></term>
209 <listitem>
210 <para>Sets up network interfaces, such as network cards, and sets up
211 the default gateway (where applicable)</para>
212 <indexterm zone="ch-scripts-bootscripts network-bootscripts">
213 <primary sortas="d-network">network</primary>
214 </indexterm>
215 </listitem>
216 </varlistentry>
217
218 <varlistentry id="rc-bootscripts">
219 <term><command>rc</command></term>
220 <listitem>
221 <para>The master run-level control script; it is responsible for
222 running all the other bootscripts one-by-one, in a sequence
223 determined by the name of the symbolic links being processed</para>
224 <indexterm zone="ch-scripts-bootscripts rc-bootscripts">
225 <primary sortas="d-rc">rc</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 <varlistentry id="reboot-bootscripts">
231 <term><command>reboot</command></term>
232 <listitem>
233 <para>Reboots the system</para>
234 <indexterm zone="ch-scripts-bootscripts reboot-bootscripts">
235 <primary sortas="d-reboot">reboot</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="sendsignals-bootscripts">
241 <term><command>sendsignals</command></term>
242 <listitem>
243 <para>Makes sure every process is terminated before the system reboots
244 or halts</para>
245 <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts">
246 <primary sortas="d-sendsignals">sendsignals</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="setclock-bootscripts">
252 <term><command>setclock</command></term>
253 <listitem>
254 <para>Resets the kernel clock to local time in case the hardware clock
255 is not set to UTC time</para>
256 <indexterm zone="ch-scripts-bootscripts setclock-bootscripts">
257 <primary sortas="d-setclock">setclock</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
261
262 <varlistentry id="static-bootscripts">
263 <term><command>static</command></term>
264 <listitem>
265 <para>Provides the functionality needed to assign a static Internet
266 Protocol (IP) address to a network interface</para>
267 <indexterm zone="ch-scripts-bootscripts static-bootscripts">
268 <primary sortas="d-static">static</primary>
269 </indexterm>
270 </listitem>
271 </varlistentry>
272
273 <varlistentry id="swap-bootscripts">
274 <term><command>swap</command></term>
275 <listitem>
276 <para>Enables and disables swap files and partitions</para>
277 <indexterm zone="ch-scripts-bootscripts swap-bootscripts">
278 <primary sortas="d-swap">swap</primary>
279 </indexterm>
280 </listitem>
281 </varlistentry>
282
283 <varlistentry id="sysklogd-bootscripts">
284 <term><command>sysklogd</command></term>
285 <listitem>
286 <para>Starts and stops the system and kernel log daemons</para>
287 <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts">
288 <primary sortas="d-sysklogd">sysklogd</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 <varlistentry id="template-bootscripts">
294 <term><command>template</command></term>
295 <listitem>
296 <para>A template to create custom bootscripts for other
297 daemons</para>
298 <indexterm zone="ch-scripts-bootscripts template-bootscripts">
299 <primary sortas="d-template">template</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 <varlistentry id="eudev-bootscripts">
305 <term><command>udev</command></term>
306 <listitem>
307 <para>Starts and stops the Eudev daemon</para>
308 <indexterm zone="ch-scripts-bootscripts eudev-bootscripts">
309 <primary sortas="d-eudev">udev</primary>
310 </indexterm>
311 </listitem>
312 </varlistentry>
313
314 </variablelist>
315
316 </sect2>
317
318</sect1>
Note: See TracBrowser for help on using the repository browser.