bootscripts.xml 7.6 KB

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