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