[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 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-scripts-bootscripts" xreflabel="Bootscripts" role="wrap">
|
---|
[673b0d8] | 7 | <title>LFS-Bootscripts-&bootscripts-version;</title>
|
---|
| 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>
|
---|
| 23 | <seglistitem><seg>Bash, Coreutils</seg></seglistitem>
|
---|
| 24 | </segmentedlist>
|
---|
| 25 | </sect2>
|
---|
[418e6cc] | 26 |
|
---|
[a001133] | 27 | <sect2 role="installation">
|
---|
[418e6cc] | 28 | <title>Installation of LFS-Bootscripts</title>
|
---|
| 29 |
|
---|
[673b0d8] | 30 | <para>Installation of the bootscripts is very simple:</para>
|
---|
| 31 |
|
---|
| 32 | <screen><userinput>make install</userinput></screen>
|
---|
| 33 |
|
---|
[bad0dd1] | 34 | <para>Also install hotplug's boot script:</para>
|
---|
| 35 |
|
---|
| 36 | <screen><userinput>make install-hotplug</userinput></screen>
|
---|
| 37 |
|
---|
[673b0d8] | 38 | </sect2>
|
---|
[418e6cc] | 39 |
|
---|
| 40 |
|
---|
[c6cb3aa] | 41 | <sect2 id="contents-bootscripts" role="content"><title>Contents of LFS-bootscripts</title>
|
---|
[418e6cc] | 42 |
|
---|
[c6cb3aa] | 43 | <segmentedlist>
|
---|
| 44 | <segtitle>Installed scripts</segtitle>
|
---|
| 45 | <seglistitem><seg>checkfs, cleanfs, console, functions, halt, ifdown, ifup,
|
---|
| 46 | localnet, mountfs, mountkernfs, network, rc, reboot, sendsignals, setclock, static,
|
---|
| 47 | swap, sysklogd and template</seg></seglistitem>
|
---|
| 48 | </segmentedlist>
|
---|
[418e6cc] | 49 |
|
---|
[c6cb3aa] | 50 | <variablelist><title>Short descriptions</title>
|
---|
[673b0d8] | 51 |
|
---|
[b8a819f] | 52 | <varlistentry id="checkfs-bootscripts">
|
---|
| 53 | <term><command>checkfs</command></term>
|
---|
[c6cb3aa] | 54 | <listitem>
|
---|
[673b0d8] | 55 | <indexterm zone="ch-scripts-bootscripts checkfs-bootscripts"><primary sortas="d-checkfs">checkfs</primary></indexterm>
|
---|
[c6cb3aa] | 56 | <para>checks the file systems just before they are mounted (with the exception of journal
|
---|
| 57 | and network based file systems).</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | </varlistentry>
|
---|
| 60 |
|
---|
[b8a819f] | 61 | <varlistentry id="cleanfs-bootscripts">
|
---|
| 62 | <term><command>cleanfs</command></term>
|
---|
[c6cb3aa] | 63 | <listitem>
|
---|
[673b0d8] | 64 | <indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts"><primary sortas="d-cleanfs">cleanfs</primary></indexterm>
|
---|
[c6cb3aa] | 65 | <para>removes files that shouldn't be
|
---|
[f67f5cf] | 66 | preserved between reboots, such as those in <filename class="directory">/var/run/</filename> and
|
---|
| 67 | <filename class="directory">/var/lock/</filename>. It re-creates <filename>/var/run/utmp</filename>
|
---|
[673b0d8] | 68 | and removes the possibly present <filename>/etc/nologin</filename>,
|
---|
| 69 | <filename>/fastboot</filename> and <filename>/forcefsck</filename> files.</para>
|
---|
[c6cb3aa] | 70 | </listitem>
|
---|
| 71 | </varlistentry>
|
---|
[673b0d8] | 72 |
|
---|
[b8a819f] | 73 | <varlistentry id="console-bootscripts">
|
---|
| 74 | <term><command>console</command></term>
|
---|
[c6cb3aa] | 75 | <listitem>
|
---|
[b32e803] | 76 | <indexterm zone="ch-scripts-bootscripts console-bootscripts"><primary sortas="d-console">console</primary></indexterm>
|
---|
[c6cb3aa] | 77 | <para>loads the keymap table you specified as proper for your keyboard layout.
|
---|
[b32e803] | 78 | It also sets the screen font.</para>
|
---|
[c6cb3aa] | 79 | </listitem>
|
---|
| 80 | </varlistentry>
|
---|
[b32e803] | 81 |
|
---|
[b8a819f] | 82 | <varlistentry id="functions-bootscripts">
|
---|
| 83 | <term><command>functions</command></term>
|
---|
[c6cb3aa] | 84 | <listitem>
|
---|
[673b0d8] | 85 | <indexterm zone="ch-scripts-bootscripts functions-bootscripts"><primary sortas="d-functions">functions</primary></indexterm>
|
---|
[c6cb3aa] | 86 | <para>contains functions shared among
|
---|
[673b0d8] | 87 | different scripts, such as error and status checking.</para>
|
---|
[c6cb3aa] | 88 | </listitem>
|
---|
| 89 | </varlistentry>
|
---|
[673b0d8] | 90 |
|
---|
[b8a819f] | 91 | <varlistentry id="halt-bootscripts">
|
---|
| 92 | <term><command>halt</command></term>
|
---|
[c6cb3aa] | 93 | <listitem>
|
---|
[673b0d8] | 94 | <indexterm zone="ch-scripts-bootscripts halt-bootscripts"><primary sortas="d-halt">halt</primary></indexterm>
|
---|
[c6cb3aa] | 95 | <para>halts the system.</para>
|
---|
| 96 | </listitem>
|
---|
| 97 | </varlistentry>
|
---|
[673b0d8] | 98 |
|
---|
[b8a819f] | 99 | <varlistentry id="ifdown-bootscripts">
|
---|
| 100 | <term><command>ifdown</command> and <command>ifup</command></term>
|
---|
[c6cb3aa] | 101 | <listitem>
|
---|
[673b0d8] | 102 | <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts"><primary sortas="d-ifdown">ifdown</primary></indexterm>
|
---|
[c6cb3aa] | 103 | <para>assist the network script with network devices.</para>
|
---|
| 104 | </listitem>
|
---|
| 105 | </varlistentry>
|
---|
[673b0d8] | 106 |
|
---|
[b8a819f] | 107 | <varlistentry id="localnet-bootscripts">
|
---|
| 108 | <term><command>localnet</command></term>
|
---|
[c6cb3aa] | 109 | <listitem>
|
---|
[673b0d8] | 110 | <indexterm zone="ch-scripts-bootscripts localnet-bootscripts"><primary sortas="d-localnet">localnet</primary></indexterm>
|
---|
[c6cb3aa] | 111 | <para>sets up the system's hostname and local loopback device.</para>
|
---|
| 112 | </listitem>
|
---|
| 113 | </varlistentry>
|
---|
[673b0d8] | 114 |
|
---|
[b8a819f] | 115 | <varlistentry id="mountfs-bootscripts">
|
---|
| 116 | <term><command>mountfs</command></term>
|
---|
[c6cb3aa] | 117 | <listitem>
|
---|
[673b0d8] | 118 | <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts"><primary sortas="d-mountfs">mountfs</primary></indexterm>
|
---|
[c6cb3aa] | 119 | <para>mounts all file systems that
|
---|
[673b0d8] | 120 | aren't marked <emphasis>noauto</emphasis> or aren't network based.</para>
|
---|
[c6cb3aa] | 121 | </listitem>
|
---|
| 122 | </varlistentry>
|
---|
[673b0d8] | 123 |
|
---|
[b8a819f] | 124 | <varlistentry id="mountkernfs-bootscripts">
|
---|
| 125 | <term><command>mountkernfs</command></term>
|
---|
[c6cb3aa] | 126 | <listitem>
|
---|
[673b0d8] | 127 | <indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts"><primary sortas="d-mountkernfs">mountkernfs</primary></indexterm>
|
---|
[f67f5cf] | 128 | <para>is used to mount kernel-provided file systems, such as <systemitem class="filesystem">proc</systemitem>.</para>
|
---|
[c6cb3aa] | 129 | </listitem>
|
---|
| 130 | </varlistentry>
|
---|
[418e6cc] | 131 |
|
---|
[b8a819f] | 132 | <varlistentry id="network-bootscripts">
|
---|
| 133 | <term><command>network</command></term>
|
---|
[c6cb3aa] | 134 | <listitem>
|
---|
[673b0d8] | 135 | <indexterm zone="ch-scripts-bootscripts network-bootscripts"><primary sortas="d-network">network</primary></indexterm>
|
---|
[c6cb3aa] | 136 | <para>sets up network interfaces, such
|
---|
[673b0d8] | 137 | as network cards, and sets up the default gateway where applicable.</para>
|
---|
[c6cb3aa] | 138 | </listitem>
|
---|
| 139 | </varlistentry>
|
---|
[673b0d8] | 140 |
|
---|
[b8a819f] | 141 | <varlistentry id="rc-bootscripts">
|
---|
| 142 | <term><command>rc</command></term>
|
---|
[c6cb3aa] | 143 | <listitem>
|
---|
[673b0d8] | 144 | <indexterm zone="ch-scripts-bootscripts rc-bootscripts"><primary sortas="d-rc">rc</primary></indexterm>
|
---|
[c6cb3aa] | 145 | <para>is the master run-level control script.
|
---|
[673b0d8] | 146 | It is responsible for running all the other scripts one-by-one, in a sequence
|
---|
| 147 | determined by the name of the symbolic links being processed.</para>
|
---|
[c6cb3aa] | 148 | </listitem>
|
---|
| 149 | </varlistentry>
|
---|
[673b0d8] | 150 |
|
---|
[b8a819f] | 151 | <varlistentry id="reboot-bootscripts">
|
---|
| 152 | <term><command>reboot</command></term>
|
---|
[c6cb3aa] | 153 | <listitem>
|
---|
[673b0d8] | 154 | <indexterm zone="ch-scripts-bootscripts reboot-bootscripts"><primary sortas="d-reboot">reboot</primary></indexterm>
|
---|
[c6cb3aa] | 155 | <para>reboots the system.</para>
|
---|
| 156 | </listitem>
|
---|
| 157 | </varlistentry>
|
---|
[673b0d8] | 158 |
|
---|
[b8a819f] | 159 | <varlistentry id="sendsignals-bootscripts">
|
---|
| 160 | <term><command>sendsignals</command></term>
|
---|
[c6cb3aa] | 161 | <listitem>
|
---|
[673b0d8] | 162 | <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts"><primary sortas="d-sendsignals">sendsignals</primary></indexterm>
|
---|
[c6cb3aa] | 163 | <para>makes sure every process is terminated before the system reboots or halts.</para>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
[673b0d8] | 166 |
|
---|
[b8a819f] | 167 | <varlistentry id="setclock-bootscripts">
|
---|
| 168 | <term><command>setclock</command></term>
|
---|
[c6cb3aa] | 169 | <listitem>
|
---|
[673b0d8] | 170 | <indexterm zone="ch-scripts-bootscripts setclock-bootscripts"><primary sortas="d-setclock">setclock</primary></indexterm>
|
---|
[c6cb3aa] | 171 | <para>resets the kernel clock to
|
---|
[673b0d8] | 172 | localtime in case the hardware clock isn't set to GMT time.</para>
|
---|
[c6cb3aa] | 173 | </listitem>
|
---|
| 174 | </varlistentry>
|
---|
[673b0d8] | 175 |
|
---|
[b8a819f] | 176 | <varlistentry id="static-bootscripts">
|
---|
| 177 | <term><command>static</command></term>
|
---|
[c6cb3aa] | 178 | <listitem>
|
---|
[673b0d8] | 179 | <indexterm zone="ch-scripts-bootscripts static-bootscripts"><primary sortas="d-static">static</primary></indexterm>
|
---|
[c6cb3aa] | 180 | <para>provides the functionality needed
|
---|
[673b0d8] | 181 | to assign a static IP address to a network interface.</para>
|
---|
[c6cb3aa] | 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
[673b0d8] | 184 |
|
---|
[b8a819f] | 185 | <varlistentry id="swap-bootscripts">
|
---|
| 186 | <term><command>swap</command></term>
|
---|
[c6cb3aa] | 187 | <listitem>
|
---|
[673b0d8] | 188 | <indexterm zone="ch-scripts-bootscripts swap-bootscripts"><primary sortas="d-swap">swap</primary></indexterm>
|
---|
[c6cb3aa] | 189 | <para>enables and disables swap files and partitions.</para>
|
---|
| 190 | </listitem>
|
---|
| 191 | </varlistentry>
|
---|
[673b0d8] | 192 |
|
---|
[b8a819f] | 193 | <varlistentry id="sysklogd-bootscripts">
|
---|
| 194 | <term><command>sysklogd</command></term>
|
---|
[c6cb3aa] | 195 | <listitem>
|
---|
[673b0d8] | 196 | <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts"><primary sortas="d-sysklogd">sysklogd</primary></indexterm>
|
---|
[c6cb3aa] | 197 | <para>starts and stops the system and kernel log daemons.</para>
|
---|
| 198 | </listitem>
|
---|
| 199 | </varlistentry>
|
---|
[673b0d8] | 200 |
|
---|
[b8a819f] | 201 | <varlistentry id="template-bootscripts">
|
---|
| 202 | <term><command>template</command></term>
|
---|
[c6cb3aa] | 203 | <listitem>
|
---|
[673b0d8] | 204 | <indexterm zone="ch-scripts-bootscripts template-bootscripts"><primary sortas="d-template">template</primary></indexterm>
|
---|
[c6cb3aa] | 205 | <para>is a template you can use to
|
---|
[673b0d8] | 206 | create your own bootscripts for your other daemons.</para>
|
---|
[c6cb3aa] | 207 | </listitem>
|
---|
| 208 | </varlistentry>
|
---|
| 209 | </variablelist>
|
---|
[673b0d8] | 210 |
|
---|
| 211 | </sect2>
|
---|
| 212 |
|
---|
| 213 | </sect1>
|
---|