Linux From Scratch: Version 20020515 | ||
---|---|---|
Prev | Chapter 6. Installation des logiciels de base du système | Next |
Estimation du temps de construction : 1 minute Estimation de l'espace disque requis : 23 KB |
Nous allons utiliser des scripts de démarrage de style SysV. Nous avons choisi ce style parce que c'est utlisé couramment et que nous les connaissons bien. Si vous souhaitez essayer autre chose, quelqu'un a écrit une astuce LFS pour des scripts de démarrage de style BSD sur http://hints.linuxfromscratch.org/hints/bsd-init.txt.
Si vous utilisez d'utiliser le style BSD, ou tout autre style de scripts, vous pouvez sauter le chapitre 7 lorsque vous y arriverez et passer directement au chapitre 8.
Installez LFS-Bootscripts en lançant les commandes suivantes:
cp -a rc.d sysconfig /etc && chown -R root.root /etc/rc.d /etc/sysconfig |
checkfs, cleanfs, functions, halt, loadkeys, localnet, mountfs, network, rc, reboot, sendsignals, setclock, swap, sysklogd et template
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 /var/run/*, /var/lock/*, it re-creates /var/run/utmp and removes the possible present /etc/nologin, /fastboot and /forcefsck files.
The functions script contains shared functions among different scripts such as error checking, status checking, etc.
The halt script halts the system.
The loadkeys script loads the proper keymap table that matches 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 network script setup network interfaces (such as network cards) and sets up the default gateway where applicable.
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.
The reboot scripts reboots the system.
The sendsignals script makes sure every process is terminated before the system reboots or halts.
The setclock scripts resets the kernel clock to localtime in case the hardware clock isn't set to GMT time.
The swap scripts enables and disables swap files and partitions.
The sysklogd script start 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.
bootscripts-1.9 nécessite que les programmes suivants soient installés:
fileutils: chown, cp