source: chapter07/bootscripts.xml@ 6f31272

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 6f31272 was f67f5cf, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Tags corrections

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

  • Property mode set to 100644
File size: 7.8 KB
RevLine 
[673b0d8]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]>
[a001133]6<sect1 id="ch-scripts-bootscripts" xreflabel="Bootscripts" role="wrap">
[673b0d8]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>
[418e6cc]11
[a001133]12<sect2 role="package"><title/>
[418e6cc]13<para>The LFS-Bootscripts package contains a set of bootscripts.</para>
14
[a001133]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>
[418e6cc]20
[a001133]21<segmentedlist>
22<segtitle>LFS-Bootscripts installation depends on</segtitle>
23<seglistitem><seg>Bash, Coreutils</seg></seglistitem>
24</segmentedlist>
25</sect2>
[418e6cc]26
[a001133]27<sect2 role="installation">
[418e6cc]28<title>Installation of LFS-Bootscripts</title>
29
[673b0d8]30<para>Installation of the bootscripts is very simple:</para>
31
32<screen><userinput>make install</userinput></screen>
33
[bad0dd1]34<para>Also install hotplug's boot script:</para>
35
36<screen><userinput>make install-hotplug</userinput></screen>
37
[673b0d8]38</sect2>
[418e6cc]39
40
[c6cb3aa]41<sect2 id="contents-bootscripts" role="content"><title>Contents of LFS-bootscripts</title>
[418e6cc]42
[c6cb3aa]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>
[418e6cc]49
[c6cb3aa]50<variablelist><title>Short descriptions</title>
[673b0d8]51
[b8a819f]52<varlistentry id="checkfs-bootscripts">
53<term><command>checkfs</command></term>
[c6cb3aa]54<listitem>
[673b0d8]55<indexterm zone="ch-scripts-bootscripts checkfs-bootscripts"><primary sortas="d-checkfs">checkfs</primary></indexterm>
[c6cb3aa]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
[b8a819f]61<varlistentry id="cleanfs-bootscripts">
62<term><command>cleanfs</command></term>
[c6cb3aa]63<listitem>
[673b0d8]64<indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts"><primary sortas="d-cleanfs">cleanfs</primary></indexterm>
[c6cb3aa]65<para>removes files that shouldn't be
[f67f5cf]66preserved between reboots, such as those in <filename class="directory">/var/run/</filename> and
67<filename class="directory">/var/lock/</filename>. It re-creates <filename>/var/run/utmp</filename>
[673b0d8]68and removes the possibly present <filename>/etc/nologin</filename>,
69<filename>/fastboot</filename> and <filename>/forcefsck</filename> files.</para>
[c6cb3aa]70</listitem>
71</varlistentry>
[673b0d8]72
[b8a819f]73<varlistentry id="console-bootscripts">
74<term><command>console</command></term>
[c6cb3aa]75<listitem>
[b32e803]76<indexterm zone="ch-scripts-bootscripts console-bootscripts"><primary sortas="d-console">console</primary></indexterm>
[c6cb3aa]77<para>loads the keymap table you specified as proper for your keyboard layout.
[b32e803]78It also sets the screen font.</para>
[c6cb3aa]79</listitem>
80</varlistentry>
[b32e803]81
[b8a819f]82<varlistentry id="functions-bootscripts">
83<term><command>functions</command></term>
[c6cb3aa]84<listitem>
[673b0d8]85<indexterm zone="ch-scripts-bootscripts functions-bootscripts"><primary sortas="d-functions">functions</primary></indexterm>
[c6cb3aa]86<para>contains functions shared among
[673b0d8]87different scripts, such as error and status checking.</para>
[c6cb3aa]88</listitem>
89</varlistentry>
[673b0d8]90
[b8a819f]91<varlistentry id="halt-bootscripts">
92<term><command>halt</command></term>
[c6cb3aa]93<listitem>
[673b0d8]94<indexterm zone="ch-scripts-bootscripts halt-bootscripts"><primary sortas="d-halt">halt</primary></indexterm>
[c6cb3aa]95<para>halts the system.</para>
96</listitem>
97</varlistentry>
[673b0d8]98
[b8a819f]99<varlistentry id="ifdown-bootscripts">
100<term><command>ifdown</command> and <command>ifup</command></term>
[c6cb3aa]101<listitem>
[673b0d8]102<indexterm zone="ch-scripts-bootscripts ifdown-bootscripts"><primary sortas="d-ifdown">ifdown</primary></indexterm>
[c6cb3aa]103<para>assist the network script with network devices.</para>
104</listitem>
105</varlistentry>
[673b0d8]106
[b8a819f]107<varlistentry id="localnet-bootscripts">
108<term><command>localnet</command></term>
[c6cb3aa]109<listitem>
[673b0d8]110<indexterm zone="ch-scripts-bootscripts localnet-bootscripts"><primary sortas="d-localnet">localnet</primary></indexterm>
[c6cb3aa]111<para>sets up the system's hostname and local loopback device.</para>
112</listitem>
113</varlistentry>
[673b0d8]114
[b8a819f]115<varlistentry id="mountfs-bootscripts">
116<term><command>mountfs</command></term>
[c6cb3aa]117<listitem>
[673b0d8]118<indexterm zone="ch-scripts-bootscripts mountfs-bootscripts"><primary sortas="d-mountfs">mountfs</primary></indexterm>
[c6cb3aa]119<para>mounts all file systems that
[673b0d8]120aren't marked <emphasis>noauto</emphasis> or aren't network based.</para>
[c6cb3aa]121</listitem>
122</varlistentry>
[673b0d8]123
[b8a819f]124<varlistentry id="mountkernfs-bootscripts">
125<term><command>mountkernfs</command></term>
[c6cb3aa]126<listitem>
[673b0d8]127<indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts"><primary sortas="d-mountkernfs">mountkernfs</primary></indexterm>
[f67f5cf]128<para>is used to mount kernel-provided file systems, such as <systemitem class="filesystem">proc</systemitem>.</para>
[c6cb3aa]129</listitem>
130</varlistentry>
[418e6cc]131
[b8a819f]132<varlistentry id="network-bootscripts">
133<term><command>network</command></term>
[c6cb3aa]134<listitem>
[673b0d8]135<indexterm zone="ch-scripts-bootscripts network-bootscripts"><primary sortas="d-network">network</primary></indexterm>
[c6cb3aa]136<para>sets up network interfaces, such
[673b0d8]137as network cards, and sets up the default gateway where applicable.</para>
[c6cb3aa]138</listitem>
139</varlistentry>
[673b0d8]140
[b8a819f]141<varlistentry id="rc-bootscripts">
142<term><command>rc</command></term>
[c6cb3aa]143<listitem>
[673b0d8]144<indexterm zone="ch-scripts-bootscripts rc-bootscripts"><primary sortas="d-rc">rc</primary></indexterm>
[c6cb3aa]145<para>is the master run-level control script.
[673b0d8]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>
[c6cb3aa]148</listitem>
149</varlistentry>
[673b0d8]150
[b8a819f]151<varlistentry id="reboot-bootscripts">
152<term><command>reboot</command></term>
[c6cb3aa]153<listitem>
[673b0d8]154<indexterm zone="ch-scripts-bootscripts reboot-bootscripts"><primary sortas="d-reboot">reboot</primary></indexterm>
[c6cb3aa]155<para>reboots the system.</para>
156</listitem>
157</varlistentry>
[673b0d8]158
[b8a819f]159<varlistentry id="sendsignals-bootscripts">
160<term><command>sendsignals</command></term>
[c6cb3aa]161<listitem>
[673b0d8]162<indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts"><primary sortas="d-sendsignals">sendsignals</primary></indexterm>
[c6cb3aa]163<para>makes sure every process is terminated before the system reboots or halts.</para>
164</listitem>
165</varlistentry>
[673b0d8]166
[b8a819f]167<varlistentry id="setclock-bootscripts">
168<term><command>setclock</command></term>
[c6cb3aa]169<listitem>
[673b0d8]170<indexterm zone="ch-scripts-bootscripts setclock-bootscripts"><primary sortas="d-setclock">setclock</primary></indexterm>
[c6cb3aa]171<para>resets the kernel clock to
[673b0d8]172localtime in case the hardware clock isn't set to GMT time.</para>
[c6cb3aa]173</listitem>
174</varlistentry>
[673b0d8]175
[b8a819f]176<varlistentry id="static-bootscripts">
177<term><command>static</command></term>
[c6cb3aa]178<listitem>
[673b0d8]179<indexterm zone="ch-scripts-bootscripts static-bootscripts"><primary sortas="d-static">static</primary></indexterm>
[c6cb3aa]180<para>provides the functionality needed
[673b0d8]181to assign a static IP address to a network interface.</para>
[c6cb3aa]182</listitem>
183</varlistentry>
[673b0d8]184
[b8a819f]185<varlistentry id="swap-bootscripts">
186<term><command>swap</command></term>
[c6cb3aa]187<listitem>
[673b0d8]188<indexterm zone="ch-scripts-bootscripts swap-bootscripts"><primary sortas="d-swap">swap</primary></indexterm>
[c6cb3aa]189<para>enables and disables swap files and partitions.</para>
190</listitem>
191</varlistentry>
[673b0d8]192
[b8a819f]193<varlistentry id="sysklogd-bootscripts">
194<term><command>sysklogd</command></term>
[c6cb3aa]195<listitem>
[673b0d8]196<indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts"><primary sortas="d-sysklogd">sysklogd</primary></indexterm>
[c6cb3aa]197<para>starts and stops the system and kernel log daemons.</para>
198</listitem>
199</varlistentry>
[673b0d8]200
[b8a819f]201<varlistentry id="template-bootscripts">
202<term><command>template</command></term>
[c6cb3aa]203<listitem>
[673b0d8]204<indexterm zone="ch-scripts-bootscripts template-bootscripts"><primary sortas="d-template">template</primary></indexterm>
[c6cb3aa]205<para>is a template you can use to
[673b0d8]206create your own bootscripts for your other daemons.</para>
[c6cb3aa]207</listitem>
208</varlistentry>
209</variablelist>
[673b0d8]210
211</sect2>
212
213</sect1>
Note: See TracBrowser for help on using the repository browser.