aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/bootscripts.xml
diff options
context:
space:
mode:
authorMatthew Burgess <matthew@linuxfromscratch.org>2004-05-03 10:59:46 +0000
committerMatthew Burgess <matthew@linuxfromscratch.org>2004-05-03 10:59:46 +0000
commit673b0d84ba9591e07c0bdf0ee49d92eba10f502c (patch)
tree129e27a1450727b440da4378e0117a468eb9c25e /chapter07/bootscripts.xml
parent287ea55da70ceb1f0990554b7db921d525fef816 (diff)
* Merged newxml into HEAD
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3435 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07/bootscripts.xml')
-rw-r--r--chapter07/bootscripts.xml120
1 files changed, 104 insertions, 16 deletions
diff --git a/chapter07/bootscripts.xml b/chapter07/bootscripts.xml
index dc90e2e68..9ee79f203 100644
--- a/chapter07/bootscripts.xml
+++ b/chapter07/bootscripts.xml
@@ -1,33 +1,121 @@
-<sect1 id="ch-system-lfs-bootscripts" xreflabel="Bootscripts">
-<title>Installing LFS-Bootscripts-&bootscripts-version;</title>
-<?dbhtml filename="bootscripts.html" dir="chapter07"?>
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
+ <!ENTITY % general-entities SYSTEM "../general.ent">
+ %general-entities;
+]>
+<sect1 id="ch-scripts-bootscripts" xreflabel="Bootscripts">
+<title>LFS-Bootscripts-&bootscripts-version;</title>
+<?dbhtml filename="bootscripts.html"?>
+
+<indexterm zone="ch-scripts-bootscripts"><primary sortas="a-Bootscripts">Bootscripts</primary></indexterm>
<para>The LFS-Bootscripts package contains a set of bootscripts.</para>
-<screen>&buildtime; &bootscripts-time;
-&diskspace; &bootscripts-compsize;</screen>
+<screen>&buildtime; 0.1 SBU
+&diskspace; 0.3 MB</screen>
+
+<para>LFS-Bootscripts installation depends on: Bash, Coreutils.</para>
-&bootscripts-down;
-&bootscripts-dep;
-<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
<sect2>
<title>Installation of LFS-Bootscripts</title>
-<para>Install the boot scripts simply by copying them to their
-destination:</para>
+<para>Installation of the bootscripts is very simple:</para>
+
+<screen><userinput>make install</userinput></screen>
+
+</sect2>
-<screen><userinput>cp -a rc.d sysconfig /etc</userinput></screen>
-<para>Make sure <emphasis>root</emphasis> is owner of the scripts:</para>
+<sect2 id="contents-bootscripts"><title>Contents of LFS-bootscripts</title>
-<screen><userinput>chown -R root:root /etc/rc.d /etc/sysconfig</userinput></screen>
+<para><emphasis>Installed scripts</emphasis>: checkfs, cleanfs, functions,
+halt, ifdown, ifup, loadkeys, localnet, mountfs, mountkernfs, network, rc,
+reboot, sendsignals, setclock, static, swap, sysklogd and template</para>
</sect2>
-&bootscripts-shortdesc;
-&bootscripts-desc;
-</sect1>
+<sect2><title>Short descriptions</title>
+
+<indexterm zone="ch-scripts-bootscripts checkfs-bootscripts"><primary sortas="d-checkfs">checkfs</primary></indexterm>
+<para id="checkfs-bootscripts">The <command>checkfs</command> script checks the file systems just
+before they are mounted (with the exception of journal and network based
+file systems).</para>
+
+<indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts"><primary sortas="d-cleanfs">cleanfs</primary></indexterm>
+<para id="cleanfs-bootscripts">The <command>cleanfs</command> script removes files that shouldn't be
+preserved between reboots, such as those in <filename>/var/run/</filename> and
+<filename>/var/lock/</filename>. It re-creates <filename>/var/run/utmp</filename>
+and removes the possibly present <filename>/etc/nologin</filename>,
+<filename>/fastboot</filename> and <filename>/forcefsck</filename> files.</para>
+
+<indexterm zone="ch-scripts-bootscripts functions-bootscripts"><primary sortas="d-functions">functions</primary></indexterm>
+<para id="functions-bootscripts">The <command>functions</command> script contains functions shared among
+different scripts, such as error and status checking.</para>
+
+<indexterm zone="ch-scripts-bootscripts halt-bootscripts"><primary sortas="d-halt">halt</primary></indexterm>
+<para id="halt-bootscripts">The <command>halt</command> script halts the system.</para>
+
+<indexterm zone="ch-scripts-bootscripts ifdown-bootscripts"><primary sortas="d-ifdown">ifdown</primary></indexterm>
+<para id="ifdown-bootscripts">The <command>ifdown</command> and <command>ifup</command> scripts assist
+the network script with network devices.</para>
+
+<indexterm zone="ch-scripts-bootscripts loadkeys-bootscripts"><primary sortas="d-loadkeys">loadkeys</primary></indexterm>
+<para id="loadkeys-bootscripts">The <command>loadkeys</command> script loads the keymap table you
+specified as proper for your keyboard layout.</para>
+
+<indexterm zone="ch-scripts-bootscripts localnet-bootscripts"><primary sortas="d-localnet">localnet</primary></indexterm>
+<para id="localnet-bootscripts">The <command>localnet</command> script sets up the system's hostname and
+local loopback device.</para>
+
+<indexterm zone="ch-scripts-bootscripts mountfs-bootscripts"><primary sortas="d-mountfs">mountfs</primary></indexterm>
+<para id="mountfs-bootscripts">The <command>mountfs</command> script mounts all file systems that
+aren't marked <emphasis>noauto</emphasis> or aren't network based.</para>
+
+<indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts"><primary sortas="d-mountkernfs">mountkernfs</primary></indexterm>
+<para id="mountkernfs-bootscripts">The <command>mountkernfs</command> script is used to mount
+kernel-provided file systems, such as /proc.</para>
+<indexterm zone="ch-scripts-bootscripts network-bootscripts"><primary sortas="d-network">network</primary></indexterm>
+<para id="network-bootscripts">The <command>network</command> script sets up network interfaces, such
+as network cards, and sets up the default gateway where applicable.</para>
+
+<indexterm zone="ch-scripts-bootscripts rc-bootscripts"><primary sortas="d-rc">rc</primary></indexterm>
+<para id="rc-bootscripts">The <command>rc</command> script is the master run-level control script.
+It is responsible for running all the other scripts one-by-one, in a sequence
+determined by the name of the symbolic links being processed.</para>
+
+<indexterm zone="ch-scripts-bootscripts reboot-bootscripts"><primary sortas="d-reboot">reboot</primary></indexterm>
+<para id="reboot-bootscripts">The <command>reboot</command> script reboots the system.</para>
+
+<indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts"><primary sortas="d-sendsignals">sendsignals</primary></indexterm>
+<para id="sendsignals-bootscripts">The <command>sendsignals</command> script makes sure every process is
+terminated before the system reboots or halts.</para>
+
+<indexterm zone="ch-scripts-bootscripts setclock-bootscripts"><primary sortas="d-setclock">setclock</primary></indexterm>
+<para id="setclock-bootscripts">The <command>setclock</command> script resets the kernel clock to
+localtime in case the hardware clock isn't set to GMT time.</para>
+
+<indexterm zone="ch-scripts-bootscripts static-bootscripts"><primary sortas="d-static">static</primary></indexterm>
+<para id="static-bootscripts">The <command>static</command> script provides the functionality needed
+to assign a static IP address to a network interface.</para>
+
+<indexterm zone="ch-scripts-bootscripts swap-bootscripts"><primary sortas="d-swap">swap</primary></indexterm>
+<para id="swap-bootscripts">The <command>swap</command> script enables and disables swap files and
+partitions.</para>
+
+<indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts"><primary sortas="d-sysklogd">sysklogd</primary></indexterm>
+<para id="sysklogd-bootscripts">The <command>sysklogd</command> script starts and stops the system and
+kernel log daemons.</para>
+
+<indexterm zone="ch-scripts-bootscripts template-bootscripts"><primary sortas="d-template">template</primary></indexterm>
+<para id="template-bootscripts">The <command>template</command> script is a template you can use to
+create your own bootscripts for your other daemons.</para>
+
+</sect2>
+
+
+
+</sect1>