source: boot/common/sysvinit.xml@ da56a22

Last change on this file since da56a22 was c4b671e, checked in by Jim Gifford <clfs@…>, 19 years ago

r653@server (orig r651): manuel | 2005-11-08 11:36:13 -0800
Preparations to remove SBUs and DUs. Chapter boot.

  • Property mode set to 100644
File size: 3.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6 %general-entities;
7 %patches-entities;
8]>
9
10<sect1 id="ch-boot-sysvinit" role="wrap">
11 <?dbhtml filename="sysvinit.html"?>
12
13 <title>Sysvinit-&sysvinit-version;</title>
14
15 <indexterm zone="ch-boot-sysvinit">
16 <primary sortas="a-Sysvinit">Sysvinit</primary>
17 <secondary>boot</secondary>
18 </indexterm>
19
20 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
21 href="../../final-system/common/sysvinit.xml"
22 xpointer="xpointer(//*[@role='package'])"/>
23
24 <sect2 role="installation">
25 <title>Installation of Sysvinit</title>
26
27 <para os="aa">Now we do some modifications so we can boot into this
28 during our build:</para>
29
30<screen os="ab"><userinput>cp src/Makefile src/Makefile.orig
31sed -e 's@root@0@g' \
32 -e "s@/dev/initctl@${LFS}&amp;@g" \
33 -e 's@\(mknod \)-m \([0-9]* \)\(.* \)p@\1\3p; chmod \2\3@g' \
34 src/Makefile.orig > src/Makefile</userinput></screen>
35
36 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
37 href="../../final-system/common/sysvinit.xml"
38 xpointer="xpointer(//*[@os='c'])"/>
39
40<screen os="ac"><userinput>make -C src clobber
41make -C src CC="${CC}"</userinput></screen>
42
43 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
44 href="../../final-system/common/sysvinit.xml"
45 xpointer="xpointer(//*[@os='e'])"/>
46
47<screen os="ad"><userinput>install -d ${LFS}/bin
48install -d ${LFS}/usr/bin
49install -d ${LFS}/usr/include
50install -d ${LFS}/usr/share/man/man{1,5,8}
51install -d ${LFS}/etc
52make -C src install INSTALL="install" ROOT="${LFS}"</userinput></screen>
53
54 </sect2>
55
56 <sect2 id="conf-tools-sysvinit" role="configuration">
57 <title>Configuring Sysvinit</title>
58
59 <indexterm zone="conf-tools-sysvinit">
60 <primary sortas="a-Sysvinit">Sysvinit</primary>
61 <secondary>boot, configuring</secondary>
62 </indexterm>
63
64 <indexterm zone="conf-tools-sysvinit">
65 <primary sortas="e-${LFS}/etc/inittab">${LFS}/etc/inittab</primary>
66 </indexterm>
67
68 <para>Create a new file <filename>${LFS}/etc/inittab</filename> by
69 running the following:</para>
70
71<screen><userinput>cat &gt; ${LFS}/etc/inittab &lt;&lt; "EOF"
72<literal># Begin /etc/inittab
73
74id:3:initdefault:
75
76si::sysinit:/etc/rc.d/init.d/rc sysinit
77
78l0:0:wait:/etc/rc.d/init.d/rc 0
79l1:S1:wait:/etc/rc.d/init.d/rc 1
80l2:2:wait:/etc/rc.d/init.d/rc 2
81l3:3:wait:/etc/rc.d/init.d/rc 3
82l4:4:wait:/etc/rc.d/init.d/rc 4
83l5:5:wait:/etc/rc.d/init.d/rc 5
84l6:6:wait:/etc/rc.d/init.d/rc 6
85
86ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
87
88su:S016:once:/sbin/sulogin
89
901:2345:respawn:/sbin/agetty -I '\033(K' tty1 9600
912:2345:respawn:/sbin/agetty -I '\033(K' tty2 9600
923:2345:respawn:/sbin/agetty -I '\033(K' tty3 9600
934:2345:respawn:/sbin/agetty -I '\033(K' tty4 9600
945:2345:respawn:/sbin/agetty -I '\033(K' tty5 9600
956:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600
96
97# End /etc/inittab</literal>
98EOF</userinput></screen>
99
100 </sect2>
101
102 <sect2 role="content">
103 <title/>
104
105 <para>Details on this package are located in <xref
106 linkend="contents-sysvinit" role="."/></para>
107
108 </sect2>
109
110</sect1>
Note: See TracBrowser for help on using the repository browser.