source: BOOK/boot/common/bootscripts.xml @ 3471ff2

clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 3471ff2 was 3471ff2, checked in by Chris Staub <chris@…>, 10 years ago

Removed obsolete commands to create links and device nodes in /lib/udev/devices

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