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