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">
8 <sect1 id="ch-scripts-bootscripts" role="wrap">
9 <?dbhtml filename="bootscripts.html"?>
11 <sect1info condition="script">
12 <productname>lfs-bootscripts</productname>
13 <productnumber>&lfs-bootscripts-version;</productnumber>
14 <address>&lfs-bootscripts-url;</address>
17 <title>LFS-Bootscripts-&lfs-bootscripts-version;</title>
19 <indexterm zone="ch-scripts-bootscripts">
20 <primary sortas="a-Bootscripts">Bootscripts</primary>
23 <sect2 role="package">
26 <para>The LFS-Bootscripts package contains a set of scripts to start/stop the
27 LFS system at bootup/shutdown.</para>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
34 <seg>&lfs-bootscripts-ch7-sbu;</seg>
35 <seg>&lfs-bootscripts-ch7-du;</seg>
41 <sect2 role="installation">
42 <title>Installation of LFS-Bootscripts</title>
44 <para>Install the package:</para>
46 <screen><userinput remap="install">make install</userinput></screen>
50 <sect2 id="contents-bootscripts" role="content">
51 <title>Contents of LFS-Bootscripts</title>
53 <segtitle>Installed scripts</segtitle>
54 <segtitle>Installed directories</segtitle>
57 <seg>checkfs, cleanfs, console, consolelog, functions, halt, ifdown,
58 ifup, localnet, modules, mountfs, mountkernfs, network, rc, reboot,
59 sendsignals, setclock, static, swap, sysctl, sysklogd, template,
60 udev, and udev_retry</seg>
61 <seg>/etc/rc.d, /etc/sysconfig, /lib/boot</seg>
66 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
67 <?dbfo list-presentation="list"?>
68 <?dbhtml list-presentation="table"?>
70 <varlistentry id="checkfs-bootscripts">
71 <term><command>checkfs</command></term>
73 <para>Checks the integrity of the file systems before they are mounted
74 (with the exception of journal and network based file systems)</para>
75 <indexterm zone="ch-scripts-bootscripts checkfs-bootscripts">
76 <primary sortas="d-checkfs">checkfs</primary>
81 <varlistentry id="cleanfs-bootscripts">
82 <term><command>cleanfs</command></term>
84 <para>Removes files that should not be preserved between reboots, such
85 as those in <filename class="directory">/var/run/</filename> and
86 <filename class="directory">/var/lock/</filename>; it re-creates
87 <filename>/var/run/utmp</filename> and removes the possibly present
88 <filename>/etc/nologin</filename>, <filename>/fastboot</filename>, and
89 <filename>/forcefsck</filename> files</para>
90 <indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts">
91 <primary sortas="d-cleanfs">cleanfs</primary>
96 <varlistentry id="console-bootscripts">
97 <term><command>console</command></term>
99 <para>Loads the correct keymap table for the desired keyboard layout;
100 it also sets the screen font</para>
101 <indexterm zone="ch-scripts-bootscripts console-bootscripts">
102 <primary sortas="d-console">console</primary>
107 <varlistentry id="consolelog-bootscripts">
108 <term><command>consolelog</command></term>
110 <para>Sets the kernel log level to control messages reaching the
112 <indexterm zone="ch-scripts-bootscripts consolelog-bootscripts">
113 <primary sortas="d-consolelog">consolelog</primary>
118 <varlistentry id="functions-bootscripts">
119 <term><command>functions</command></term>
121 <para>Contains common functions, such as error and status checking,
122 that are used by several bootscripts</para>
123 <indexterm zone="ch-scripts-bootscripts functions-bootscripts">
124 <primary sortas="d-functions">functions</primary>
129 <varlistentry id="halt-bootscripts">
130 <term><command>halt</command></term>
132 <para>Halts the system</para>
133 <indexterm zone="ch-scripts-bootscripts halt-bootscripts">
134 <primary sortas="d-halt">halt</primary>
139 <varlistentry id="ifdown-bootscripts">
140 <term><command>ifdown</command></term>
142 <para>Stops a network device</para>
143 <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts">
144 <primary sortas="d-ifdown">ifdown</primary>
149 <varlistentry id="ifup-bootscripts">
150 <term><command>ifup</command></term>
152 <para>Initializes a network device</para>
153 <indexterm zone="ch-scripts-bootscripts ifup-bootscripts">
154 <primary sortas="d-ifup">ifup</primary>
159 <varlistentry id="localnet-bootscripts">
160 <term><command>localnet</command></term>
162 <para>Sets up the system's hostname and local loopback device</para>
163 <indexterm zone="ch-scripts-bootscripts localnet-bootscripts">
164 <primary sortas="d-localnet">localnet</primary>
169 <varlistentry id="modules-bootscripts">
170 <term><command>modules</command></term>
172 <para>Loads kernel modules listed in
173 <filename>/etc/sysconfig/modules</filename>, using arguments
174 that are also given there</para>
175 <indexterm zone="ch-scripts-bootscripts modules-bootscripts">
176 <primary sortas="d-modules">modules</primary>
181 <varlistentry id="mountfs-bootscripts">
182 <term><command>mountfs</command></term>
184 <para>Mounts all file systems, except ones that are marked
185 <emphasis>noauto</emphasis> or are network based</para>
186 <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts">
187 <primary sortas="d-mountfs">mountfs</primary>
192 <varlistentry id="mountkernfs-bootscripts">
193 <term><command>mountkernfs</command></term>
195 <para>Mounts virtual kernel file systems, such as <systemitem
196 class="filesystem">proc</systemitem></para>
197 <indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts">
198 <primary sortas="d-mountkernfs">mountkernfs</primary>
203 <varlistentry id="network-bootscripts">
204 <term><command>network</command></term>
206 <para>Sets up network interfaces, such as network cards, and sets up
207 the default gateway (where applicable)</para>
208 <indexterm zone="ch-scripts-bootscripts network-bootscripts">
209 <primary sortas="d-network">network</primary>
214 <varlistentry id="rc-bootscripts">
215 <term><command>rc</command></term>
217 <para>The master run-level control script; it is responsible for
218 running all the other bootscripts one-by-one, in a sequence determined
219 by the name of the symbolic links being processed</para>
220 <indexterm zone="ch-scripts-bootscripts rc-bootscripts">
221 <primary sortas="d-rc">rc</primary>
226 <varlistentry id="reboot-bootscripts">
227 <term><command>reboot</command></term>
229 <para>Reboots the system</para>
230 <indexterm zone="ch-scripts-bootscripts reboot-bootscripts">
231 <primary sortas="d-reboot">reboot</primary>
236 <varlistentry id="sendsignals-bootscripts">
237 <term><command>sendsignals</command></term>
239 <para>Makes sure every process is terminated before the system reboots
241 <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts">
242 <primary sortas="d-sendsignals">sendsignals</primary>
247 <varlistentry id="setclock-bootscripts">
248 <term><command>setclock</command></term>
250 <para>Resets the kernel clock to local time in case the hardware clock
251 is not set to UTC time</para>
252 <indexterm zone="ch-scripts-bootscripts setclock-bootscripts">
253 <primary sortas="d-setclock">setclock</primary>
258 <varlistentry id="static-bootscripts">
259 <term><command>static</command></term>
261 <para>Provides the functionality needed to assign a static Internet
262 Protocol (IP) address to a network interface</para>
263 <indexterm zone="ch-scripts-bootscripts static-bootscripts">
264 <primary sortas="d-static">static</primary>
269 <varlistentry id="swap-bootscripts">
270 <term><command>swap</command></term>
272 <para>Enables and disables swap files and partitions</para>
273 <indexterm zone="ch-scripts-bootscripts swap-bootscripts">
274 <primary sortas="d-swap">swap</primary>
279 <varlistentry id="sysctl-bootscripts">
280 <term><command>sysctl</command></term>
282 <para>Loads system configuration values from
283 <filename>/etc/sysctl.conf</filename>, if that file exists,
284 into the running kernel</para>
285 <indexterm zone="ch-scripts-bootscripts sysctl-bootscripts">
286 <primary sortas="d-sysctl">sysctl</primary>
291 <varlistentry id="sysklogd-bootscripts">
292 <term><command>sysklogd</command></term>
294 <para>Starts and stops the system and kernel log daemons</para>
295 <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts">
296 <primary sortas="d-sysklogd">sysklogd</primary>
301 <varlistentry id="template-bootscripts">
302 <term><command>template</command></term>
304 <para>A template to create custom bootscripts for other
306 <indexterm zone="ch-scripts-bootscripts template-bootscripts">
307 <primary sortas="d-template">template</primary>
312 <varlistentry id="udev-bootscripts">
313 <term><command>udev</command></term>
315 <para>Prepares the <filename class="directory">/dev</filename>
316 directory and starts Udev</para>
317 <indexterm zone="ch-scripts-bootscripts udev-bootscripts">
318 <primary sortas="d-udev">udev</primary>
323 <varlistentry id="udev-retry-bootscripts">
324 <term><command>udev_retry</command></term>
326 <para>Retries failed udev uevents, and copies generated rules
328 <filename class="directory">/etc/udev/rules.d</filename> if required</para>
329 <indexterm zone="ch-scripts-bootscripts udev-retry-bootscripts">
330 <primary sortas="d-udev-retry">udev_retry</primary>