From e0f737f612aae131abd4c0006b8cbc74a8f4861b Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Fri, 29 Jun 2001 23:30:11 +0000 Subject: Merged chapter 9 with chapters6 and 7 git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@741 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter07/bootscripts.xml | 14 +++++++------- chapter07/chapter07.xml | 4 ++++ chapter07/ethnet-symperm.xml | 35 ----------------------------------- chapter07/ethnet.xml | 4 +--- chapter07/finalreboot.xml | 30 ------------------------------ chapter07/hosts.xml | 2 +- chapter07/introduction.xml | 20 ++++++++++++++------ chapter07/localnet-symperm.xml | 17 ----------------- chapter07/localnet.xml | 4 +--- chapter07/network.xml | 2 +- chapter07/symperm.xml | 15 +++++++++------ 11 files changed, 38 insertions(+), 109 deletions(-) delete mode 100644 chapter07/ethnet-symperm.xml delete mode 100644 chapter07/finalreboot.xml delete mode 100644 chapter07/localnet-symperm.xml (limited to 'chapter07') 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 @@ - + Creating network boot scripts -&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; 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; 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 @@ - -Setting up permissions and symlink - - -The proper file permissions and the necessary symlinks are set or created by -running the following commands: - - -
- cd /etc/init.d && - chmod 754 ethnet && - cd ../rc0.d && - ln -s ../init.d/ethnet K800ethnet && - - cd ../rc1.d && - ln -s ../init.d/ethnet K800ethnet && - - cd ../rc2.d && - ln -s ../init.d/ethnet K800ethnet && - - cd ../rc3.d && - ln -s ../init.d/ethnet S200ethnet && - - cd ../rc4.d && - ln -s ../init.d/ethnet S200ethnet && - - cd ../rc5.d && - ln -s ../init.d/ethnet S200ethnet && - - cd ../rc6.d && - ln -s ../init.d/ethnet K800ethnet -
- -
- 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 @@ - + Creating the /etc/init.d/ethnet script @@ -186,7 +186,5 @@ ignored by the ethnet script and thus not brought up. -&c9-ethnet-symperm; - 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 @@ - -Final reboot - - -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. - - - -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: - - -
- /sbin/lilo -
- - -Now, let's reboot: - - -
- /sbin/reboot -
- -
- 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 @@ - + Creating the /etc/hosts file 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 @@ - + Introduction -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. + + + +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 BSD style init +scripts. 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 @@ - -Setting up permissions and symlink - - -The proper file permissions and the necessary symlink are set or created by -running the following commands: - - -
- cd /etc/init.d && - chmod 754 localnet && - cd ../rcS.d && - ln -s ../init.d/localnet S100localnet -
- -
- 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 @@ - + Creating the /etc/init.d/localnet boot script @@ -51,7 +51,5 @@ esac EOF -&c9-localnet-symperm; - 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 @@ - + Creating the /etc/sysconfig/network file 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. - -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. - -
cd /etc/init.d && chmod 754 rc rcS functions checkfs halt loadkeys mountfs reboot && chmod 754 sendsignals setclock sysklogd template && + chmod 754 localnet ethnet && cd ../rc0.d && + ln -s ../init.d/ethnet K800ethnet && ln -s ../init.d/sysklogd K900sysklogd && ln -s ../init.d/sendsignals S800sendsignals && ln -s ../init.d/mountfs S900mountfs && ln -s ../init.d/halt S999halt && cd ../rc6.d && + ln -s ../init.d/ethnet K800ethnet && ln -s ../init.d/sysklogd K900sysklogd && ln -s ../init.d/sendsignals S800sendsignals && ln -s ../init.d/mountfs S900mountfs && ln -s ../init.d/reboot S999reboot && cd ../rcS.d && + ln -s ../init.d/localnet S100localnet && ln -s ../init.d/checkfs S200checkfs && ln -s ../init.d/mountfs S300mountfs && ln -s ../init.d/setclock S400setclock && ln -s ../init.d/loadkeys S500loadkeys && cd ../rc1.d && + ln -s ../init.d/ethnet K800ethnet && ln -s ../init.d/sysklogd K900sysklogd && cd ../rc2.d && ln -s ../init.d/sysklogd S100sysklogd && + ln -s ../init.d/ethnet K800ethnet && cd ../rc3.d && ln -s ../init.d/sysklogd S100sysklogd && + ln -s ../init.d/ethnet S200ethnet && cd ../rc4.d && ln -s ../init.d/sysklogd S100sysklogd && + ln -s ../init.d/ethnet S200ethnet && cd ../rc5.d && ln -s ../init.d/sysklogd S100sysklogd + ln -s ../init.d/ethnet S200ethnet &&
-- cgit v1.2.3-54-g00ecf