[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[d781ffb] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/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 |
|
---|
| 11 | <title>LFS-Bootscripts-&lfs-bootscripts-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-scripts-bootscripts">
|
---|
| 14 | <primary sortas="a-Bootscripts">Bootscripts</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
[673b0d8] | 19 |
|
---|
[d781ffb] | 20 | <para>The LFS-Bootscripts package contains a set of scripts to start/stop the
|
---|
| 21 | LFS system at bootup/shutdown.</para>
|
---|
[418e6cc] | 22 |
|
---|
[d781ffb] | 23 | <segmentedlist>
|
---|
| 24 | <segtitle>&buildtime;</segtitle>
|
---|
| 25 | <segtitle>&diskspace;</segtitle>
|
---|
[418e6cc] | 26 |
|
---|
[d781ffb] | 27 | <seglistitem>
|
---|
| 28 | <seg>0.1 SBU</seg>
|
---|
| 29 | <seg>516 KB</seg>
|
---|
| 30 | </seglistitem>
|
---|
| 31 | </segmentedlist>
|
---|
[418e6cc] | 32 |
|
---|
[d781ffb] | 33 | <segmentedlist>
|
---|
| 34 | <segtitle>&dependencies;</segtitle>
|
---|
[418e6cc] | 35 |
|
---|
[d781ffb] | 36 | <seglistitem>
|
---|
| 37 | <seg>Bash and Coreutils</seg>
|
---|
| 38 | </seglistitem>
|
---|
| 39 | </segmentedlist>
|
---|
[418e6cc] | 40 |
|
---|
[d781ffb] | 41 | </sect2>
|
---|
| 42 |
|
---|
| 43 | <sect2 role="installation">
|
---|
| 44 | <title>Installation of LFS-Bootscripts</title>
|
---|
| 45 |
|
---|
[1b3de968] | 46 | <para>Prevent the hotplug bootscript from being installed, as the hotplug
|
---|
| 47 | package is no longer installed.</para>
|
---|
| 48 |
|
---|
| 49 | <screen><userinput>sed -i '/hotplug/d' Makefile</userinput></screen>
|
---|
| 50 |
|
---|
[dc591b5] | 51 | <para>Apply the following patch to allow the Udev bootscript to work with
|
---|
| 52 | recent versions of Udev:</para>
|
---|
| 53 |
|
---|
| 54 | <screen><userinput>patch -Np1 -i ../&lfs-bootscripts-recent_udev-patch;</userinput></screen>
|
---|
| 55 |
|
---|
[d781ffb] | 56 | <para>Install the package:</para>
|
---|
[673b0d8] | 57 |
|
---|
| 58 | <screen><userinput>make install</userinput></screen>
|
---|
| 59 |
|
---|
[d781ffb] | 60 | </sect2>
|
---|
| 61 |
|
---|
| 62 | <sect2 id="contents-bootscripts" role="content">
|
---|
| 63 | <title>Contents of LFS-Bootscripts</title>
|
---|
| 64 |
|
---|
| 65 | <segmentedlist>
|
---|
| 66 | <segtitle>Installed scripts</segtitle>
|
---|
| 67 |
|
---|
| 68 | <seglistitem>
|
---|
| 69 | <seg>checkfs, cleanfs, console, functions, halt, hotplug, ifdown, ifup,
|
---|
| 70 | localnet, mountfs, mountkernfs, network, rc, reboot, sendsignals,
|
---|
| 71 | setclock, static, swap, sysklogd, template, and udev</seg>
|
---|
| 72 | </seglistitem>
|
---|
| 73 | </segmentedlist>
|
---|
| 74 |
|
---|
| 75 | <variablelist>
|
---|
| 76 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 77 | <?dbfo list-presentation="list"?>
|
---|
| 78 | <?dbhtml list-presentation="table"?>
|
---|
| 79 |
|
---|
| 80 | <varlistentry id="checkfs-bootscripts">
|
---|
| 81 | <term><command>checkfs</command></term>
|
---|
| 82 | <listitem>
|
---|
| 83 | <para>Checks the integrity of the file systems before they are mounted
|
---|
| 84 | (with the exception of journal and network based file systems)</para>
|
---|
| 85 | <indexterm zone="ch-scripts-bootscripts checkfs-bootscripts">
|
---|
| 86 | <primary sortas="d-checkfs">checkfs</primary>
|
---|
| 87 | </indexterm>
|
---|
| 88 | </listitem>
|
---|
| 89 | </varlistentry>
|
---|
| 90 |
|
---|
| 91 | <varlistentry id="cleanfs-bootscripts">
|
---|
| 92 | <term><command>cleanfs</command></term>
|
---|
| 93 | <listitem>
|
---|
| 94 | <para>Removes files that should not be preserved between reboots, such
|
---|
| 95 | as those in <filename class="directory">/var/run/</filename> and
|
---|
| 96 | <filename class="directory">/var/lock/</filename>; it re-creates
|
---|
| 97 | <filename>/var/run/utmp</filename> and removes the possibly present
|
---|
| 98 | <filename>/etc/nologin</filename>, <filename>/fastboot</filename>, and
|
---|
| 99 | <filename>/forcefsck</filename> files</para>
|
---|
| 100 | <indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts">
|
---|
| 101 | <primary sortas="d-cleanfs">cleanfs</primary>
|
---|
| 102 | </indexterm>
|
---|
| 103 | </listitem>
|
---|
| 104 | </varlistentry>
|
---|
| 105 |
|
---|
| 106 | <varlistentry id="console-bootscripts">
|
---|
| 107 | <term><command>console</command></term>
|
---|
| 108 | <listitem>
|
---|
| 109 | <para>Loads the correct keymap table for the desired keyboard layout;
|
---|
| 110 | it also sets the screen font</para>
|
---|
| 111 | <indexterm zone="ch-scripts-bootscripts console-bootscripts">
|
---|
| 112 | <primary sortas="d-console">console</primary>
|
---|
| 113 | </indexterm>
|
---|
| 114 | </listitem>
|
---|
| 115 | </varlistentry>
|
---|
| 116 |
|
---|
| 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="hotplug-bootscripts">
|
---|
| 139 | <term><command>hotplug</command></term>
|
---|
| 140 | <listitem>
|
---|
| 141 | <para>Loads modules for system devices</para>
|
---|
| 142 | <indexterm zone="ch-scripts-bootscripts hotplug-bootscripts">
|
---|
| 143 | <primary sortas="d-hotplug">hotplug</primary>
|
---|
| 144 | </indexterm>
|
---|
| 145 | </listitem>
|
---|
| 146 | </varlistentry>
|
---|
| 147 |
|
---|
| 148 | <varlistentry id="ifdown-bootscripts">
|
---|
| 149 | <term><command>ifdown</command></term>
|
---|
| 150 | <listitem>
|
---|
| 151 | <para>Assists the network script with stopping network devices</para>
|
---|
| 152 | <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts">
|
---|
| 153 | <primary sortas="d-ifdown">ifdown</primary>
|
---|
| 154 | </indexterm>
|
---|
| 155 | </listitem>
|
---|
| 156 | </varlistentry>
|
---|
| 157 |
|
---|
| 158 | <varlistentry id="ifup-bootscripts">
|
---|
| 159 | <term><command>ifup</command></term>
|
---|
| 160 | <listitem>
|
---|
| 161 | <para>Assists the network script with starting network devices</para>
|
---|
| 162 | <indexterm zone="ch-scripts-bootscripts ifup-bootscripts">
|
---|
| 163 | <primary sortas="d-ifup">ifup</primary>
|
---|
| 164 | </indexterm>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
| 167 |
|
---|
| 168 | <varlistentry id="localnet-bootscripts">
|
---|
| 169 | <term><command>localnet</command></term>
|
---|
| 170 | <listitem>
|
---|
| 171 | <para>Sets up the system's hostname and local loopback device</para>
|
---|
| 172 | <indexterm zone="ch-scripts-bootscripts localnet-bootscripts">
|
---|
| 173 | <primary sortas="d-localnet">localnet</primary>
|
---|
| 174 | </indexterm>
|
---|
| 175 | </listitem>
|
---|
| 176 | </varlistentry>
|
---|
| 177 |
|
---|
| 178 | <varlistentry id="mountfs-bootscripts">
|
---|
| 179 | <term><command>mountfs</command></term>
|
---|
| 180 | <listitem>
|
---|
| 181 | <para>Mounts all file systems, except ones that are marked
|
---|
| 182 | <emphasis>noauto</emphasis> or are network based</para>
|
---|
| 183 | <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts">
|
---|
| 184 | <primary sortas="d-mountfs">mountfs</primary>
|
---|
| 185 | </indexterm>
|
---|
| 186 | </listitem>
|
---|
| 187 | </varlistentry>
|
---|
| 188 |
|
---|
| 189 | <varlistentry id="mountkernfs-bootscripts">
|
---|
| 190 | <term><command>mountkernfs</command></term>
|
---|
| 191 | <listitem>
|
---|
| 192 | <para>Mounts virtual kernel file systems, such as <systemitem
|
---|
| 193 | class="filesystem">proc</systemitem></para>
|
---|
| 194 | <indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts">
|
---|
| 195 | <primary sortas="d-mountkernfs">mountkernfs</primary>
|
---|
| 196 | </indexterm>
|
---|
| 197 | </listitem>
|
---|
| 198 | </varlistentry>
|
---|
| 199 |
|
---|
| 200 | <varlistentry id="network-bootscripts">
|
---|
| 201 | <term><command>network</command></term>
|
---|
| 202 | <listitem>
|
---|
| 203 | <para>Sets up network interfaces, such as network cards, and sets up
|
---|
| 204 | the default gateway (where applicable)</para>
|
---|
| 205 | <indexterm zone="ch-scripts-bootscripts network-bootscripts">
|
---|
| 206 | <primary sortas="d-network">network</primary>
|
---|
| 207 | </indexterm>
|
---|
| 208 | </listitem>
|
---|
| 209 | </varlistentry>
|
---|
| 210 |
|
---|
| 211 | <varlistentry id="rc-bootscripts">
|
---|
| 212 | <term><command>rc</command></term>
|
---|
| 213 | <listitem>
|
---|
| 214 | <para>The master run-level control script; it is responsible for
|
---|
| 215 | running all the other bootscripts one-by-one, in a sequence determined
|
---|
| 216 | by the name of the symbolic links being processed</para>
|
---|
| 217 | <indexterm zone="ch-scripts-bootscripts rc-bootscripts">
|
---|
| 218 | <primary sortas="d-rc">rc</primary>
|
---|
| 219 | </indexterm>
|
---|
| 220 | </listitem>
|
---|
| 221 | </varlistentry>
|
---|
| 222 |
|
---|
| 223 | <varlistentry id="reboot-bootscripts">
|
---|
| 224 | <term><command>reboot</command></term>
|
---|
| 225 | <listitem>
|
---|
| 226 | <para>Reboots the system</para>
|
---|
| 227 | <indexterm zone="ch-scripts-bootscripts reboot-bootscripts">
|
---|
| 228 | <primary sortas="d-reboot">reboot</primary>
|
---|
| 229 | </indexterm>
|
---|
| 230 | </listitem>
|
---|
| 231 | </varlistentry>
|
---|
| 232 |
|
---|
| 233 | <varlistentry id="sendsignals-bootscripts">
|
---|
| 234 | <term><command>sendsignals</command></term>
|
---|
| 235 | <listitem>
|
---|
| 236 | <para>Makes sure every process is terminated before the system reboots
|
---|
| 237 | or halts</para>
|
---|
| 238 | <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts">
|
---|
| 239 | <primary sortas="d-sendsignals">sendsignals</primary>
|
---|
| 240 | </indexterm>
|
---|
| 241 | </listitem>
|
---|
| 242 | </varlistentry>
|
---|
| 243 |
|
---|
| 244 | <varlistentry id="setclock-bootscripts">
|
---|
| 245 | <term><command>setclock</command></term>
|
---|
| 246 | <listitem>
|
---|
| 247 | <para>Resets the kernel clock to local time in case the hardware clock
|
---|
| 248 | is not set to UTC time</para>
|
---|
| 249 | <indexterm zone="ch-scripts-bootscripts setclock-bootscripts">
|
---|
| 250 | <primary sortas="d-setclock">setclock</primary>
|
---|
| 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
| 254 |
|
---|
| 255 | <varlistentry id="static-bootscripts">
|
---|
| 256 | <term><command>static</command></term>
|
---|
| 257 | <listitem>
|
---|
| 258 | <para>Provides the functionality needed to assign a static Internet
|
---|
| 259 | Protocol (IP) address to a network interface</para>
|
---|
| 260 | <indexterm zone="ch-scripts-bootscripts static-bootscripts">
|
---|
| 261 | <primary sortas="d-static">static</primary>
|
---|
| 262 | </indexterm>
|
---|
| 263 | </listitem>
|
---|
| 264 | </varlistentry>
|
---|
| 265 |
|
---|
| 266 | <varlistentry id="swap-bootscripts">
|
---|
| 267 | <term><command>swap</command></term>
|
---|
| 268 | <listitem>
|
---|
| 269 | <para>Enables and disables swap files and partitions</para>
|
---|
| 270 | <indexterm zone="ch-scripts-bootscripts swap-bootscripts">
|
---|
| 271 | <primary sortas="d-swap">swap</primary>
|
---|
| 272 | </indexterm>
|
---|
| 273 | </listitem>
|
---|
| 274 | </varlistentry>
|
---|
| 275 |
|
---|
| 276 | <varlistentry id="sysklogd-bootscripts">
|
---|
| 277 | <term><command>sysklogd</command></term>
|
---|
| 278 | <listitem>
|
---|
| 279 | <para>Starts and stops the system and kernel log daemons</para>
|
---|
| 280 | <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts">
|
---|
| 281 | <primary sortas="d-sysklogd">sysklogd</primary>
|
---|
| 282 | </indexterm>
|
---|
| 283 | </listitem>
|
---|
| 284 | </varlistentry>
|
---|
| 285 |
|
---|
| 286 | <varlistentry id="template-bootscripts">
|
---|
| 287 | <term><command>template</command></term>
|
---|
| 288 | <listitem>
|
---|
| 289 | <para>A template to create custom bootscripts for other
|
---|
| 290 | daemons</para>
|
---|
| 291 | <indexterm zone="ch-scripts-bootscripts template-bootscripts">
|
---|
| 292 | <primary sortas="d-template">template</primary>
|
---|
| 293 | </indexterm>
|
---|
| 294 | </listitem>
|
---|
| 295 | </varlistentry>
|
---|
| 296 |
|
---|
| 297 | <varlistentry id="udev-bootscripts">
|
---|
| 298 | <term><command>udev</command></term>
|
---|
| 299 | <listitem>
|
---|
| 300 | <para>Prepares the <filename class="directory">/dev</filename>
|
---|
| 301 | directory and starts Udev</para>
|
---|
| 302 | <indexterm zone="ch-scripts-bootscripts udev-bootscripts">
|
---|
| 303 | <primary sortas="d-udev">udev</primary>
|
---|
| 304 | </indexterm>
|
---|
| 305 | </listitem>
|
---|
| 306 | </varlistentry>
|
---|
| 307 |
|
---|
| 308 | </variablelist>
|
---|
| 309 |
|
---|
| 310 | </sect2>
|
---|
[673b0d8] | 311 |
|
---|
| 312 | </sect1>
|
---|