[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 | ]>
|
---|
[9876d9e] | 6 | <sect1 id="ch-scripts-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>
|
---|
[69993f4] | 23 | <seglistitem><seg>Bash and Coreutils</seg></seglistitem>
|
---|
[a001133] | 24 | </segmentedlist>
|
---|
| 25 | </sect2>
|
---|
[418e6cc] | 26 |
|
---|
[a001133] | 27 | <sect2 role="installation">
|
---|
[418e6cc] | 28 | <title>Installation of LFS-Bootscripts</title>
|
---|
| 29 |
|
---|
[5ba3d1d] | 30 | <para>Install the package:</para>
|
---|
[673b0d8] | 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,
|
---|
| 42 | localnet, mountfs, mountkernfs, network, rc, reboot, sendsignals, setclock, static,
|
---|
[69993f4] | 43 | swap, sysklogd, template, and udev</seg></seglistitem>
|
---|
[c6cb3aa] | 44 | </segmentedlist>
|
---|
[418e6cc] | 45 |
|
---|
[2256873] | 46 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
[3ed279f] | 47 | <?dbfo list-presentation="list"?>
|
---|
[673b0d8] | 48 |
|
---|
[b8a819f] | 49 | <varlistentry id="checkfs-bootscripts">
|
---|
| 50 | <term><command>checkfs</command></term>
|
---|
[c6cb3aa] | 51 | <listitem>
|
---|
[2256873] | 52 | <para>Checks the file systems before they are mounted (with the exception of journal
|
---|
| 53 | and network based file systems)</para>
|
---|
[3ed279f] | 54 | <indexterm zone="ch-scripts-bootscripts checkfs-bootscripts"><primary sortas="d-checkfs">checkfs</primary></indexterm>
|
---|
[c6cb3aa] | 55 | </listitem>
|
---|
| 56 | </varlistentry>
|
---|
| 57 |
|
---|
[b8a819f] | 58 | <varlistentry id="cleanfs-bootscripts">
|
---|
| 59 | <term><command>cleanfs</command></term>
|
---|
[c6cb3aa] | 60 | <listitem>
|
---|
[2256873] | 61 | <para>Removes files that should not be
|
---|
[f67f5cf] | 62 | preserved between reboots, such as those in <filename class="directory">/var/run/</filename> and
|
---|
[2256873] | 63 | <filename class="directory">/var/lock/</filename>; it re-creates <filename>/var/run/utmp</filename>
|
---|
[673b0d8] | 64 | and removes the possibly present <filename>/etc/nologin</filename>,
|
---|
[2256873] | 65 | <filename>/fastboot</filename>, and <filename>/forcefsck</filename> files</para>
|
---|
[3ed279f] | 66 | <indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts"><primary sortas="d-cleanfs">cleanfs</primary></indexterm>
|
---|
[c6cb3aa] | 67 | </listitem>
|
---|
| 68 | </varlistentry>
|
---|
[673b0d8] | 69 |
|
---|
[b8a819f] | 70 | <varlistentry id="console-bootscripts">
|
---|
| 71 | <term><command>console</command></term>
|
---|
[c6cb3aa] | 72 | <listitem>
|
---|
[2256873] | 73 | <para>Loads the keymap table specified as proper for the keyboard
|
---|
| 74 | layout; it also sets the screen font</para>
|
---|
[3ed279f] | 75 | <indexterm zone="ch-scripts-bootscripts console-bootscripts"><primary sortas="d-console">console</primary></indexterm>
|
---|
[c6cb3aa] | 76 | </listitem>
|
---|
| 77 | </varlistentry>
|
---|
[b32e803] | 78 |
|
---|
[b8a819f] | 79 | <varlistentry id="functions-bootscripts">
|
---|
| 80 | <term><command>functions</command></term>
|
---|
[c6cb3aa] | 81 | <listitem>
|
---|
[2256873] | 82 | <para>Contains functions shared among different scripts, such as error
|
---|
| 83 | and status checking</para>
|
---|
[3ed279f] | 84 | <indexterm zone="ch-scripts-bootscripts functions-bootscripts"><primary sortas="d-functions">functions</primary></indexterm>
|
---|
[c6cb3aa] | 85 | </listitem>
|
---|
| 86 | </varlistentry>
|
---|
[673b0d8] | 87 |
|
---|
[b8a819f] | 88 | <varlistentry id="halt-bootscripts">
|
---|
| 89 | <term><command>halt</command></term>
|
---|
[c6cb3aa] | 90 | <listitem>
|
---|
[2256873] | 91 | <para>Halts the system</para>
|
---|
[3ed279f] | 92 | <indexterm zone="ch-scripts-bootscripts halt-bootscripts"><primary sortas="d-halt">halt</primary></indexterm>
|
---|
[c6cb3aa] | 93 | </listitem>
|
---|
| 94 | </varlistentry>
|
---|
[673b0d8] | 95 |
|
---|
[b8a819f] | 96 | <varlistentry id="ifdown-bootscripts">
|
---|
[5ba3d1d] | 97 | <term><command>ifdown</command></term>
|
---|
[c6cb3aa] | 98 | <listitem>
|
---|
[2256873] | 99 | <para>Assists the network script with network devices</para>
|
---|
[3ed279f] | 100 | <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts"><primary sortas="d-ifdown">ifdown</primary></indexterm>
|
---|
[c6cb3aa] | 101 | </listitem>
|
---|
| 102 | </varlistentry>
|
---|
[673b0d8] | 103 |
|
---|
[5ba3d1d] | 104 | <varlistentry id="ifup-bootscripts">
|
---|
| 105 | <term><command>ifup</command></term>
|
---|
| 106 | <listitem>
|
---|
[2256873] | 107 | <para>Assists the network script with network devices</para>
|
---|
[3ed279f] | 108 | <indexterm zone="ch-scripts-bootscripts ifup-bootscripts"><primary sortas="d-ifup">ifup</primary></indexterm>
|
---|
[5ba3d1d] | 109 | </listitem>
|
---|
| 110 | </varlistentry>
|
---|
| 111 |
|
---|
[b8a819f] | 112 | <varlistentry id="localnet-bootscripts">
|
---|
| 113 | <term><command>localnet</command></term>
|
---|
[c6cb3aa] | 114 | <listitem>
|
---|
[2256873] | 115 | <para>Sets up the system's hostname and local loopback device</para>
|
---|
[3ed279f] | 116 | <indexterm zone="ch-scripts-bootscripts localnet-bootscripts"><primary sortas="d-localnet">localnet</primary></indexterm>
|
---|
[c6cb3aa] | 117 | </listitem>
|
---|
| 118 | </varlistentry>
|
---|
[673b0d8] | 119 |
|
---|
[b8a819f] | 120 | <varlistentry id="mountfs-bootscripts">
|
---|
| 121 | <term><command>mountfs</command></term>
|
---|
[c6cb3aa] | 122 | <listitem>
|
---|
[2256873] | 123 | <para>Mounts all file systems, except ones that are marked
|
---|
| 124 | <emphasis>noauto</emphasis> or are network based</para>
|
---|
[3ed279f] | 125 | <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts"><primary sortas="d-mountfs">mountfs</primary></indexterm>
|
---|
[c6cb3aa] | 126 | </listitem>
|
---|
| 127 | </varlistentry>
|
---|
[673b0d8] | 128 |
|
---|
[b8a819f] | 129 | <varlistentry id="mountkernfs-bootscripts">
|
---|
| 130 | <term><command>mountkernfs</command></term>
|
---|
[c6cb3aa] | 131 | <listitem>
|
---|
[2256873] | 132 | <para>Is used to mount kernel-provided file systems, such as
|
---|
| 133 | <systemitem class="filesystem">proc</systemitem></para>
|
---|
[3ed279f] | 134 | <indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts"><primary sortas="d-mountkernfs">mountkernfs</primary></indexterm>
|
---|
[c6cb3aa] | 135 | </listitem>
|
---|
| 136 | </varlistentry>
|
---|
[418e6cc] | 137 |
|
---|
[b8a819f] | 138 | <varlistentry id="network-bootscripts">
|
---|
| 139 | <term><command>network</command></term>
|
---|
[c6cb3aa] | 140 | <listitem>
|
---|
[2256873] | 141 | <para>Sets up network interfaces, such as network cards, and sets up
|
---|
| 142 | the default gateway (where applicable)</para>
|
---|
[3ed279f] | 143 | <indexterm zone="ch-scripts-bootscripts network-bootscripts"><primary sortas="d-network">network</primary></indexterm>
|
---|
[c6cb3aa] | 144 | </listitem>
|
---|
| 145 | </varlistentry>
|
---|
[673b0d8] | 146 |
|
---|
[b8a819f] | 147 | <varlistentry id="rc-bootscripts">
|
---|
| 148 | <term><command>rc</command></term>
|
---|
[c6cb3aa] | 149 | <listitem>
|
---|
[2256873] | 150 | <para>The master run-level control script; it is responsible for
|
---|
[69993f4] | 151 | running all other scripts one-by-one, in a sequence determined by
|
---|
[2256873] | 152 | the name of the symbolic links being processed</para>
|
---|
[3ed279f] | 153 | <indexterm zone="ch-scripts-bootscripts rc-bootscripts"><primary sortas="d-rc">rc</primary></indexterm>
|
---|
[c6cb3aa] | 154 | </listitem>
|
---|
| 155 | </varlistentry>
|
---|
[673b0d8] | 156 |
|
---|
[b8a819f] | 157 | <varlistentry id="reboot-bootscripts">
|
---|
| 158 | <term><command>reboot</command></term>
|
---|
[c6cb3aa] | 159 | <listitem>
|
---|
[2256873] | 160 | <para>Reboots the system</para>
|
---|
[3ed279f] | 161 | <indexterm zone="ch-scripts-bootscripts reboot-bootscripts"><primary sortas="d-reboot">reboot</primary></indexterm>
|
---|
[c6cb3aa] | 162 | </listitem>
|
---|
| 163 | </varlistentry>
|
---|
[673b0d8] | 164 |
|
---|
[b8a819f] | 165 | <varlistentry id="sendsignals-bootscripts">
|
---|
| 166 | <term><command>sendsignals</command></term>
|
---|
[c6cb3aa] | 167 | <listitem>
|
---|
[2256873] | 168 | <para>Makes sure every process is terminated before the system reboots
|
---|
| 169 | or halts</para>
|
---|
[3ed279f] | 170 | <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts"><primary sortas="d-sendsignals">sendsignals</primary></indexterm>
|
---|
[c6cb3aa] | 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
[673b0d8] | 173 |
|
---|
[b8a819f] | 174 | <varlistentry id="setclock-bootscripts">
|
---|
| 175 | <term><command>setclock</command></term>
|
---|
[c6cb3aa] | 176 | <listitem>
|
---|
[2256873] | 177 | <para>Resets the kernel clock to local time in case the hardware clock
|
---|
| 178 | is not set to UTC time</para>
|
---|
[3ed279f] | 179 | <indexterm zone="ch-scripts-bootscripts setclock-bootscripts"><primary sortas="d-setclock">setclock</primary></indexterm>
|
---|
[c6cb3aa] | 180 | </listitem>
|
---|
| 181 | </varlistentry>
|
---|
[673b0d8] | 182 |
|
---|
[b8a819f] | 183 | <varlistentry id="static-bootscripts">
|
---|
| 184 | <term><command>static</command></term>
|
---|
[c6cb3aa] | 185 | <listitem>
|
---|
[2256873] | 186 | <para>Provides the functionality needed to assign a static Internet
|
---|
| 187 | Protocol (IP) address to a network interface</para>
|
---|
[3ed279f] | 188 | <indexterm zone="ch-scripts-bootscripts static-bootscripts"><primary sortas="d-static">static</primary></indexterm>
|
---|
[c6cb3aa] | 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
[673b0d8] | 191 |
|
---|
[b8a819f] | 192 | <varlistentry id="swap-bootscripts">
|
---|
| 193 | <term><command>swap</command></term>
|
---|
[c6cb3aa] | 194 | <listitem>
|
---|
[2256873] | 195 | <para>Enables and disables swap files and partitions</para>
|
---|
[3ed279f] | 196 | <indexterm zone="ch-scripts-bootscripts swap-bootscripts"><primary sortas="d-swap">swap</primary></indexterm>
|
---|
[c6cb3aa] | 197 | </listitem>
|
---|
| 198 | </varlistentry>
|
---|
[673b0d8] | 199 |
|
---|
[b8a819f] | 200 | <varlistentry id="sysklogd-bootscripts">
|
---|
| 201 | <term><command>sysklogd</command></term>
|
---|
[c6cb3aa] | 202 | <listitem>
|
---|
[2256873] | 203 | <para>Starts and stops the system and kernel log daemons</para>
|
---|
[3ed279f] | 204 | <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts"><primary sortas="d-sysklogd">sysklogd</primary></indexterm>
|
---|
[c6cb3aa] | 205 | </listitem>
|
---|
| 206 | </varlistentry>
|
---|
[673b0d8] | 207 |
|
---|
[b8a819f] | 208 | <varlistentry id="template-bootscripts">
|
---|
| 209 | <term><command>template</command></term>
|
---|
[c6cb3aa] | 210 | <listitem>
|
---|
[2256873] | 211 | <para>A template to create custom bootscripts for other
|
---|
| 212 | daemons</para>
|
---|
[3ed279f] | 213 | <indexterm zone="ch-scripts-bootscripts template-bootscripts"><primary sortas="d-template">template</primary></indexterm>
|
---|
[5ba3d1d] | 214 | </listitem>
|
---|
| 215 | </varlistentry>
|
---|
| 216 |
|
---|
| 217 | <varlistentry id="udev-bootscripts">
|
---|
| 218 | <term><command>udev</command></term>
|
---|
| 219 | <listitem>
|
---|
[2256873] | 220 | <para>Sets up udev and create the devices nodes in <filename
|
---|
[5ba3d1d] | 221 | class="directory">/dev</filename></para>
|
---|
[3ed279f] | 222 | <indexterm zone="ch-scripts-bootscripts udev-bootscripts"><primary sortas="d-udev">udev</primary></indexterm>
|
---|
[c6cb3aa] | 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
| 225 | </variablelist>
|
---|
[673b0d8] | 226 |
|
---|
| 227 | </sect2>
|
---|
| 228 |
|
---|
| 229 | </sect1>
|
---|
[5ba3d1d] | 230 |
|
---|