[82fc053] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-scripts-bootscripts" role="wrap">
|
---|
[01247d7] | 9 | <?dbhtml filename="bootscripts.html"?>
|
---|
[82fc053] | 10 |
|
---|
| 11 | <title>Bootscripts for CLFS &bootscripts-clfs-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/>
|
---|
| 19 |
|
---|
| 20 | <para>The Bootscripts package contains a set of scripts to
|
---|
| 21 | start/stop the CLFS system at bootup/shutdown.</para>
|
---|
| 22 |
|
---|
| 23 | </sect2>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="installation">
|
---|
| 26 | <title>Installation of Bootscripts</title>
|
---|
| 27 |
|
---|
[cb2928a] | 28 | <para os="a">Install the bootscripts:</para>
|
---|
[82fc053] | 29 |
|
---|
| 30 | <screen os="b"><userinput>make install-bootscripts</userinput></screen>
|
---|
| 31 |
|
---|
[cb2928a] | 32 | <para os="c">If you are going to use a network card, run the following
|
---|
| 33 | command to install scripts for starting and configuring the network
|
---|
| 34 | interface:</para>
|
---|
[82fc053] | 35 |
|
---|
| 36 | <screen os="d"><userinput>make install-network</userinput></screen>
|
---|
| 37 |
|
---|
| 38 | </sect2>
|
---|
| 39 |
|
---|
| 40 | <sect2 id="contents-bootscripts" role="content">
|
---|
| 41 | <title>Contents of Bootscripts</title>
|
---|
| 42 |
|
---|
| 43 | <segmentedlist>
|
---|
| 44 | <segtitle>Installed scripts</segtitle>
|
---|
| 45 |
|
---|
| 46 | <seglistitem>
|
---|
| 47 | <seg>checkfs, cleanfs, console, functions, halt, ifdown,
|
---|
| 48 | ifup, localnet, mountfs, mountkernfs, network, rc, reboot, sendsignals,
|
---|
| 49 | setclock, static, swap, sysklogd, template, and udev.</seg>
|
---|
| 50 | </seglistitem>
|
---|
| 51 | </segmentedlist>
|
---|
| 52 |
|
---|
| 53 | <variablelist>
|
---|
| 54 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 55 | <?dbfo list-presentation="list"?>
|
---|
| 56 | <?dbhtml list-presentation="table"?>
|
---|
| 57 |
|
---|
| 58 | <varlistentry id="checkfs-bootscripts">
|
---|
| 59 | <term><command>checkfs</command></term>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Checks the integrity of the file systems before they are
|
---|
| 62 | mounted (with the exception of journal and network based file
|
---|
| 63 | systems)</para>
|
---|
| 64 | <indexterm zone="ch-scripts-bootscripts checkfs-bootscripts">
|
---|
| 65 | <primary sortas="d-checkfs">checkfs</primary>
|
---|
| 66 | </indexterm>
|
---|
| 67 | </listitem>
|
---|
| 68 | </varlistentry>
|
---|
| 69 |
|
---|
| 70 | <varlistentry id="cleanfs-bootscripts">
|
---|
| 71 | <term><command>cleanfs</command></term>
|
---|
| 72 | <listitem>
|
---|
| 73 | <para>Removes files that should not be preserved between reboots,
|
---|
| 74 | such as those in <filename class="directory">/var/run/</filename>
|
---|
| 75 | and <filename class="directory">/var/lock/</filename>; it re-creates
|
---|
| 76 | <filename>/var/run/utmp</filename> and removes the possibly present
|
---|
| 77 | <filename>/etc/nologin</filename>, <filename>/fastboot</filename>,
|
---|
| 78 | and <filename>/forcefsck</filename> files</para>
|
---|
| 79 | <indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts">
|
---|
| 80 | <primary sortas="d-cleanfs">cleanfs</primary>
|
---|
| 81 | </indexterm>
|
---|
| 82 | </listitem>
|
---|
| 83 | </varlistentry>
|
---|
| 84 |
|
---|
| 85 | <varlistentry id="console-bootscripts">
|
---|
| 86 | <term><command>console</command></term>
|
---|
| 87 | <listitem>
|
---|
| 88 | <para>Loads the correct keymap table for the desired keyboard
|
---|
| 89 | layout; it also sets the screen font</para>
|
---|
| 90 | <indexterm zone="ch-scripts-bootscripts console-bootscripts">
|
---|
| 91 | <primary sortas="d-console">console</primary>
|
---|
| 92 | </indexterm>
|
---|
| 93 | </listitem>
|
---|
| 94 | </varlistentry>
|
---|
| 95 |
|
---|
| 96 | <varlistentry id="functions-bootscripts">
|
---|
| 97 | <term><command>functions</command></term>
|
---|
| 98 | <listitem>
|
---|
| 99 | <para>Contains common functions, such as error and status checking,
|
---|
| 100 | that are used by several bootscripts</para>
|
---|
| 101 | <indexterm zone="ch-scripts-bootscripts functions-bootscripts">
|
---|
| 102 | <primary sortas="d-functions">functions</primary>
|
---|
| 103 | </indexterm>
|
---|
| 104 | </listitem>
|
---|
| 105 | </varlistentry>
|
---|
| 106 |
|
---|
| 107 | <varlistentry id="halt-bootscripts">
|
---|
| 108 | <term><command>halt</command></term>
|
---|
| 109 | <listitem>
|
---|
| 110 | <para>Halts the system</para>
|
---|
| 111 | <indexterm zone="ch-scripts-bootscripts halt-bootscripts">
|
---|
| 112 | <primary sortas="d-halt">halt</primary>
|
---|
| 113 | </indexterm>
|
---|
| 114 | </listitem>
|
---|
| 115 | </varlistentry>
|
---|
| 116 |
|
---|
| 117 | <varlistentry id="ifdown-bootscripts">
|
---|
| 118 | <term><command>ifdown</command></term>
|
---|
| 119 | <listitem>
|
---|
| 120 | <para>Assists the network script with stopping network devices</para>
|
---|
| 121 | <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts">
|
---|
| 122 | <primary sortas="d-ifdown">ifdown</primary>
|
---|
| 123 | </indexterm>
|
---|
| 124 | </listitem>
|
---|
| 125 | </varlistentry>
|
---|
| 126 |
|
---|
| 127 | <varlistentry id="ifup-bootscripts">
|
---|
| 128 | <term><command>ifup</command></term>
|
---|
| 129 | <listitem>
|
---|
| 130 | <para>Assists the network script with starting network devices</para>
|
---|
| 131 | <indexterm zone="ch-scripts-bootscripts ifup-bootscripts">
|
---|
| 132 | <primary sortas="d-ifup">ifup</primary>
|
---|
| 133 | </indexterm>
|
---|
| 134 | </listitem>
|
---|
| 135 | </varlistentry>
|
---|
| 136 |
|
---|
| 137 | <varlistentry id="localnet-bootscripts">
|
---|
| 138 | <term><command>localnet</command></term>
|
---|
| 139 | <listitem>
|
---|
| 140 | <para>Sets up the system's hostname and local loopback device</para>
|
---|
| 141 | <indexterm zone="ch-scripts-bootscripts localnet-bootscripts">
|
---|
| 142 | <primary sortas="d-localnet">localnet</primary>
|
---|
| 143 | </indexterm>
|
---|
| 144 | </listitem>
|
---|
| 145 | </varlistentry>
|
---|
| 146 |
|
---|
| 147 | <varlistentry id="mountfs-bootscripts">
|
---|
| 148 | <term><command>mountfs</command></term>
|
---|
| 149 | <listitem>
|
---|
| 150 | <para>Mounts all file systems, except ones that are marked
|
---|
| 151 | <emphasis>noauto</emphasis> or are network based</para>
|
---|
| 152 | <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts">
|
---|
| 153 | <primary sortas="d-mountfs">mountfs</primary>
|
---|
| 154 | </indexterm>
|
---|
| 155 | </listitem>
|
---|
| 156 | </varlistentry>
|
---|
| 157 |
|
---|
| 158 | <varlistentry id="mountkernfs-bootscripts">
|
---|
| 159 | <term><command>mountkernfs</command></term>
|
---|
| 160 | <listitem>
|
---|
| 161 | <para>Mounts virtual kernel file systems, such as
|
---|
| 162 | <systemitem class="filesystem">proc</systemitem></para>
|
---|
| 163 | <indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts">
|
---|
| 164 | <primary sortas="d-mountkernfs">mountkernfs</primary>
|
---|
| 165 | </indexterm>
|
---|
| 166 | </listitem>
|
---|
| 167 | </varlistentry>
|
---|
| 168 |
|
---|
| 169 | <varlistentry id="network-bootscripts">
|
---|
| 170 | <term><command>network</command></term>
|
---|
| 171 | <listitem>
|
---|
| 172 | <para>Sets up network interfaces, such as network cards, and sets up
|
---|
| 173 | the default gateway (where applicable)</para>
|
---|
| 174 | <indexterm zone="ch-scripts-bootscripts network-bootscripts">
|
---|
| 175 | <primary sortas="d-network">network</primary>
|
---|
| 176 | </indexterm>
|
---|
| 177 | </listitem>
|
---|
| 178 | </varlistentry>
|
---|
| 179 |
|
---|
| 180 | <varlistentry id="rc-bootscripts">
|
---|
| 181 | <term><command>rc</command></term>
|
---|
| 182 | <listitem>
|
---|
| 183 | <para>The master run-level control script; it is responsible for
|
---|
| 184 | running all the other bootscripts one-by-one, in a sequence
|
---|
| 185 | determined by the name of the symbolic links being processed</para>
|
---|
| 186 | <indexterm zone="ch-scripts-bootscripts rc-bootscripts">
|
---|
| 187 | <primary sortas="d-rc">rc</primary>
|
---|
| 188 | </indexterm>
|
---|
| 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
| 191 |
|
---|
| 192 | <varlistentry id="reboot-bootscripts">
|
---|
| 193 | <term><command>reboot</command></term>
|
---|
| 194 | <listitem>
|
---|
| 195 | <para>Reboots the system</para>
|
---|
| 196 | <indexterm zone="ch-scripts-bootscripts reboot-bootscripts">
|
---|
| 197 | <primary sortas="d-reboot">reboot</primary>
|
---|
| 198 | </indexterm>
|
---|
| 199 | </listitem>
|
---|
| 200 | </varlistentry>
|
---|
| 201 |
|
---|
| 202 | <varlistentry id="sendsignals-bootscripts">
|
---|
| 203 | <term><command>sendsignals</command></term>
|
---|
| 204 | <listitem>
|
---|
| 205 | <para>Makes sure every process is terminated before the system reboots
|
---|
| 206 | or halts</para>
|
---|
| 207 | <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts">
|
---|
| 208 | <primary sortas="d-sendsignals">sendsignals</primary>
|
---|
| 209 | </indexterm>
|
---|
| 210 | </listitem>
|
---|
| 211 | </varlistentry>
|
---|
| 212 |
|
---|
| 213 | <varlistentry id="setclock-bootscripts">
|
---|
| 214 | <term><command>setclock</command></term>
|
---|
| 215 | <listitem>
|
---|
| 216 | <para>Resets the kernel clock to local time in case the hardware clock
|
---|
| 217 | is not set to UTC time</para>
|
---|
| 218 | <indexterm zone="ch-scripts-bootscripts setclock-bootscripts">
|
---|
| 219 | <primary sortas="d-setclock">setclock</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 | </listitem>
|
---|
| 222 | </varlistentry>
|
---|
| 223 |
|
---|
| 224 | <varlistentry id="static-bootscripts">
|
---|
| 225 | <term><command>static</command></term>
|
---|
| 226 | <listitem>
|
---|
| 227 | <para>Provides the functionality needed to assign a static Internet
|
---|
| 228 | Protocol (IP) address to a network interface</para>
|
---|
| 229 | <indexterm zone="ch-scripts-bootscripts static-bootscripts">
|
---|
| 230 | <primary sortas="d-static">static</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
| 234 |
|
---|
| 235 | <varlistentry id="swap-bootscripts">
|
---|
| 236 | <term><command>swap</command></term>
|
---|
| 237 | <listitem>
|
---|
| 238 | <para>Enables and disables swap files and partitions</para>
|
---|
| 239 | <indexterm zone="ch-scripts-bootscripts swap-bootscripts">
|
---|
| 240 | <primary sortas="d-swap">swap</primary>
|
---|
| 241 | </indexterm>
|
---|
| 242 | </listitem>
|
---|
| 243 | </varlistentry>
|
---|
| 244 |
|
---|
| 245 | <varlistentry id="sysklogd-bootscripts">
|
---|
| 246 | <term><command>sysklogd</command></term>
|
---|
| 247 | <listitem>
|
---|
| 248 | <para>Starts and stops the system and kernel log daemons</para>
|
---|
| 249 | <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts">
|
---|
| 250 | <primary sortas="d-sysklogd">sysklogd</primary>
|
---|
| 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
| 254 |
|
---|
| 255 | <varlistentry id="template-bootscripts">
|
---|
| 256 | <term><command>template</command></term>
|
---|
| 257 | <listitem>
|
---|
| 258 | <para>A template to create custom bootscripts for other
|
---|
| 259 | daemons</para>
|
---|
| 260 | <indexterm zone="ch-scripts-bootscripts template-bootscripts">
|
---|
| 261 | <primary sortas="d-template">template</primary>
|
---|
| 262 | </indexterm>
|
---|
| 263 | </listitem>
|
---|
| 264 | </varlistentry>
|
---|
| 265 |
|
---|
| 266 | <varlistentry id="eudev-bootscripts">
|
---|
| 267 | <term><command>udev</command></term>
|
---|
| 268 | <listitem>
|
---|
| 269 | <para>Starts and stops the Eudev daemon</para>
|
---|
| 270 | <indexterm zone="ch-scripts-bootscripts eudev-bootscripts">
|
---|
| 271 | <primary sortas="d-eudev">udev</primary>
|
---|
| 272 | </indexterm>
|
---|
| 273 | </listitem>
|
---|
| 274 | </varlistentry>
|
---|
| 275 |
|
---|
| 276 | </variablelist>
|
---|
| 277 |
|
---|
| 278 | </sect2>
|
---|
| 279 |
|
---|
| 280 | </sect1>
|
---|