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