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