aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/bootscripts.xml
blob: 186e297309e5ea6190e5bf3c27207821f5a09dad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../general.ent">
  %general-entities;
]>
<sect1 id="ch-scripts-bootscripts" role="wrap">
<title>LFS-Bootscripts-&lfs-bootscripts-version;</title>
<?dbhtml filename="bootscripts.html"?>

<indexterm zone="ch-scripts-bootscripts"><primary sortas="a-Bootscripts">Bootscripts</primary></indexterm>

<sect2 role="package"><title/>
<para>The LFS-Bootscripts package contains a set of bootscripts.</para>

<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<seglistitem><seg>0.1 SBU</seg><seg>516 KB</seg></seglistitem>
</segmentedlist>

<segmentedlist>
<segtitle>&dependencies;</segtitle>
<seglistitem><seg>Bash and Coreutils</seg></seglistitem>
</segmentedlist>
</sect2>

<sect2 role="installation">
<title>Installation of LFS-Bootscripts</title>

<para>Install the package:</para>

<screen><userinput>make install</userinput></screen>

</sect2>

<sect2 id="contents-bootscripts" role="content"><title>Contents of LFS-bootscripts</title>

<segmentedlist>
<segtitle>Installed scripts</segtitle>
<seglistitem><seg>checkfs, cleanfs, console, functions, halt, hotplug, ifdown, ifup,
localnet, mountfs, mountkernfs, network, rc, reboot, sendsignals, setclock, static, 
swap, sysklogd, template, and udev</seg></seglistitem>
</segmentedlist>

<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>

<varlistentry id="checkfs-bootscripts">
<term><command>checkfs</command></term>
<listitem>
<para>Checks the file systems before they are mounted (with the exception of journal
and network based file systems)</para>
<indexterm zone="ch-scripts-bootscripts checkfs-bootscripts"><primary sortas="d-checkfs">checkfs</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="cleanfs-bootscripts">
<term><command>cleanfs</command></term>
<listitem>
<para>Removes files that should not be
preserved between reboots, such as those in <filename class="directory">/var/run/</filename> and
<filename class="directory">/var/lock/</filename>; it re-creates <filename>/var/run/utmp</filename>
and removes the possibly present <filename>/etc/nologin</filename>,
<filename>/fastboot</filename>, and <filename>/forcefsck</filename> files</para>
<indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts"><primary sortas="d-cleanfs">cleanfs</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="console-bootscripts">
<term><command>console</command></term>
<listitem>
<para>Loads the keymap table specified as proper for the keyboard
layout; it also sets the screen font</para>
<indexterm zone="ch-scripts-bootscripts console-bootscripts"><primary sortas="d-console">console</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="functions-bootscripts">
<term><command>functions</command></term>
<listitem>
<para>Contains functions shared among different scripts, such as error
and status checking</para>
<indexterm zone="ch-scripts-bootscripts functions-bootscripts"><primary sortas="d-functions">functions</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="halt-bootscripts">
<term><command>halt</command></term>
<listitem>
<para>Halts the system</para>
<indexterm zone="ch-scripts-bootscripts halt-bootscripts"><primary sortas="d-halt">halt</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="hotplug-bootscripts">
<term><command>hotplug</command></term>
<listitem>
<para>Load modules for system devices</para>
<indexterm zone="ch-scripts-bootscripts hotplug-bootscripts"><primary sortas="d-hotplug">hotplug</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="ifdown-bootscripts">
<term><command>ifdown</command></term>
<listitem>
<para>Assists the network script with network devices</para>
<indexterm zone="ch-scripts-bootscripts ifdown-bootscripts"><primary sortas="d-ifdown">ifdown</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="ifup-bootscripts">
<term><command>ifup</command></term>
<listitem>
<para>Assists the network script with network devices</para>
<indexterm zone="ch-scripts-bootscripts ifup-bootscripts"><primary sortas="d-ifup">ifup</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="localnet-bootscripts">
<term><command>localnet</command></term>
<listitem>
<para>Sets up the system's hostname and local loopback device</para>
<indexterm zone="ch-scripts-bootscripts localnet-bootscripts"><primary sortas="d-localnet">localnet</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="mountfs-bootscripts">
<term><command>mountfs</command></term>
<listitem>
<para>Mounts all file systems, except ones that are marked
<emphasis>noauto</emphasis> or are network based</para>
<indexterm zone="ch-scripts-bootscripts mountfs-bootscripts"><primary sortas="d-mountfs">mountfs</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="mountkernfs-bootscripts">
<term><command>mountkernfs</command></term>
<listitem>
<para>Is used to mount kernel-provided file systems, such as
<systemitem class="filesystem">proc</systemitem></para>
<indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts"><primary sortas="d-mountkernfs">mountkernfs</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="network-bootscripts">
<term><command>network</command></term>
<listitem>
<para>Sets up network interfaces, such as network cards, and sets up
the default gateway (where applicable)</para>
<indexterm zone="ch-scripts-bootscripts network-bootscripts"><primary sortas="d-network">network</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="rc-bootscripts">
<term><command>rc</command></term>
<listitem>
<para>The master run-level control script; it is responsible for
running all other scripts one-by-one, in a sequence determined by
the name of the symbolic links being processed</para>
<indexterm zone="ch-scripts-bootscripts rc-bootscripts"><primary sortas="d-rc">rc</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="reboot-bootscripts">
<term><command>reboot</command></term>
<listitem>
<para>Reboots the system</para>
<indexterm zone="ch-scripts-bootscripts reboot-bootscripts"><primary sortas="d-reboot">reboot</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="sendsignals-bootscripts">
<term><command>sendsignals</command></term>
<listitem>
<para>Makes sure every process is terminated before the system reboots
or halts</para>
<indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts"><primary sortas="d-sendsignals">sendsignals</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="setclock-bootscripts">
<term><command>setclock</command></term>
<listitem>
<para>Resets the kernel clock to local time in case the hardware clock
is not set to UTC time</para>
<indexterm zone="ch-scripts-bootscripts setclock-bootscripts"><primary sortas="d-setclock">setclock</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="static-bootscripts">
<term><command>static</command></term>
<listitem>
<para>Provides the functionality needed to assign a static Internet
Protocol (IP) address to a network interface</para>
<indexterm zone="ch-scripts-bootscripts static-bootscripts"><primary sortas="d-static">static</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="swap-bootscripts">
<term><command>swap</command></term>
<listitem>
<para>Enables and disables swap files and partitions</para>
<indexterm zone="ch-scripts-bootscripts swap-bootscripts"><primary sortas="d-swap">swap</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="sysklogd-bootscripts">
<term><command>sysklogd</command></term>
<listitem>
<para>Starts and stops the system and kernel log daemons</para>
<indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts"><primary sortas="d-sysklogd">sysklogd</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="template-bootscripts">
<term><command>template</command></term>
<listitem>
<para>A template to create custom bootscripts for other
daemons</para>
<indexterm zone="ch-scripts-bootscripts template-bootscripts"><primary sortas="d-template">template</primary></indexterm>
</listitem>
</varlistentry>

<varlistentry id="udev-bootscripts">
<term><command>udev</command></term>
<listitem>
<para>Sets up udev and create the device nodes in <filename
class="directory">/dev</filename></para>
<indexterm zone="ch-scripts-bootscripts udev-bootscripts"><primary sortas="d-udev">udev</primary></indexterm>
</listitem>
</varlistentry>
</variablelist>

</sect2>

</sect1>