[3f8be484] | 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
|
---|
| 50 | sed -e 's@root@0@g' \
|
---|
| 51 | -e "s@/dev/initctl@${LFS}&@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
|
---|
| 60 | make -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
|
---|
| 67 | install -d ${LFS}/usr/bin
|
---|
| 68 | install -d ${LFS}/usr/include
|
---|
| 69 | install -d ${LFS}/usr/share/man/man{1,5,8}
|
---|
| 70 | install -d ${LFS}/etc
|
---|
| 71 | make -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 > ${LFS}/etc/inittab << "EOF"
|
---|
| 91 | <literal># Begin /etc/inittab
|
---|
| 92 |
|
---|
| 93 | id:3:initdefault:
|
---|
| 94 |
|
---|
| 95 | si::sysinit:/etc/rc.d/init.d/rc sysinit
|
---|
| 96 |
|
---|
| 97 | l0:0:wait:/etc/rc.d/init.d/rc 0
|
---|
| 98 | l1:S1:wait:/etc/rc.d/init.d/rc 1
|
---|
| 99 | l2:2:wait:/etc/rc.d/init.d/rc 2
|
---|
| 100 | l3:3:wait:/etc/rc.d/init.d/rc 3
|
---|
| 101 | l4:4:wait:/etc/rc.d/init.d/rc 4
|
---|
| 102 | l5:5:wait:/etc/rc.d/init.d/rc 5
|
---|
| 103 | l6:6:wait:/etc/rc.d/init.d/rc 6
|
---|
| 104 |
|
---|
| 105 | ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
|
---|
| 106 |
|
---|
| 107 | su:S016:once:/sbin/sulogin
|
---|
| 108 |
|
---|
| 109 | 1:2345:respawn:/sbin/agetty -I '\033(K' tty1 9600
|
---|
| 110 | 2:2345:respawn:/sbin/agetty -I '\033(K' tty2 9600
|
---|
| 111 | 3:2345:respawn:/sbin/agetty -I '\033(K' tty3 9600
|
---|
| 112 | 4:2345:respawn:/sbin/agetty -I '\033(K' tty4 9600
|
---|
| 113 | 5:2345:respawn:/sbin/agetty -I '\033(K' tty5 9600
|
---|
| 114 | 6:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600
|
---|
| 115 |
|
---|
| 116 | # End /etc/inittab</literal>
|
---|
| 117 | EOF</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>
|
---|