| 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
 | 
|---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
 | 
|---|
| 3 |   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 | 
|---|
| 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 | 
 | 
|---|
| 18 |   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
 | 
|---|
| 19 |   href="../../final-system/common/sysvinit.xml"
 | 
|---|
| 20 |   xpointer="xpointer(//*[@role='package'])"/>
 | 
|---|
| 21 | 
 | 
|---|
| 22 |   <sect2 role="installation">
 | 
|---|
| 23 |     <title>Installation of Sysvinit</title>
 | 
|---|
| 24 | 
 | 
|---|
| 25 |     <para os="aa">The following modifications help locate files specific to this
 | 
|---|
| 26 |     perticular build:</para>
 | 
|---|
| 27 | 
 | 
|---|
| 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>
 | 
|---|
| 31 | 
 | 
|---|
| 32 |     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
 | 
|---|
| 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 | 
 | 
|---|
| 39 |     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
 | 
|---|
| 40 |     href="../../final-system/common/sysvinit.xml"
 | 
|---|
| 41 |     xpointer="xpointer(//*[@os='e'])"/>
 | 
|---|
| 42 | 
 | 
|---|
| 43 | <screen os="ad"><userinput>make -C src ROOT=${CLFS} install</userinput></screen>
 | 
|---|
| 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">
 | 
|---|
| 56 |       <primary sortas="e-/etc/inittab">/etc/inittab</primary>
 | 
|---|
| 57 |     </indexterm>
 | 
|---|
| 58 | 
 | 
|---|
| 59 |     <para>Create a new file <filename>${CLFS}/etc/inittab</filename> by running the
 | 
|---|
| 60 |     following:</para>
 | 
|---|
| 61 | 
 | 
|---|
| 62 | <screen><userinput>cat > ${CLFS}/etc/inittab << "EOF"
 | 
|---|
| 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
 | 
|---|
| 80 | </literal>
 | 
|---|
| 81 | EOF</userinput></screen>
 | 
|---|
| 82 | 
 | 
|---|
| 83 |     <para>The following command adds the standard virtual terminals to
 | 
|---|
| 84 |     <filename>${CLFS}/etc/inittab</filename>. If your system only has a serial
 | 
|---|
| 85 |     console skip the following command:</para>
 | 
|---|
| 86 | 
 | 
|---|
| 87 | <screen><userinput>cat >> ${CLFS}/etc/inittab << "EOF"
 | 
|---|
| 88 | <literal>1:2345:respawn:/sbin/agetty -I '\033(K' tty1 9600
 | 
|---|
| 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
 | 
|---|
| 94 | </literal>
 | 
|---|
| 95 | EOF</userinput></screen>
 | 
|---|
| 96 | 
 | 
|---|
| 97 |     <para>If your system has a serial console, run the following command to add
 | 
|---|
| 98 |     the entry to <filename>${CLFS}/etc/inittab</filename>.</para>
 | 
|---|
| 99 | 
 | 
|---|
| 100 | <screen><userinput>cat >> ${CLFS}/etc/inittab << "EOF"
 | 
|---|
| 101 | <literal>c0:12345:respawn:/sbin/agetty 115200 ttyS0 vt100
 | 
|---|
| 102 | </literal>
 | 
|---|
| 103 | EOF</userinput></screen>
 | 
|---|
| 104 | 
 | 
|---|
| 105 |    <para>Finally, add the end line to <filename>${CLFS}/etc/inittab</filename>.</para>
 | 
|---|
| 106 | 
 | 
|---|
| 107 | <screen><userinput>cat >> ${CLFS}/etc/inittab << "EOF"
 | 
|---|
| 108 | <literal># End /etc/inittab</literal>
 | 
|---|
| 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>
 | 
|---|