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

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

More updates to index references

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