source: chapter07/bootscripts.xml@ 3546862

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.0 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 3546862 was b8a819f, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Changed the id's location in the Short descriptions sections to fix a bug in the PDF generation.

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

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