diff options
Diffstat (limited to 'chapter07')
-rw-r--r-- | chapter07/bootscripts.xml | 14 | ||||
-rw-r--r-- | chapter07/chapter07.xml | 4 | ||||
-rw-r--r-- | chapter07/ethnet-symperm.xml | 35 | ||||
-rw-r--r-- | chapter07/ethnet.xml | 4 | ||||
-rw-r--r-- | chapter07/finalreboot.xml | 30 | ||||
-rw-r--r-- | chapter07/hosts.xml | 2 | ||||
-rw-r--r-- | chapter07/introduction.xml | 20 | ||||
-rw-r--r-- | chapter07/localnet-symperm.xml | 17 | ||||
-rw-r--r-- | chapter07/localnet.xml | 4 | ||||
-rw-r--r-- | chapter07/network.xml | 2 | ||||
-rw-r--r-- | chapter07/symperm.xml | 15 |
11 files changed, 38 insertions, 109 deletions
diff --git a/chapter07/bootscripts.xml b/chapter07/bootscripts.xml index ac33ca2bc..a49c4d609 100644 --- a/chapter07/bootscripts.xml +++ b/chapter07/bootscripts.xml @@ -1,12 +1,12 @@ -<sect1 id="ch09-bootscripts"> +<sect1 id="ch07-bootscripts"> <title>Creating network boot scripts</title> -&c9-bs-localnet; -&c9-bs-localnet-symperm; -&c9-bs-hostname; -&c9-bs-hosts; -&c9-bs-ethnet; -&c9-bs-ethnet-symperm; +&c7-bs-localnet; +&c7-bs-localnet-symperm; +&c7-bs-hostname; +&c7-bs-hosts; +&c7-bs-ethnet; +&c7-bs-ethnet-symperm; </sect1> diff --git a/chapter07/chapter07.xml b/chapter07/chapter07.xml index 0db9dbde2..290739dbf 100644 --- a/chapter07/chapter07.xml +++ b/chapter07/chapter07.xml @@ -16,6 +16,10 @@ &c7-setclock; &c7-sysklogd; &c7-template; +&c7-localnet; +&c7-network; +&c7-hosts; +&c7-ethnet; &c7-symperm; </chapter> diff --git a/chapter07/ethnet-symperm.xml b/chapter07/ethnet-symperm.xml deleted file mode 100644 index 155e33dcb..000000000 --- a/chapter07/ethnet-symperm.xml +++ /dev/null @@ -1,35 +0,0 @@ -<sect2> -<title>Setting up permissions and symlink</title> - -<para> -The proper file permissions and the necessary symlinks are set or created by -running the following commands: -</para> - -<blockquote><literallayout> - <userinput>cd /etc/init.d &&</userinput> - <userinput>chmod 754 ethnet &&</userinput> - <userinput>cd ../rc0.d &&</userinput> - <userinput>ln -s ../init.d/ethnet K800ethnet && - </userinput> - <userinput>cd ../rc1.d &&</userinput> - <userinput>ln -s ../init.d/ethnet K800ethnet && - </userinput> - <userinput>cd ../rc2.d &&</userinput> - <userinput>ln -s ../init.d/ethnet K800ethnet && - </userinput> - <userinput>cd ../rc3.d &&</userinput> - <userinput>ln -s ../init.d/ethnet S200ethnet && - </userinput> - <userinput>cd ../rc4.d &&</userinput> - <userinput>ln -s ../init.d/ethnet S200ethnet && - </userinput> - <userinput>cd ../rc5.d &&</userinput> - <userinput>ln -s ../init.d/ethnet S200ethnet && - </userinput> - <userinput>cd ../rc6.d &&</userinput> - <userinput>ln -s ../init.d/ethnet K800ethnet</userinput> -</literallayout></blockquote> - -</sect2> - diff --git a/chapter07/ethnet.xml b/chapter07/ethnet.xml index f71059a30..c3db3e72d 100644 --- a/chapter07/ethnet.xml +++ b/chapter07/ethnet.xml @@ -1,4 +1,4 @@ -<sect1 id="ch09-ethnet"> +<sect1 id="ch07-ethnet"> <title>Creating the /etc/init.d/ethnet script</title> <para> @@ -186,7 +186,5 @@ ignored by the ethnet script and thus not brought up. </sect2> -&c9-ethnet-symperm; - </sect1> diff --git a/chapter07/finalreboot.xml b/chapter07/finalreboot.xml deleted file mode 100644 index b6715a101..000000000 --- a/chapter07/finalreboot.xml +++ /dev/null @@ -1,30 +0,0 @@ -<sect1 id="ch09-finalreboot"> -<title>Final reboot</title> - -<para> -Reboot your system once more. You could run the network scripts by -hand and then restart sysklogd, but rebooting is a nice way to test if -everything works as it should. The errors from syslogd and klogd won't -show up anymore. -</para> - -<para> -Before you reboot you want to run lilo now. This will install the LFS -version of Lilo in the MBR instead of your host system's version. -Update Lilo by running: -</para> - -<blockquote><literallayout> - <userinput>/sbin/lilo</userinput> -</literallayout></blockquote> - -<para> -Now, let's reboot: -</para> - -<blockquote><literallayout> - <userinput>/sbin/reboot</userinput> -</literallayout></blockquote> - -</sect1> - diff --git a/chapter07/hosts.xml b/chapter07/hosts.xml index 490306a81..01684ee6d 100644 --- a/chapter07/hosts.xml +++ b/chapter07/hosts.xml @@ -1,4 +1,4 @@ -<sect1 id="ch09-hosts"> +<sect1 id="ch07-hosts"> <title>Creating the /etc/hosts file</title> <para> diff --git a/chapter07/introduction.xml b/chapter07/introduction.xml index e9878ac54..323270849 100644 --- a/chapter07/introduction.xml +++ b/chapter07/introduction.xml @@ -1,12 +1,20 @@ -<sect1 id="ch09-introduction"> +<sect1 id="ch07-introduction"> <title>Introduction</title> <para> -This chapter will setup basic networking. Although the system might not be -connected to a network, Linux software uses network functions anyway. -We'll be installing at least the local loopback device and a network -card as well if applicable. Also the proper boot scripts will be created -so that networking will be enabled during boot time. +This chapter will create the necessary scripts that are run at boot time. +These scripts perform tasks such as remounting the root file system +mounted read-only by the kernel into read-write mode, activating the swap +partition(s), running a check on the root file system to make sure it's +intact, setting up networking and starting the daemons that the system uses. +</para> + +<para> +We will be using SysV style init scripts. We have chosen this style because it +is widely used and we feel confortable with it. If you want to try something +else, someone has written an LFS-Hint on <ulink +url="http://archive.linuxfromscratch.org/lfs-hints/BSD-Init.txt">BSD style init +scripts</ulink>. </para> </sect1> diff --git a/chapter07/localnet-symperm.xml b/chapter07/localnet-symperm.xml deleted file mode 100644 index ee0e92140..000000000 --- a/chapter07/localnet-symperm.xml +++ /dev/null @@ -1,17 +0,0 @@ -<sect2> -<title>Setting up permissions and symlink</title> - -<para> -The proper file permissions and the necessary symlink are set or created by -running the following commands: -</para> - -<blockquote><literallayout> - <userinput>cd /etc/init.d &&</userinput> - <userinput>chmod 754 localnet &&</userinput> - <userinput>cd ../rcS.d &&</userinput> - <userinput>ln -s ../init.d/localnet S100localnet</userinput> -</literallayout></blockquote> - -</sect2> - diff --git a/chapter07/localnet.xml b/chapter07/localnet.xml index 8ba6480d2..1aa413b37 100644 --- a/chapter07/localnet.xml +++ b/chapter07/localnet.xml @@ -1,4 +1,4 @@ -<sect1 id="ch09-localnet"> +<sect1 id="ch07-localnet"> <title>Creating the /etc/init.d/localnet boot script</title> <para> @@ -51,7 +51,5 @@ esac <userinput>EOF</userinput> </literallayout> -&c9-localnet-symperm; - </sect1> diff --git a/chapter07/network.xml b/chapter07/network.xml index 2ed3f702b..121dc5cb1 100644 --- a/chapter07/network.xml +++ b/chapter07/network.xml @@ -1,4 +1,4 @@ -<sect1 id="ch09-network"> +<sect1 id="ch07-network"> <title>Creating the /etc/sysconfig/network file</title> <para> diff --git a/chapter07/symperm.xml b/chapter07/symperm.xml index 3afe64c1b..03c258650 100644 --- a/chapter07/symperm.xml +++ b/chapter07/symperm.xml @@ -17,45 +17,48 @@ S20mydaemon, but S020mydaemon. And don't use K2otherdaemon, but K002otherdaemon. </para> -<para> -Revised rc and rcS scripts are on their way, but we had no time to -properly test them for this release. They will appear in CVS shortly -after this version of the book has been released. -</para> - <blockquote><literallayout> <userinput>cd /etc/init.d &&</userinput> <userinput>chmod 754 rc rcS functions checkfs halt loadkeys mountfs reboot &&</userinput> <userinput>chmod 754 sendsignals setclock sysklogd template &&</userinput> + <userinput>chmod 754 localnet ethnet &&</userinput> <userinput>cd ../rc0.d &&</userinput> + <userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput> <userinput>ln -s ../init.d/sysklogd K900sysklogd &&</userinput> <userinput>ln -s ../init.d/sendsignals S800sendsignals && </userinput> <userinput>ln -s ../init.d/mountfs S900mountfs &&</userinput> <userinput>ln -s ../init.d/halt S999halt &&</userinput> <userinput>cd ../rc6.d &&</userinput> + <userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput> <userinput>ln -s ../init.d/sysklogd K900sysklogd &&</userinput> <userinput>ln -s ../init.d/sendsignals S800sendsignals && </userinput> <userinput>ln -s ../init.d/mountfs S900mountfs &&</userinput> <userinput>ln -s ../init.d/reboot S999reboot &&</userinput> <userinput>cd ../rcS.d &&</userinput> + <userinput>ln -s ../init.d/localnet S100localnet &&</userinput> <userinput>ln -s ../init.d/checkfs S200checkfs &&</userinput> <userinput>ln -s ../init.d/mountfs S300mountfs &&</userinput> <userinput>ln -s ../init.d/setclock S400setclock &&</userinput> <userinput>ln -s ../init.d/loadkeys S500loadkeys &&</userinput> <userinput>cd ../rc1.d &&</userinput> + <userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput> <userinput>ln -s ../init.d/sysklogd K900sysklogd &&</userinput> <userinput>cd ../rc2.d &&</userinput> <userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput> + <userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput> <userinput>cd ../rc3.d &&</userinput> <userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput> + <userinput>ln -s ../init.d/ethnet S200ethnet &&</userinput> <userinput>cd ../rc4.d &&</userinput> <userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput> + <userinput>ln -s ../init.d/ethnet S200ethnet &&</userinput> <userinput>cd ../rc5.d &&</userinput> <userinput>ln -s ../init.d/sysklogd S100sysklogd</userinput> + <userinput>ln -s ../init.d/ethnet S200ethnet &&</userinput> </literallayout></blockquote> </sect1> |