bootscripts.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-scripts-bootscripts" role="wrap">
  8. <?dbhtml filename="bootscripts.html"?>
  9. <sect1info condition="script">
  10. <productname>lfs-bootscripts</productname>
  11. <productnumber>&lfs-bootscripts-version;</productnumber>
  12. <address>&lfs-bootscripts-url;</address>
  13. </sect1info>
  14. <title>LFS-Bootscripts-&lfs-bootscripts-version;</title>
  15. <indexterm zone="ch-scripts-bootscripts">
  16. <primary sortas="a-Bootscripts">Bootscripts</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The LFS-Bootscripts package contains a set of scripts to start/stop
  21. the LFS system at bootup/shutdown. A networking systemd unit file is
  22. also installed. The configuration files and procedures needed to
  23. customize the boot process are described in the following sections.</para>
  24. <segmentedlist>
  25. <segtitle>&buildtime;</segtitle>
  26. <segtitle>&diskspace;</segtitle>
  27. <seglistitem>
  28. <seg>&lfs-bootscripts-ch7-sbu;</seg>
  29. <seg>&lfs-bootscripts-ch7-du;</seg>
  30. </seglistitem>
  31. </segmentedlist>
  32. </sect2>
  33. <sect2 role="installation">
  34. <title>Installation of LFS-Bootscripts</title>
  35. <para>Install the package:</para>
  36. <screen><userinput remap="install">make install</userinput></screen>
  37. </sect2>
  38. <sect2 id="contents-bootscripts" role="content">
  39. <title>Contents of LFS-Bootscripts</title>
  40. <segmentedlist>
  41. <segtitle>Installed scripts</segtitle>
  42. <segtitle>Installed unit</segtitle>
  43. <segtitle>Installed directories</segtitle>
  44. <seglistitem>
  45. <seg>checkfs, cleanfs, console, functions, halt, ifdown,
  46. ifup, localnet, modules, mountfs, mountvirtfs, network, rc, reboot,
  47. sendsignals, setclock, ipv4-static, swap, sysctl, sysklogd, template,
  48. udev, and udev_retry</seg>
  49. <seg>ifupdown@.service</seg>
  50. <seg>/etc/rc.d, /etc/init.d (symbolic link), /etc/sysconfig,
  51. /lib/services, /lib/lsb (symbolic link)</seg>
  52. </seglistitem>
  53. </segmentedlist>
  54. <variablelist>
  55. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  56. <?dbfo list-presentation="list"?>
  57. <?dbhtml list-presentation="table"?>
  58. <varlistentry id="checkfs-bootscripts">
  59. <term><command>checkfs</command></term>
  60. <listitem>
  61. <para>Checks the integrity of the file systems before they are mounted
  62. (with the exception of journal and network based file systems)</para>
  63. <indexterm zone="ch-scripts-bootscripts checkfs-bootscripts">
  64. <primary sortas="d-checkfs">checkfs</primary>
  65. </indexterm>
  66. </listitem>
  67. </varlistentry>
  68. <varlistentry id="cleanfs-bootscripts">
  69. <term><command>cleanfs</command></term>
  70. <listitem>
  71. <para>Removes files that should not be preserved between reboots, such
  72. as those in <filename class="directory">/var/run/</filename> and
  73. <filename class="directory">/var/lock/</filename>; it re-creates
  74. <filename>/var/run/utmp</filename> and removes the possibly present
  75. <filename>/etc/nologin</filename>, <filename>/fastboot</filename>, and
  76. <filename>/forcefsck</filename> files</para>
  77. <indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts">
  78. <primary sortas="d-cleanfs">cleanfs</primary>
  79. </indexterm>
  80. </listitem>
  81. </varlistentry>
  82. <varlistentry id="console-bootscripts">
  83. <term><command>console</command></term>
  84. <listitem>
  85. <para>Loads the correct keymap table for the desired keyboard layout;
  86. it also sets the screen font</para>
  87. <indexterm zone="ch-scripts-bootscripts console-bootscripts">
  88. <primary sortas="d-console">console</primary>
  89. </indexterm>
  90. </listitem>
  91. </varlistentry>
  92. <varlistentry id="functions-bootscripts">
  93. <term><command>functions</command></term>
  94. <listitem>
  95. <para>Contains common functions, such as error and status checking,
  96. that are used by several bootscripts</para>
  97. <indexterm zone="ch-scripts-bootscripts functions-bootscripts">
  98. <primary sortas="d-functions">functions</primary>
  99. </indexterm>
  100. </listitem>
  101. </varlistentry>
  102. <varlistentry id="halt-bootscripts">
  103. <term><command>halt</command></term>
  104. <listitem>
  105. <para>Halts the system</para>
  106. <indexterm zone="ch-scripts-bootscripts halt-bootscripts">
  107. <primary sortas="d-halt">halt</primary>
  108. </indexterm>
  109. </listitem>
  110. </varlistentry>
  111. <varlistentry id="ifdown-bootscripts">
  112. <term><command>ifdown</command></term>
  113. <listitem>
  114. <para>Stops a network device</para>
  115. <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts">
  116. <primary sortas="d-ifdown">ifdown</primary>
  117. </indexterm>
  118. </listitem>
  119. </varlistentry>
  120. <varlistentry id="ifup-bootscripts">
  121. <term><command>ifup</command></term>
  122. <listitem>
  123. <para>Initializes a network device</para>
  124. <indexterm zone="ch-scripts-bootscripts ifup-bootscripts">
  125. <primary sortas="d-ifup">ifup</primary>
  126. </indexterm>
  127. </listitem>
  128. </varlistentry>
  129. <varlistentry id="localnet-bootscripts">
  130. <term><command>localnet</command></term>
  131. <listitem>
  132. <para>Sets up the system's hostname and local loopback device</para>
  133. <indexterm zone="ch-scripts-bootscripts localnet-bootscripts">
  134. <primary sortas="d-localnet">localnet</primary>
  135. </indexterm>
  136. </listitem>
  137. </varlistentry>
  138. <varlistentry id="modules-bootscripts">
  139. <term><command>modules</command></term>
  140. <listitem>
  141. <para>Loads kernel modules listed in
  142. <filename>/etc/sysconfig/modules</filename>, using arguments
  143. that are also given there</para>
  144. <indexterm zone="ch-scripts-bootscripts modules-bootscripts">
  145. <primary sortas="d-modules">modules</primary>
  146. </indexterm>
  147. </listitem>
  148. </varlistentry>
  149. <varlistentry id="mountfs-bootscripts">
  150. <term><command>mountfs</command></term>
  151. <listitem>
  152. <para>Mounts all file systems, except ones that are marked
  153. <emphasis>noauto</emphasis> or are network based</para>
  154. <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts">
  155. <primary sortas="d-mountfs">mountfs</primary>
  156. </indexterm>
  157. </listitem>
  158. </varlistentry>
  159. <varlistentry id="mountvirtfs-bootscripts">
  160. <term><command>mountvirtfs</command></term>
  161. <listitem>
  162. <para>Mounts virtual kernel file systems, such as <systemitem
  163. class="filesystem">proc</systemitem></para>
  164. <indexterm zone="ch-scripts-bootscripts mountvirtfs-bootscripts">
  165. <primary sortas="d-mountvirtfs">mountvirtfs</primary>
  166. </indexterm>
  167. </listitem>
  168. </varlistentry>
  169. <varlistentry id="network-bootscripts">
  170. <term><command>network</command></term>
  171. <listitem>
  172. <para>Sets up network interfaces, such as network cards, and sets up
  173. the default gateway (where applicable)</para>
  174. <indexterm zone="ch-scripts-bootscripts network-bootscripts">
  175. <primary sortas="d-network">network</primary>
  176. </indexterm>
  177. </listitem>
  178. </varlistentry>
  179. <varlistentry id="rc-bootscripts">
  180. <term><command>rc</command></term>
  181. <listitem>
  182. <para>The master run-level control script; it is responsible for
  183. running all the other bootscripts one-by-one, in a sequence determined
  184. by the name of the symbolic links being processed</para>
  185. <indexterm zone="ch-scripts-bootscripts rc-bootscripts">
  186. <primary sortas="d-rc">rc</primary>
  187. </indexterm>
  188. </listitem>
  189. </varlistentry>
  190. <varlistentry id="reboot-bootscripts">
  191. <term><command>reboot</command></term>
  192. <listitem>
  193. <para>Reboots the system</para>
  194. <indexterm zone="ch-scripts-bootscripts reboot-bootscripts">
  195. <primary sortas="d-reboot">reboot</primary>
  196. </indexterm>
  197. </listitem>
  198. </varlistentry>
  199. <varlistentry id="sendsignals-bootscripts">
  200. <term><command>sendsignals</command></term>
  201. <listitem>
  202. <para>Makes sure every process is terminated before the system reboots
  203. or halts</para>
  204. <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts">
  205. <primary sortas="d-sendsignals">sendsignals</primary>
  206. </indexterm>
  207. </listitem>
  208. </varlistentry>
  209. <varlistentry id="setclock-bootscripts">
  210. <term><command>setclock</command></term>
  211. <listitem>
  212. <para>Resets the kernel clock to local time in case the hardware clock
  213. is not set to UTC time</para>
  214. <indexterm zone="ch-scripts-bootscripts setclock-bootscripts">
  215. <primary sortas="d-setclock">setclock</primary>
  216. </indexterm>
  217. </listitem>
  218. </varlistentry>
  219. <varlistentry id="ipv4-static-bootscripts">
  220. <term><command>ipv4-static</command></term>
  221. <listitem>
  222. <para>Provides the functionality needed to assign a static Internet
  223. Protocol (IP) address to a network interface</para>
  224. <indexterm zone="ch-scripts-bootscripts ipv4-static-bootscripts">
  225. <primary sortas="d-ipv4-static">ipv4-static</primary>
  226. </indexterm>
  227. </listitem>
  228. </varlistentry>
  229. <varlistentry id="swap-bootscripts">
  230. <term><command>swap</command></term>
  231. <listitem>
  232. <para>Enables and disables swap files and partitions</para>
  233. <indexterm zone="ch-scripts-bootscripts swap-bootscripts">
  234. <primary sortas="d-swap">swap</primary>
  235. </indexterm>
  236. </listitem>
  237. </varlistentry>
  238. <varlistentry id="sysctl-bootscripts">
  239. <term><command>sysctl</command></term>
  240. <listitem>
  241. <para>Loads system configuration values from
  242. <filename>/etc/sysctl.conf</filename>, if that file exists,
  243. into the running kernel</para>
  244. <indexterm zone="ch-scripts-bootscripts sysctl-bootscripts">
  245. <primary sortas="d-sysctl">sysctl</primary>
  246. </indexterm>
  247. </listitem>
  248. </varlistentry>
  249. <varlistentry id="sysklogd-bootscripts">
  250. <term><command>sysklogd</command></term>
  251. <listitem>
  252. <para>Starts and stops the system and kernel log daemons</para>
  253. <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts">
  254. <primary sortas="d-sysklogd">sysklogd</primary>
  255. </indexterm>
  256. </listitem>
  257. </varlistentry>
  258. <varlistentry id="template-bootscripts">
  259. <term><command>template</command></term>
  260. <listitem>
  261. <para>A template to create custom bootscripts for other
  262. daemons</para>
  263. <indexterm zone="ch-scripts-bootscripts template-bootscripts">
  264. <primary sortas="d-template">template</primary>
  265. </indexterm>
  266. </listitem>
  267. </varlistentry>
  268. <varlistentry id="udev-bootscripts">
  269. <term><command>udev</command></term>
  270. <listitem>
  271. <para>Prepares the <filename class="directory">/dev</filename>
  272. directory and starts Udev</para>
  273. <indexterm zone="ch-scripts-bootscripts udev-bootscripts">
  274. <primary sortas="d-udev">udev</primary>
  275. </indexterm>
  276. </listitem>
  277. </varlistentry>
  278. <varlistentry id="udev-retry-bootscripts">
  279. <term><command>udev_retry</command></term>
  280. <listitem>
  281. <para>Retries failed udev uevents, and copies generated rules
  282. files from to
  283. <filename class="directory">/etc/udev/rules.d</filename> if required</para>
  284. <indexterm zone="ch-scripts-bootscripts udev-retry-bootscripts">
  285. <primary sortas="d-udev-retry">udev_retry</primary>
  286. </indexterm>
  287. </listitem>
  288. </varlistentry>
  289. </variablelist>
  290. </sect2>
  291. </sect1>