bootscripts.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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"><title>Contents of LFS-bootscripts</title>
  28. <para><emphasis>Installed scripts</emphasis>: checkfs, cleanfs,
  29. console,
  30. functions, halt, ifdown, ifup,
  31. localnet, mountfs, mountkernfs, network, rc,
  32. reboot, sendsignals, setclock, static, swap, sysklogd and template</para>
  33. </sect2>
  34. <sect2><title>Short descriptions</title>
  35. <indexterm zone="ch-scripts-bootscripts checkfs-bootscripts"><primary sortas="d-checkfs">checkfs</primary></indexterm>
  36. <para id="checkfs-bootscripts">The <command>checkfs</command> script checks the file systems just
  37. before they are mounted (with the exception of journal and network based
  38. file systems).</para>
  39. <indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts"><primary sortas="d-cleanfs">cleanfs</primary></indexterm>
  40. <para id="cleanfs-bootscripts">The <command>cleanfs</command> script removes files that shouldn't be
  41. preserved between reboots, such as those in <filename>/var/run/</filename> and
  42. <filename>/var/lock/</filename>. It re-creates <filename>/var/run/utmp</filename>
  43. and removes the possibly present <filename>/etc/nologin</filename>,
  44. <filename>/fastboot</filename> and <filename>/forcefsck</filename> files.</para>
  45. <indexterm zone="ch-scripts-bootscripts console-bootscripts"><primary sortas="d-console">console</primary></indexterm>
  46. <para id="console-bootscripts">The <command>console</command> script
  47. loads the keymap table you
  48. specified as proper for your keyboard layout.
  49. It also sets the screen font.</para>
  50. <indexterm zone="ch-scripts-bootscripts functions-bootscripts"><primary sortas="d-functions">functions</primary></indexterm>
  51. <para id="functions-bootscripts">The <command>functions</command> script contains functions shared among
  52. different scripts, such as error and status checking.</para>
  53. <indexterm zone="ch-scripts-bootscripts halt-bootscripts"><primary sortas="d-halt">halt</primary></indexterm>
  54. <para id="halt-bootscripts">The <command>halt</command> script halts the system.</para>
  55. <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts"><primary sortas="d-ifdown">ifdown</primary></indexterm>
  56. <para id="ifdown-bootscripts">The <command>ifdown</command> and <command>ifup</command> scripts assist
  57. the network script with network devices.</para>
  58. <indexterm zone="ch-scripts-bootscripts localnet-bootscripts"><primary sortas="d-localnet">localnet</primary></indexterm>
  59. <para id="localnet-bootscripts">The <command>localnet</command> script sets up the system's hostname and
  60. local loopback device.</para>
  61. <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts"><primary sortas="d-mountfs">mountfs</primary></indexterm>
  62. <para id="mountfs-bootscripts">The <command>mountfs</command> script mounts all file systems that
  63. aren't marked <emphasis>noauto</emphasis> or aren't network based.</para>
  64. <indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts"><primary sortas="d-mountkernfs">mountkernfs</primary></indexterm>
  65. <para id="mountkernfs-bootscripts">The <command>mountkernfs</command> script is used to mount
  66. kernel-provided file systems, such as /proc.</para>
  67. <indexterm zone="ch-scripts-bootscripts network-bootscripts"><primary sortas="d-network">network</primary></indexterm>
  68. <para id="network-bootscripts">The <command>network</command> script sets up network interfaces, such
  69. as network cards, and sets up the default gateway where applicable.</para>
  70. <indexterm zone="ch-scripts-bootscripts rc-bootscripts"><primary sortas="d-rc">rc</primary></indexterm>
  71. <para id="rc-bootscripts">The <command>rc</command> script is the master run-level control script.
  72. It is responsible for running all the other scripts one-by-one, in a sequence
  73. determined by the name of the symbolic links being processed.</para>
  74. <indexterm zone="ch-scripts-bootscripts reboot-bootscripts"><primary sortas="d-reboot">reboot</primary></indexterm>
  75. <para id="reboot-bootscripts">The <command>reboot</command> script reboots the system.</para>
  76. <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts"><primary sortas="d-sendsignals">sendsignals</primary></indexterm>
  77. <para id="sendsignals-bootscripts">The <command>sendsignals</command> script makes sure every process is
  78. terminated before the system reboots or halts.</para>
  79. <indexterm zone="ch-scripts-bootscripts setclock-bootscripts"><primary sortas="d-setclock">setclock</primary></indexterm>
  80. <para id="setclock-bootscripts">The <command>setclock</command> script resets the kernel clock to
  81. localtime in case the hardware clock isn't set to GMT time.</para>
  82. <indexterm zone="ch-scripts-bootscripts static-bootscripts"><primary sortas="d-static">static</primary></indexterm>
  83. <para id="static-bootscripts">The <command>static</command> script provides the functionality needed
  84. to assign a static IP address to a network interface.</para>
  85. <indexterm zone="ch-scripts-bootscripts swap-bootscripts"><primary sortas="d-swap">swap</primary></indexterm>
  86. <para id="swap-bootscripts">The <command>swap</command> script enables and disables swap files and
  87. partitions.</para>
  88. <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts"><primary sortas="d-sysklogd">sysklogd</primary></indexterm>
  89. <para id="sysklogd-bootscripts">The <command>sysklogd</command> script starts and stops the system and
  90. kernel log daemons.</para>
  91. <indexterm zone="ch-scripts-bootscripts template-bootscripts"><primary sortas="d-template">template</primary></indexterm>
  92. <para id="template-bootscripts">The <command>template</command> script is a template you can use to
  93. create your own bootscripts for your other daemons.</para>
  94. </sect2>
  95. </sect1>