source: BOOK/boot/common/sysvinit.xml@ 6af2662

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 6af2662 was dabbced, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Change the XInclude schema path from 2003 to 2001. 2003 is depreciated
according to w3.org and 2001 should be used instead.

  • Property mode set to 100644
File size: 3.7 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-boot-sysvinit" role="wrap">
9 <?dbhtml filename="sysvinit.html"?>
10
11 <title>Sysvinit-&sysvinit-version;</title>
12
13 <indexterm zone="ch-boot-sysvinit">
14 <primary sortas="a-Sysvinit">Sysvinit</primary>
15 <secondary>boot</secondary>
16 </indexterm>
17
[dabbced]18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[93adf44a]19 href="../../final-system/common/sysvinit.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
[3f8be484]21
22 <sect2 role="installation">
23 <title>Installation of Sysvinit</title>
24
[3b0c31e]25 <para os="aa">The following modifications help locate files specific to this
26 perticular build:</para>
[3f8be484]27
[3b0c31e]28<screen os="ab"><userinput>cp -v src/Makefile{,.orig}
29sed -e 's,/usr/lib,/tools/lib,g' \
30 src/Makefile.orig > src/Makefile</userinput></screen>
[3f8be484]31
[dabbced]32 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3f8be484]33 href="../../final-system/common/sysvinit.xml"
34 xpointer="xpointer(//*[@os='c'])"/>
35
36<screen os="ac"><userinput>make -C src clobber
37make -C src CC="${CC}"</userinput></screen>
38
[dabbced]39 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3f8be484]40 href="../../final-system/common/sysvinit.xml"
41 xpointer="xpointer(//*[@os='e'])"/>
42
[3b0c31e]43<screen os="ad"><userinput>make -C src ROOT=${CLFS} install</userinput></screen>
[3f8be484]44
45 </sect2>
46
47 <sect2 id="conf-tools-sysvinit" role="configuration">
48 <title>Configuring Sysvinit</title>
49
50 <indexterm zone="conf-tools-sysvinit">
51 <primary sortas="a-Sysvinit">Sysvinit</primary>
52 <secondary>boot, configuring</secondary>
53 </indexterm>
54
55 <indexterm zone="conf-tools-sysvinit">
[91ad4a4]56 <primary sortas="e-/etc/inittab">/etc/inittab</primary>
[3f8be484]57 </indexterm>
58
[4605ed4]59 <para>Create a new file <filename>${CLFS}/etc/inittab</filename> by running the
[1da2a84]60 following:</para>
[3f8be484]61
[4605ed4]62<screen><userinput>cat &gt; ${CLFS}/etc/inittab &lt;&lt; "EOF"
[3f8be484]63<literal># Begin /etc/inittab
64
65id:3:initdefault:
66
67si::sysinit:/etc/rc.d/init.d/rc sysinit
68
69l0:0:wait:/etc/rc.d/init.d/rc 0
70l1:S1:wait:/etc/rc.d/init.d/rc 1
71l2:2:wait:/etc/rc.d/init.d/rc 2
72l3:3:wait:/etc/rc.d/init.d/rc 3
73l4:4:wait:/etc/rc.d/init.d/rc 4
74l5:5:wait:/etc/rc.d/init.d/rc 5
75l6:6:wait:/etc/rc.d/init.d/rc 6
76
77ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
78
79su:S016:once:/sbin/sulogin
[1da2a84]80</literal>
81EOF</userinput></screen>
82
83 <para>The following command adds the standard virtual terminals to
[4605ed4]84 <filename>${CLFS}/etc/inittab</filename>. If your system only has a serial
[1da2a84]85 console skip the following command:</para>
[3f8be484]86
[4605ed4]87<screen><userinput>cat &gt;&gt; ${CLFS}/etc/inittab &lt;&lt; "EOF"
[1da2a84]88<literal>1:2345:respawn:/sbin/agetty -I '\033(K' tty1 9600
[3f8be484]892:2345:respawn:/sbin/agetty -I '\033(K' tty2 9600
903:2345:respawn:/sbin/agetty -I '\033(K' tty3 9600
914:2345:respawn:/sbin/agetty -I '\033(K' tty4 9600
925:2345:respawn:/sbin/agetty -I '\033(K' tty5 9600
936:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600
[1da2a84]94</literal>
95EOF</userinput></screen>
96
[d1ff581]97 <para>If your system has a serial console, run the following command to add
[4605ed4]98 the entry to <filename>${CLFS}/etc/inittab</filename>.</para>
[1da2a84]99
[4605ed4]100<screen><userinput>cat &gt;&gt; ${CLFS}/etc/inittab &lt;&lt; "EOF"
[1da2a84]101<literal>c0:12345:respawn:/sbin/agetty 115200 ttyS0 vt100
102</literal>
103EOF</userinput></screen>
104
[d1ff581]105 <para>Finally, add the end line to <filename>${CLFS}/etc/inittab</filename>.</para>
[3f8be484]106
[4605ed4]107<screen><userinput>cat &gt;&gt; ${CLFS}/etc/inittab &lt;&lt; "EOF"
[1da2a84]108<literal># End /etc/inittab</literal>
[3f8be484]109EOF</userinput></screen>
110
111 </sect2>
112
113 <sect2 role="content">
114 <title/>
115
116 <para>Details on this package are located in <xref
117 linkend="contents-sysvinit" role="."/></para>
118
119 </sect2>
120
121</sect1>
Note: See TracBrowser for help on using the repository browser.