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