1
0

bootscripts.xml 7.7 KB

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