| [bf8c11f] | 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 | %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 |  | 
|---|
| [c4b671e] | 18 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 19 | href="../../final-system/common/sysvinit.xml" | 
|---|
|  | 20 | xpointer="xpointer(//*[@role='package'])"/> | 
|---|
| [bf8c11f] | 21 |  | 
|---|
|  | 22 | <sect2 role="installation"> | 
|---|
|  | 23 | <title>Installation of Sysvinit</title> | 
|---|
|  | 24 |  | 
|---|
|  | 25 | <para os="aa">Now we do some modifications so we can boot into this | 
|---|
|  | 26 | during our build:</para> | 
|---|
|  | 27 |  | 
|---|
|  | 28 | <screen os="ab"><userinput>cp src/Makefile src/Makefile.orig | 
|---|
|  | 29 | sed -e 's@root@0@g' \ | 
|---|
|  | 30 | -e "s@/dev/initctl@${LFS}&@g" \ | 
|---|
|  | 31 | -e 's@\(mknod \)-m \([0-9]* \)\(.* \)p@\1\3p; chmod \2\3@g' \ | 
|---|
|  | 32 | src/Makefile.orig > src/Makefile</userinput></screen> | 
|---|
|  | 33 |  | 
|---|
|  | 34 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 35 | href="../../final-system/common/sysvinit.xml" | 
|---|
|  | 36 | xpointer="xpointer(//*[@os='c'])"/> | 
|---|
|  | 37 |  | 
|---|
|  | 38 | <screen os="ac"><userinput>make -C src clobber | 
|---|
|  | 39 | make -C src CC="${CC}"</userinput></screen> | 
|---|
|  | 40 |  | 
|---|
|  | 41 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 42 | href="../../final-system/common/sysvinit.xml" | 
|---|
|  | 43 | xpointer="xpointer(//*[@os='e'])"/> | 
|---|
|  | 44 |  | 
|---|
|  | 45 | <screen os="ad"><userinput>install -d ${LFS}/bin | 
|---|
|  | 46 | install -d ${LFS}/usr/bin | 
|---|
|  | 47 | install -d ${LFS}/usr/include | 
|---|
|  | 48 | install -d ${LFS}/usr/share/man/man{1,5,8} | 
|---|
|  | 49 | install -d ${LFS}/etc | 
|---|
|  | 50 | make -C src install INSTALL="install" ROOT="${LFS}"</userinput></screen> | 
|---|
|  | 51 |  | 
|---|
|  | 52 | </sect2> | 
|---|
|  | 53 |  | 
|---|
|  | 54 | <sect2 id="conf-tools-sysvinit" role="configuration"> | 
|---|
|  | 55 | <title>Configuring Sysvinit</title> | 
|---|
|  | 56 |  | 
|---|
|  | 57 | <indexterm zone="conf-tools-sysvinit"> | 
|---|
|  | 58 | <primary sortas="a-Sysvinit">Sysvinit</primary> | 
|---|
|  | 59 | <secondary>boot, configuring</secondary> | 
|---|
|  | 60 | </indexterm> | 
|---|
|  | 61 |  | 
|---|
|  | 62 | <indexterm zone="conf-tools-sysvinit"> | 
|---|
|  | 63 | <primary sortas="e-${LFS}/etc/inittab">${LFS}/etc/inittab</primary> | 
|---|
|  | 64 | </indexterm> | 
|---|
|  | 65 |  | 
|---|
| [40c1b5b] | 66 | <para os="ae">Create a new file <filename>${LFS}/etc/inittab</filename> by | 
|---|
| [bf8c11f] | 67 | running the following:</para> | 
|---|
|  | 68 |  | 
|---|
| [40c1b5b] | 69 | <screen os="af"><userinput>cat > ${LFS}/etc/inittab << "EOF" | 
|---|
| [bf8c11f] | 70 | <literal># Begin /etc/inittab | 
|---|
|  | 71 |  | 
|---|
|  | 72 | id:3:initdefault: | 
|---|
|  | 73 |  | 
|---|
|  | 74 | si::sysinit:/etc/rc.d/init.d/rc sysinit | 
|---|
|  | 75 |  | 
|---|
|  | 76 | l0:0:wait:/etc/rc.d/init.d/rc 0 | 
|---|
|  | 77 | l1:S1:wait:/etc/rc.d/init.d/rc 1 | 
|---|
|  | 78 | l2:2:wait:/etc/rc.d/init.d/rc 2 | 
|---|
|  | 79 | l3:3:wait:/etc/rc.d/init.d/rc 3 | 
|---|
|  | 80 | l4:4:wait:/etc/rc.d/init.d/rc 4 | 
|---|
|  | 81 | l5:5:wait:/etc/rc.d/init.d/rc 5 | 
|---|
|  | 82 | l6:6:wait:/etc/rc.d/init.d/rc 6 | 
|---|
|  | 83 |  | 
|---|
|  | 84 | ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now | 
|---|
|  | 85 |  | 
|---|
|  | 86 | su:S016:once:/sbin/sulogin | 
|---|
|  | 87 |  | 
|---|
|  | 88 | 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 |  | 
|---|
|  | 95 | # End /etc/inittab</literal> | 
|---|
|  | 96 | EOF</userinput></screen> | 
|---|
|  | 97 |  | 
|---|
|  | 98 | </sect2> | 
|---|
|  | 99 |  | 
|---|
|  | 100 | <sect2 role="content"> | 
|---|
|  | 101 | <title/> | 
|---|
|  | 102 |  | 
|---|
|  | 103 | <para>Details on this package are located in <xref | 
|---|
|  | 104 | linkend="contents-sysvinit" role="."/></para> | 
|---|
|  | 105 |  | 
|---|
|  | 106 | </sect2> | 
|---|
|  | 107 |  | 
|---|
|  | 108 | </sect1> | 
|---|