- Timestamp:
- 03/19/2001 02:30:14 PM (23 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v3_0, v3_1, v3_2, v3_3, v4_0, v4_1, v5_0, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 81a47c0
- Parents:
- 137bd50
- Location:
- chapter07
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/checkfs.xml
r137bd50 r53b5ccf 3 3 4 4 <para> 5 Create a new file <filename>/etc/init.d/checkfs</filename>containing5 A new file <filename>/etc/init.d/checkfs</filename> is created containing 6 6 the following: 7 7 </para> -
chapter07/createdirs.xml
r137bd50 r53b5ccf 4 4 <para> 5 5 We need to start by creating a few extra directories that are used by 6 the boot scripts. Create these directoriesby running:6 the boot scripts. These directories are created by running: 7 7 </para> 8 8 -
chapter07/fstab.xml
r137bd50 r53b5ccf 5 5 In order for certain programs to be able to determine where certain 6 6 partitions are supposed to be mounted by default, the /etc/fstab file is 7 used. Create a new file <filename>/etc/fstab</filename>containing the7 used. A new file <filename>/etc/fstab</filename> is created containing the 8 8 following: 9 9 </para> … … 24 24 25 25 <para> 26 Replace <LFS-partition designation>, <swap-partition 27 designation> and <fs-type> with the appropriate values 26 <LFS-partition designation>, <swap-partition 27 designation> and <fs-type> have to be replaced with the appropriate 28 values 28 29 (/dev/hda2, /dev/hda5 and reiserfs for example). 29 30 </para> -
chapter07/functions.xml
r137bd50 r53b5ccf 3 3 4 4 <para> 5 Create a new file <filename>/etc/init.d/functions</filename>containing5 A new file <filename>/etc/init.d/functions</filename> is created containing 6 6 the following: 7 7 </para> -
chapter07/halt.xml
r137bd50 r53b5ccf 3 3 4 4 <para> 5 Create a new file <filename>/etc/init.d/halt</filename>containing the5 A new file <filename>/etc/init.d/halt</filename> is created containing the 6 6 following: 7 7 </para> -
chapter07/loadkeys.xml
r137bd50 r53b5ccf 3 3 4 4 <para> 5 You only need to create this script if you don't have a default 101 keys 6 US keyboard layout. Create a new file 7 <filename>/etc/init.d/loadkeys</filename> containing the following: 5 A user only needs to create this script if he don't have a default 101 keys 6 US keyboard layout. A new file 7 <filename>/etc/init.d/loadkeys</filename> containing the following has to be 8 created: 8 9 </para> 9 10 -
chapter07/mountfs.xml
r137bd50 r53b5ccf 3 3 4 4 <para> 5 Create a new file <filename>/etc/init.d/mountfs</filename>containing5 A new file <filename>/etc/init.d/mountfs</filename> is created containing 6 6 the following: 7 7 </para> -
chapter07/rc.xml
r137bd50 r53b5ccf 4 4 <para> 5 5 The first main bootscript is the <filename>/etc/init.d/rc</filename> script. 6 Create a new file <filename>/etc/init.d/rc</filename>containing the6 A new file <filename>/etc/init.d/rc</filename> is created containing the 7 7 following: </para> 8 8 -
chapter07/setclock.xml
r137bd50 r53b5ccf 3 3 4 4 <para> 5 The following script is only for real use when yourhardware clock (also5 The following script is only for real use when the hardware clock (also 6 6 known as BIOS or CMOS clock) isn't set to GMT time. The recommended 7 setup is setting your hardware clock to GMT and havethe time converted8 to localtime using the /etc/localtime symbolic link. But if you runan9 OS that doesn't understand a clock set to GMT (most notable are10 Microsoft OS'es) you might want to set yourclock to localtime so that7 setup is setting the hardware clock to GMT and having the time converted 8 to localtime using the /etc/localtime symbolic link. But if an 9 OS is run that doesn't understand a clock set to GMT (most notable are 10 Microsoft OS'es) a user might want to set the clock to localtime so that 11 11 the time is properly displayed on those OS'es. This script will reset 12 12 the kernel time to the hardware clock without converting the time using … … 15 15 16 16 <para> 17 If you want to use this script on your system even if you have your 18 hardware clock set to GMT, then change the UTC variable below to the 17 If a user wants to use this script on the system even if the 18 hardware clock is set to GMT, then the UTC variable below has to be changed 19 to the 19 20 value of <emphasis>1</emphasis>. 20 21 </para> … … 83 84 84 85 <para> 85 If your hardware clock (also known as BIOS or CMOS clock) is not set to 86 GMT time, than set the UTC variable in the /etc/sysconfig/clock file to 86 If the hardware clock (also known as BIOS or CMOS clock) is not set to 87 GMT time, then the UTC variable in the /etc/sysconfig/clock file needs to be 88 set to 87 89 the value <emphasis>0</emphasis> (zero). 88 90 </para> -
chapter07/symperm.xml
r137bd50 r53b5ccf 3 3 4 4 <para> 5 Give these files the proper permissions and create the necessary symlinks 6 by running the following commands. If youdid not create the loadkeys7 and setclock scripts, make sure you don'ttype them in the commands5 These files get the proper permissions and the necessary symlinks are created 6 by running the following commands. If a user did not create the loadkeys 7 and setclock scripts, he has to make sure not to type them in the commands 8 8 below. 9 9 </para> -
chapter07/sysklogd.xml
r137bd50 r53b5ccf 3 3 4 4 <para> 5 Create a new file <filename>/etc/init.d/sysklogd</filename>containing5 A new file <filename>/etc/init.d/sysklogd</filename> is created containing 6 6 the following: 7 7 </para> -
chapter07/template.xml
r137bd50 r53b5ccf 3 3 4 4 <para> 5 Create a new file <filename>/etc/init.d/template</filename>containing5 A new file <filename>/etc/init.d/template</filename> is created containing 6 6 the following: 7 7 </para> -
chapter07/usage.xml
r137bd50 r53b5ccf 5 5 Linux uses a special booting facility named SysVinit. It's based on a 6 6 concept of <emphasis>runlevels</emphasis>. It can be widely different 7 from one system to another, so don't assumethat because things7 from one system to another, so it can not be assumed that because things 8 8 worked in <insert distro name> they should work like that in LFS 9 9 too. LFS has it's own way of doing things, but it respects generally … … 15 15 using a runlevels scheme. There are 7 (from 0 to 6) runlevels 16 16 (actually, there are more runlevels but they are for special cases and 17 generally not used. Read the init man page forthose details), and each18 one of those corresponds to the things you want your computerto do when17 generally not used. The init man page describes those details), and each 18 one of those corresponds to the things the computer is supposed to do when 19 19 it starts up. The default runlevel is 3. Here are the descriptions of the 20 20 different runlevels as they are often implemented: … … 34 34 The command used to change runlevels is <userinput>init 35 35 <runlevel></userinput> where <runlevel> is 36 the target runlevel. For example, to reboot the computer, you'd issue36 the target runlevel. For example, to reboot the computer, a user would issue 37 37 the init 6 command. The reboot command is just an alias, as is the halt 38 38 command an alias to init 0. … … 47 47 <para> 48 48 There are a number of directories under /etc that look like like rc?.d 49 where ? is the number of the runlevel and rcS.d. Take a look at one of 50 them (after you finish this chapter that is, right now there's nothing 49 where ? is the number of the runlevel and rcS.d. A user might take a look 50 at one of 51 them (after this chapter is finished, right now there's nothing 51 52 there yet). There are a number of symbolic links. Some begin with an K, 52 53 the others begin with an S, and all of them have three numbers following … … 88 89 <listitem><para> 89 90 <emphasis>reload</emphasis>: The configuration of the service is updated. 90 Use this after you have modified the configuration file of a service, when91 you don't need/want to restart the service.91 This is used after the configuration file of a service was modified, when 92 the service doesn't need to be restarted. 92 93 </para></listitem> 93 94 94 95 <listitem><para> 95 <emphasis>status</emphasis>: Tells youif the service is running and with96 <emphasis>status</emphasis>: Tells if the service is running and with 96 97 which PID's. 97 98 </para></listitem> … … 100 101 101 102 <para> 102 Feel free to modify the way the boot process works (after all it's your103 LFS system, not ours). The files here are just an example of how you104 can do it in a nice way (well what we consider nice anyway. You may 105 hate it).103 Feel free to modify the way the boot process works (after all it's the users 104 LFS system, not ours). The files here are just an example of how it can be 105 done 106 in a nice way (well what we consider nice anyway. A user may hate it). 106 107 </para> 107 108
Note:
See TracChangeset
for help on using the changeset viewer.