LFS-Bootscripts

For installation instructions see the Section called Installing LFS-Bootscripts-1.12 in Chapter 6.

Official Download Location

LFS-Bootscripts (1.12): 
http://downloads.linuxfromscratch.org/

Contents of LFS-bootscripts

(Last checked against version 1.12.)

The LFS-Bootscripts package contains SysV init style shell scripts. These scripts do various tasks such as check filesystem integrity during boot, load keymaps, set up networks and halt processes at shutdown.

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

Short descriptions

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

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

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

The halt script halts the system.

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

The loadkeys script loads the keymap table you specified as proper for your keyboard layout.

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

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

The mountproc script is used to mount the proc filesystem.

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

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

The reboot script reboots the system.

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

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

The swap script enables and disables swap files and partitions.

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

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.12.)

Coreutils: chown, cp