[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
|
---|
[6243b1f] | 26 | particular build:</para>
|
---|
[3f8be484] | 27 |
|
---|
[3b0c31e] | 28 | <screen os="ab"><userinput>cp -v src/Makefile{,.orig}
|
---|
| 29 | sed -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
|
---|
| 37 | make -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 > ${CLFS}/etc/inittab << "EOF"
|
---|
[3f8be484] | 63 | <literal># Begin /etc/inittab
|
---|
| 64 |
|
---|
| 65 | id:3:initdefault:
|
---|
| 66 |
|
---|
| 67 | si::sysinit:/etc/rc.d/init.d/rc sysinit
|
---|
| 68 |
|
---|
| 69 | l0:0:wait:/etc/rc.d/init.d/rc 0
|
---|
| 70 | l1:S1:wait:/etc/rc.d/init.d/rc 1
|
---|
| 71 | l2:2:wait:/etc/rc.d/init.d/rc 2
|
---|
| 72 | l3:3:wait:/etc/rc.d/init.d/rc 3
|
---|
| 73 | l4:4:wait:/etc/rc.d/init.d/rc 4
|
---|
| 74 | l5:5:wait:/etc/rc.d/init.d/rc 5
|
---|
| 75 | l6:6:wait:/etc/rc.d/init.d/rc 6
|
---|
| 76 |
|
---|
| 77 | ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
|
---|
| 78 |
|
---|
| 79 | su:S016:once:/sbin/sulogin
|
---|
[1da2a84] | 80 | </literal>
|
---|
| 81 | EOF</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 >> ${CLFS}/etc/inittab << "EOF"
|
---|
[1da2a84] | 88 | <literal>1:2345:respawn:/sbin/agetty -I '\033(K' tty1 9600
|
---|
[3f8be484] | 89 | 2:2345:respawn:/sbin/agetty -I '\033(K' tty2 9600
|
---|
| 90 | 3:2345:respawn:/sbin/agetty -I '\033(K' tty3 9600
|
---|
| 91 | 4:2345:respawn:/sbin/agetty -I '\033(K' tty4 9600
|
---|
| 92 | 5:2345:respawn:/sbin/agetty -I '\033(K' tty5 9600
|
---|
| 93 | 6:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600
|
---|
[1da2a84] | 94 | </literal>
|
---|
| 95 | EOF</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 >> ${CLFS}/etc/inittab << "EOF"
|
---|
[1da2a84] | 101 | <literal>c0:12345:respawn:/sbin/agetty 115200 ttyS0 vt100
|
---|
| 102 | </literal>
|
---|
| 103 | EOF</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 >> ${CLFS}/etc/inittab << "EOF"
|
---|
[1da2a84] | 108 | <literal># End /etc/inittab</literal>
|
---|
[3f8be484] | 109 | EOF</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>
|
---|