Installing LFS-Bootscripts-1.10

Estimated build time:           0.01 SBU
Estimated required disk space:  420 KB

Installation of LFS-Bootscripts

We will be using SysV style init scripts. We have chosen this style because it is widely used and we feel comfortable with it. If you would prefer to try something else, Marc Heerdink has written a hint about BSD style init scripts, which may be found at http://hints.linuxfromscratch.org/hints/bsd-init.txt.

If you decide to use BSD style, or some other style scripts, you can skip Chapter 7 when you arrive at it and move on to Chapter 8.

Install LFS-Bootscripts by running the following command:

cp -a rc.d sysconfig /etc &&
chown -R root:root /etc/rc.d /etc/sysconfig

Contents of LFS-bootscripts

Last checked against version 1.10.

Scripts

checkfs, cleanfs, functions, halt, ifdown, ifup, loadkeys, localnet, mountfs, mountproc, network, rc, reboot, sendsignals, setclock, swap, sysklogd and template

Descriptions

checkfs

The checkfs script checks the file systems just before they are mounted (with the exception of journal and network based file systems).

cleanfs

The cleanfs script removes files that shouldn't be preserved between reboots, such as /var/run/*, /var/lock/*, it re-creates /var/run/utmp and removes the possible present /etc/nologin, /fastboot and /forcefsck files.

functions

The functions script contains shared functions among different scripts such as error checking, status checking, etc.

halt

The halt script halts the system.

ifdown, ifup

The ifdown and ifup scripts assist the network script with network devices.

loadkeys

The loadkeys script loads the proper keymap table that matches your keyboard layout.

localnet

The localnet script sets up the system's hostname and local loopback device.

mountfs

The mountfs script mounts all file systems that aren't marked noauto or aren't network based.

mountproc

The mountproc script is used to mount the proc filesystem.

network

The network script sets up network interfaces (such as network cards) and sets up the default gateway where applicable.

rc

The rc script is the master runlevel control script which is responsible for running all the other scripts one-by-one in a specific sequence.

reboot

The reboot scripts reboots the system.

sendsignals

The sendsignals script makes sure every process is terminated before the system reboots or halts.

setclock

The setclock scripts resets the kernel clock to localtime in case the hardware clock isn't set to GMT time.

swap

The swap scripts enables and disables swap files and partitions.

sysklogd

The sysklogd script start and stops the system and kernel log daemons.

template

The template script is a template you can use to create your own bootscripts for your other daemons.

LFS-Bootscripts Installation Dependencies

Last checked against version 1.10.

Fileutils: chown, cp