source: chapter07/bootscripts.xml@ 6be8f06

Last change on this file since 6be8f06 was a811dff0, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • (chapter07/*.xml) RELAX NG validation fixes

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4351 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 8.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE section [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-scripts-bootscripts"
8 xreflabel="Bootscripts" role="wrap">
9<info><title>LFS-Bootscripts-&bootscripts-version;</title></info>
10<?dbhtml filename="bootscripts.html"?>
11
12<indexterm zone="ch-scripts-bootscripts"><primary sortas="a-Bootscripts">Bootscripts</primary></indexterm>
13
14<section role="package"><info><title/></info>
15<para>The LFS-Bootscripts package contains a set of bootscripts.</para>
16
17<segmentedlist>
18<segtitle>&buildtime;</segtitle>
19<segtitle>&diskspace;</segtitle>
20<seglistitem><seg>0.1 SBU</seg><seg>0.3 MB</seg></seglistitem>
21</segmentedlist>
22
23<segmentedlist>
24<segtitle>LFS-Bootscripts installation depends on</segtitle>
25<seglistitem><seg>Bash, Coreutils</seg></seglistitem>
26</segmentedlist>
27</section>
28
29<section role="installation">
30<info><title>Installation of LFS-Bootscripts</title></info>
31
32<para>Installation of the bootscripts is very simple:</para>
33
34<screen><userinput>make install</userinput></screen>
35
36<para>Since this version of LFS also uses the hotplug and syslog-ng packages,
37we also want to make sure we install the bootscripts for those as well:</para>
38
39<screen><userinput>make install-hotplug
40make install-syslog-ng</userinput></screen>
41
42</section>
43
44
45<section xml:id="contents-bootscripts" role="content"><info><title>Contents of LFS-bootscripts</title></info>
46
47<segmentedlist>
48<segtitle>Installed scripts</segtitle>
49<seglistitem><seg>checkfs, cleanfs, console, functions, halt, ifdown, ifup,
50localnet, mountfs, mountkernfs, network, rc, reboot, sendsignals, setclock, static,
51swap, sysklogd and template</seg></seglistitem>
52</segmentedlist>
53
54<variablelist><title>Short descriptions</title>
55
56<varlistentry xml:id="checkfs-bootscripts">
57<term><command>checkfs</command></term>
58<listitem>
59<indexterm zone="ch-scripts-bootscripts checkfs-bootscripts"><primary sortas="d-checkfs">checkfs</primary></indexterm>
60<para>checks the file systems just before they are mounted (with the exception of journal
61and network based file systems).</para>
62</listitem>
63</varlistentry>
64
65<varlistentry xml:id="cleanfs-bootscripts">
66<term><command>cleanfs</command></term>
67<listitem>
68<indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts"><primary sortas="d-cleanfs">cleanfs</primary></indexterm>
69<para>removes files that shouldn't be
70preserved between reboots, such as those in <filename class="directory">/var/run/</filename> and
71<filename class="directory">/var/lock/</filename>. It re-creates <filename>/var/run/utmp</filename>
72and removes the possibly present <filename>/etc/nologin</filename>,
73<filename>/fastboot</filename> and <filename>/forcefsck</filename> files.</para>
74</listitem>
75</varlistentry>
76
77<varlistentry xml:id="console-bootscripts">
78<term><command>console</command></term>
79<listitem>
80<indexterm zone="ch-scripts-bootscripts console-bootscripts"><primary sortas="d-console">console</primary></indexterm>
81<para>loads the keymap table you specified as proper for your keyboard layout.
82It also sets the screen font.</para>
83</listitem>
84</varlistentry>
85
86<varlistentry xml:id="functions-bootscripts">
87<term><command>functions</command></term>
88<listitem>
89<indexterm zone="ch-scripts-bootscripts functions-bootscripts"><primary sortas="d-functions">functions</primary></indexterm>
90<para>contains functions shared among
91different scripts, such as error and status checking.</para>
92</listitem>
93</varlistentry>
94
95<varlistentry xml:id="halt-bootscripts">
96<term><command>halt</command></term>
97<listitem>
98<indexterm zone="ch-scripts-bootscripts halt-bootscripts"><primary sortas="d-halt">halt</primary></indexterm>
99<para>halts the system.</para>
100</listitem>
101</varlistentry>
102
103<varlistentry xml:id="ifdown-bootscripts">
104<term><command>ifdown</command> and <command>ifup</command></term>
105<listitem>
106<indexterm zone="ch-scripts-bootscripts ifdown-bootscripts"><primary sortas="d-ifdown">ifdown</primary></indexterm>
107<para>assist the network script with network devices.</para>
108</listitem>
109</varlistentry>
110
111<varlistentry xml:id="localnet-bootscripts">
112<term><command>localnet</command></term>
113<listitem>
114<indexterm zone="ch-scripts-bootscripts localnet-bootscripts"><primary sortas="d-localnet">localnet</primary></indexterm>
115<para>sets up the system's hostname and local loopback device.</para>
116</listitem>
117</varlistentry>
118
119<varlistentry xml:id="mountfs-bootscripts">
120<term><command>mountfs</command></term>
121<listitem>
122<indexterm zone="ch-scripts-bootscripts mountfs-bootscripts"><primary sortas="d-mountfs">mountfs</primary></indexterm>
123<para>mounts all file systems that
124aren't marked <emphasis>noauto</emphasis> or aren't network based.</para>
125</listitem>
126</varlistentry>
127
128<varlistentry xml:id="mountkernfs-bootscripts">
129<term><command>mountkernfs</command></term>
130<listitem>
131<indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts"><primary sortas="d-mountkernfs">mountkernfs</primary></indexterm>
132<para>is used to mount kernel-provided file systems, such as <systemitem class="filesystem">proc</systemitem>.</para>
133</listitem>
134</varlistentry>
135
136<varlistentry xml:id="network-bootscripts">
137<term><command>network</command></term>
138<listitem>
139<indexterm zone="ch-scripts-bootscripts network-bootscripts"><primary sortas="d-network">network</primary></indexterm>
140<para>sets up network interfaces, such
141as network cards, and sets up the default gateway where applicable.</para>
142</listitem>
143</varlistentry>
144
145<varlistentry xml:id="rc-bootscripts">
146<term><command>rc</command></term>
147<listitem>
148<indexterm zone="ch-scripts-bootscripts rc-bootscripts"><primary sortas="d-rc">rc</primary></indexterm>
149<para>is the master run-level control script.
150It is responsible for running all the other scripts one-by-one, in a sequence
151determined by the name of the symbolic links being processed.</para>
152</listitem>
153</varlistentry>
154
155<varlistentry xml:id="reboot-bootscripts">
156<term><command>reboot</command></term>
157<listitem>
158<indexterm zone="ch-scripts-bootscripts reboot-bootscripts"><primary sortas="d-reboot">reboot</primary></indexterm>
159<para>reboots the system.</para>
160</listitem>
161</varlistentry>
162
163<varlistentry xml:id="sendsignals-bootscripts">
164<term><command>sendsignals</command></term>
165<listitem>
166<indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts"><primary sortas="d-sendsignals">sendsignals</primary></indexterm>
167<para>makes sure every process is terminated before the system reboots or halts.</para>
168</listitem>
169</varlistentry>
170
171<varlistentry xml:id="setclock-bootscripts">
172<term><command>setclock</command></term>
173<listitem>
174<indexterm zone="ch-scripts-bootscripts setclock-bootscripts"><primary sortas="d-setclock">setclock</primary></indexterm>
175<para>resets the kernel clock to
176localtime in case the hardware clock isn't set to GMT time.</para>
177</listitem>
178</varlistentry>
179
180<varlistentry xml:id="static-bootscripts">
181<term><command>static</command></term>
182<listitem>
183<indexterm zone="ch-scripts-bootscripts static-bootscripts"><primary sortas="d-static">static</primary></indexterm>
184<para>provides the functionality needed
185to assign a static IP address to a network interface.</para>
186</listitem>
187</varlistentry>
188
189<varlistentry xml:id="swap-bootscripts">
190<term><command>swap</command></term>
191<listitem>
192<indexterm zone="ch-scripts-bootscripts swap-bootscripts"><primary sortas="d-swap">swap</primary></indexterm>
193<para>enables and disables swap files and partitions.</para>
194</listitem>
195</varlistentry>
196
197<varlistentry xml:id="syslogng-bootscripts">
198<term><command>sysklogd</command></term>
199<listitem>
200<indexterm zone="ch-scripts-bootscripts syslogng-bootscripts"><primary sortas="d-syslogng">syslog-ng</primary></indexterm>
201<para>starts and stops the system and kernel log daemons.</para>
202</listitem>
203</varlistentry>
204
205<varlistentry xml:id="template-bootscripts">
206<term><command>template</command></term>
207<listitem>
208<indexterm zone="ch-scripts-bootscripts template-bootscripts"><primary sortas="d-template">template</primary></indexterm>
209<para>is a template you can use to
210create your own bootscripts for your other daemons.</para>
211</listitem>
212</varlistentry>
213</variablelist>
214
215</section>
216
217</section>
Note: See TracBrowser for help on using the repository browser.