bootscripts.xml 8.0 KB

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