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