bootscripts.xml 7.9 KB

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