source: chapter07/bootscripts.xml@ cba2d4e

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 7.6 7.7 7.8 7.9 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 cba2d4e was cba2d4e, checked in by Bruce Dubbs <bdubbs@…>, 10 years ago

Added systemd and dbus to the book.
Set up systemd and System V side-by-side with the
ability to reboot to either system.

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

  • Property mode set to 100644
File size: 12.1 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 <sect1info condition="script">
12 <productname>lfs-bootscripts</productname>
13 <productnumber>&lfs-bootscripts-version;</productnumber>
14 <address>&lfs-bootscripts-url;</address>
15 </sect1info>
16
17 <title>LFS-Bootscripts-&lfs-bootscripts-version;</title>
18
19 <indexterm zone="ch-scripts-bootscripts">
20 <primary sortas="a-Bootscripts">Bootscripts</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The LFS-Bootscripts package contains a set of scripts to start/stop
27 the LFS system at bootup/shutdown. The networking systemd unit file is
28 also installed.</para>
29
30 <segmentedlist>
31 <segtitle>&buildtime;</segtitle>
32 <segtitle>&diskspace;</segtitle>
33
34 <seglistitem>
35 <seg>&lfs-bootscripts-ch7-sbu;</seg>
36 <seg>&lfs-bootscripts-ch7-du;</seg>
37 </seglistitem>
38 </segmentedlist>
39
40 </sect2>
41
42 <sect2 role="installation">
43 <title>Installation of LFS-Bootscripts</title>
44
45 <para>Install the package:</para>
46
47<screen><userinput remap="install">make install</userinput></screen>
48
49 </sect2>
50
51 <sect2 id="contents-bootscripts" role="content">
52 <title>Contents of LFS-Bootscripts</title>
53 <segmentedlist>
54 <segtitle>Installed scripts</segtitle>
55 <segtitle>Installed unit</segtitle>
56 <segtitle>Installed directories</segtitle>
57
58 <seglistitem>
59 <seg>checkfs, cleanfs, console, functions, halt, ifdown,
60 ifup, localnet, modules, mountfs, mountvirtfs, network, rc, reboot,
61 sendsignals, setclock, ipv4-static, swap, sysctl, sysklogd, template,
62 udev, and udev_retry</seg>
63 <seg>ifupdown@.service</seg>
64 <seg>/etc/rc.d, /etc/init.d (symbolic link), /etc/sysconfig,
65 /lib/services, /lib/lsb (symbolic link)</seg>
66 </seglistitem>
67 </segmentedlist>
68
69 <variablelist>
70 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
71 <?dbfo list-presentation="list"?>
72 <?dbhtml list-presentation="table"?>
73
74 <varlistentry id="checkfs-bootscripts">
75 <term><command>checkfs</command></term>
76 <listitem>
77 <para>Checks the integrity of the file systems before they are mounted
78 (with the exception of journal and network based file systems)</para>
79 <indexterm zone="ch-scripts-bootscripts checkfs-bootscripts">
80 <primary sortas="d-checkfs">checkfs</primary>
81 </indexterm>
82 </listitem>
83 </varlistentry>
84
85 <varlistentry id="cleanfs-bootscripts">
86 <term><command>cleanfs</command></term>
87 <listitem>
88 <para>Removes files that should not be preserved between reboots, such
89 as those in <filename class="directory">/var/run/</filename> and
90 <filename class="directory">/var/lock/</filename>; it re-creates
91 <filename>/var/run/utmp</filename> and removes the possibly present
92 <filename>/etc/nologin</filename>, <filename>/fastboot</filename>, and
93 <filename>/forcefsck</filename> files</para>
94 <indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts">
95 <primary sortas="d-cleanfs">cleanfs</primary>
96 </indexterm>
97 </listitem>
98 </varlistentry>
99
100 <varlistentry id="console-bootscripts">
101 <term><command>console</command></term>
102 <listitem>
103 <para>Loads the correct keymap table for the desired keyboard layout;
104 it also sets the screen font</para>
105 <indexterm zone="ch-scripts-bootscripts console-bootscripts">
106 <primary sortas="d-console">console</primary>
107 </indexterm>
108 </listitem>
109 </varlistentry>
110
111 <varlistentry id="functions-bootscripts">
112 <term><command>functions</command></term>
113 <listitem>
114 <para>Contains common functions, such as error and status checking,
115 that are used by several bootscripts</para>
116 <indexterm zone="ch-scripts-bootscripts functions-bootscripts">
117 <primary sortas="d-functions">functions</primary>
118 </indexterm>
119 </listitem>
120 </varlistentry>
121
122 <varlistentry id="halt-bootscripts">
123 <term><command>halt</command></term>
124 <listitem>
125 <para>Halts the system</para>
126 <indexterm zone="ch-scripts-bootscripts halt-bootscripts">
127 <primary sortas="d-halt">halt</primary>
128 </indexterm>
129 </listitem>
130 </varlistentry>
131
132 <varlistentry id="ifdown-bootscripts">
133 <term><command>ifdown</command></term>
134 <listitem>
135 <para>Stops a network device</para>
136 <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts">
137 <primary sortas="d-ifdown">ifdown</primary>
138 </indexterm>
139 </listitem>
140 </varlistentry>
141
142 <varlistentry id="ifup-bootscripts">
143 <term><command>ifup</command></term>
144 <listitem>
145 <para>Initializes a network device</para>
146 <indexterm zone="ch-scripts-bootscripts ifup-bootscripts">
147 <primary sortas="d-ifup">ifup</primary>
148 </indexterm>
149 </listitem>
150 </varlistentry>
151
152 <varlistentry id="localnet-bootscripts">
153 <term><command>localnet</command></term>
154 <listitem>
155 <para>Sets up the system's hostname and local loopback device</para>
156 <indexterm zone="ch-scripts-bootscripts localnet-bootscripts">
157 <primary sortas="d-localnet">localnet</primary>
158 </indexterm>
159 </listitem>
160 </varlistentry>
161
162 <varlistentry id="modules-bootscripts">
163 <term><command>modules</command></term>
164 <listitem>
165 <para>Loads kernel modules listed in
166 <filename>/etc/sysconfig/modules</filename>, using arguments
167 that are also given there</para>
168 <indexterm zone="ch-scripts-bootscripts modules-bootscripts">
169 <primary sortas="d-modules">modules</primary>
170 </indexterm>
171 </listitem>
172 </varlistentry>
173
174 <varlistentry id="mountfs-bootscripts">
175 <term><command>mountfs</command></term>
176 <listitem>
177 <para>Mounts all file systems, except ones that are marked
178 <emphasis>noauto</emphasis> or are network based</para>
179 <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts">
180 <primary sortas="d-mountfs">mountfs</primary>
181 </indexterm>
182 </listitem>
183 </varlistentry>
184
185 <varlistentry id="mountvirtfs-bootscripts">
186 <term><command>mountvirtfs</command></term>
187 <listitem>
188 <para>Mounts virtual kernel file systems, such as <systemitem
189 class="filesystem">proc</systemitem></para>
190 <indexterm zone="ch-scripts-bootscripts mountvirtfs-bootscripts">
191 <primary sortas="d-mountvirtfs">mountvirtfs</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="network-bootscripts">
197 <term><command>network</command></term>
198 <listitem>
199 <para>Sets up network interfaces, such as network cards, and sets up
200 the default gateway (where applicable)</para>
201 <indexterm zone="ch-scripts-bootscripts network-bootscripts">
202 <primary sortas="d-network">network</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 <varlistentry id="rc-bootscripts">
208 <term><command>rc</command></term>
209 <listitem>
210 <para>The master run-level control script; it is responsible for
211 running all the other bootscripts one-by-one, in a sequence determined
212 by the name of the symbolic links being processed</para>
213 <indexterm zone="ch-scripts-bootscripts rc-bootscripts">
214 <primary sortas="d-rc">rc</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="reboot-bootscripts">
220 <term><command>reboot</command></term>
221 <listitem>
222 <para>Reboots the system</para>
223 <indexterm zone="ch-scripts-bootscripts reboot-bootscripts">
224 <primary sortas="d-reboot">reboot</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry id="sendsignals-bootscripts">
230 <term><command>sendsignals</command></term>
231 <listitem>
232 <para>Makes sure every process is terminated before the system reboots
233 or halts</para>
234 <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts">
235 <primary sortas="d-sendsignals">sendsignals</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="setclock-bootscripts">
241 <term><command>setclock</command></term>
242 <listitem>
243 <para>Resets the kernel clock to local time in case the hardware clock
244 is not set to UTC time</para>
245 <indexterm zone="ch-scripts-bootscripts setclock-bootscripts">
246 <primary sortas="d-setclock">setclock</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="ipv4-static-bootscripts">
252 <term><command>ipv4-static</command></term>
253 <listitem>
254 <para>Provides the functionality needed to assign a static Internet
255 Protocol (IP) address to a network interface</para>
256 <indexterm zone="ch-scripts-bootscripts ipv4-static-bootscripts">
257 <primary sortas="d-ipv4-static">ipv4-static</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
261
262 <varlistentry id="swap-bootscripts">
263 <term><command>swap</command></term>
264 <listitem>
265 <para>Enables and disables swap files and partitions</para>
266 <indexterm zone="ch-scripts-bootscripts swap-bootscripts">
267 <primary sortas="d-swap">swap</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="sysctl-bootscripts">
273 <term><command>sysctl</command></term>
274 <listitem>
275 <para>Loads system configuration values from
276 <filename>/etc/sysctl.conf</filename>, if that file exists,
277 into the running kernel</para>
278 <indexterm zone="ch-scripts-bootscripts sysctl-bootscripts">
279 <primary sortas="d-sysctl">sysctl</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 <varlistentry id="sysklogd-bootscripts">
285 <term><command>sysklogd</command></term>
286 <listitem>
287 <para>Starts and stops the system and kernel log daemons</para>
288 <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts">
289 <primary sortas="d-sysklogd">sysklogd</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 <varlistentry id="template-bootscripts">
295 <term><command>template</command></term>
296 <listitem>
297 <para>A template to create custom bootscripts for other
298 daemons</para>
299 <indexterm zone="ch-scripts-bootscripts template-bootscripts">
300 <primary sortas="d-template">template</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
304
305 <varlistentry id="udev-bootscripts">
306 <term><command>udev</command></term>
307 <listitem>
308 <para>Prepares the <filename class="directory">/dev</filename>
309 directory and starts Udev</para>
310 <indexterm zone="ch-scripts-bootscripts udev-bootscripts">
311 <primary sortas="d-udev">udev</primary>
312 </indexterm>
313 </listitem>
314 </varlistentry>
315
316 <varlistentry id="udev-retry-bootscripts">
317 <term><command>udev_retry</command></term>
318 <listitem>
319 <para>Retries failed udev uevents, and copies generated rules
320 files from to
321 <filename class="directory">/etc/udev/rules.d</filename> if required</para>
322 <indexterm zone="ch-scripts-bootscripts udev-retry-bootscripts">
323 <primary sortas="d-udev-retry">udev_retry</primary>
324 </indexterm>
325 </listitem>
326 </varlistentry>
327
328 </variablelist>
329
330 </sect2>
331
332</sect1>
Note: See TracBrowser for help on using the repository browser.