source: BOOK/boot/common/sysvinit.xml@ 0b8e180

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 0b8e180 was 3f8be484, checked in by Jim Gifford <clfs@…>, 19 years ago

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

  • Property mode set to 100644
File size: 3.7 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 <sect2 role="package">
21 <title/>
22
23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
24 href="../../final-system/common/sysvinit.xml"
25 xpointer="xpointer(//*[@role='package']/para[1])"/>
26
27 <segmentedlist>
28 <segtitle>&buildtime;</segtitle>
29 <segtitle>&diskspace;</segtitle>
30
31 <seglistitem>
32 <seg>Not checked yet</seg>
33 <seg>Not checked yet</seg>
34 </seglistitem>
35 </segmentedlist>
36
37 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
38 href="../../final-system/common/sysvinit.xml"
39 xpointer="xpointer(//*[@role='package']/segmentedlist[2])"/>
40
41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of Sysvinit</title>
45
46 <para os="aa">Now we do some modifications so we can boot into this
47 during our build:</para>
48
49<screen os="ab"><userinput>cp src/Makefile src/Makefile.orig
50sed -e 's@root@0@g' \
51 -e "s@/dev/initctl@${LFS}&amp;@g" \
52 -e 's@\(mknod \)-m \([0-9]* \)\(.* \)p@\1\3p; chmod \2\3@g' \
53 src/Makefile.orig > src/Makefile</userinput></screen>
54
55 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
56 href="../../final-system/common/sysvinit.xml"
57 xpointer="xpointer(//*[@os='c'])"/>
58
59<screen os="ac"><userinput>make -C src clobber
60make -C src CC="${CC}"</userinput></screen>
61
62 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
63 href="../../final-system/common/sysvinit.xml"
64 xpointer="xpointer(//*[@os='e'])"/>
65
66<screen os="ad"><userinput>install -d ${LFS}/bin
67install -d ${LFS}/usr/bin
68install -d ${LFS}/usr/include
69install -d ${LFS}/usr/share/man/man{1,5,8}
70install -d ${LFS}/etc
71make -C src install INSTALL="install" ROOT="${LFS}"</userinput></screen>
72
73 </sect2>
74
75 <sect2 id="conf-tools-sysvinit" role="configuration">
76 <title>Configuring Sysvinit</title>
77
78 <indexterm zone="conf-tools-sysvinit">
79 <primary sortas="a-Sysvinit">Sysvinit</primary>
80 <secondary>boot, configuring</secondary>
81 </indexterm>
82
83 <indexterm zone="conf-tools-sysvinit">
84 <primary sortas="e-${LFS}/etc/inittab">${LFS}/etc/inittab</primary>
85 </indexterm>
86
87 <para>Create a new file <filename>${LFS}/etc/inittab</filename> by
88 running the following:</para>
89
90<screen><userinput>cat &gt; ${LFS}/etc/inittab &lt;&lt; "EOF"
91<literal># Begin /etc/inittab
92
93id:3:initdefault:
94
95si::sysinit:/etc/rc.d/init.d/rc sysinit
96
97l0:0:wait:/etc/rc.d/init.d/rc 0
98l1:S1:wait:/etc/rc.d/init.d/rc 1
99l2:2:wait:/etc/rc.d/init.d/rc 2
100l3:3:wait:/etc/rc.d/init.d/rc 3
101l4:4:wait:/etc/rc.d/init.d/rc 4
102l5:5:wait:/etc/rc.d/init.d/rc 5
103l6:6:wait:/etc/rc.d/init.d/rc 6
104
105ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
106
107su:S016:once:/sbin/sulogin
108
1091:2345:respawn:/sbin/agetty -I '\033(K' tty1 9600
1102:2345:respawn:/sbin/agetty -I '\033(K' tty2 9600
1113:2345:respawn:/sbin/agetty -I '\033(K' tty3 9600
1124:2345:respawn:/sbin/agetty -I '\033(K' tty4 9600
1135:2345:respawn:/sbin/agetty -I '\033(K' tty5 9600
1146:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600
115
116# End /etc/inittab</literal>
117EOF</userinput></screen>
118
119 </sect2>
120
121 <sect2 role="content">
122 <title/>
123
124 <para>Details on this package are located in <xref
125 linkend="contents-sysvinit" role="."/></para>
126
127 </sect2>
128
129</sect1>
Note: See TracBrowser for help on using the repository browser.