source: chapter07/bootscripts.xml@ 6aaa1b0

6.0
Last change on this file since 6aaa1b0 was ad6dca1, checked in by Zack Winkles <winkie@…>, 20 years ago

Fixed a typo

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

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