r5352 - in branches/cross-lfs/BOOK/reboot: . multilib

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Fri May 13 12:53:20 PDT 2005


Author: jhuntwork
Date: 2005-05-13 13:53:20 -0600 (Fri, 13 May 2005)
New Revision: 5352

Added:
   branches/cross-lfs/BOOK/reboot/multilib/sysvinit.xml
Modified:
   branches/cross-lfs/BOOK/reboot/multilib/e2fsprogs.xml
   branches/cross-lfs/BOOK/reboot/sparc64-chapter.xml
Log:
Fixed e2fsprogs instructions and added sysvinit to multilib in reboot

Modified: branches/cross-lfs/BOOK/reboot/multilib/e2fsprogs.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/multilib/e2fsprogs.xml	2005-05-13 19:19:50 UTC (rev 5351)
+++ branches/cross-lfs/BOOK/reboot/multilib/e2fsprogs.xml	2005-05-13 19:53:20 UTC (rev 5352)
@@ -92,7 +92,8 @@
 
 <para>Create needed symlinks for a bootable system:</para>
 
-<screen><userinput>cd ${LFS}/sbin
+<screen><userinput>install -d ${LFS}/sbin
+cd ${LFS}/sbin
 ln -sf ../tools/sbin/fsck.ext2 .
 ln -sf ../tools/sbin/fsck.ext3 .
 ln -sf ../tools/sbin/e2fsck .</userinput></screen>

Copied: branches/cross-lfs/BOOK/reboot/multilib/sysvinit.xml (from rev 5349, branches/cross-lfs/BOOK/reboot/common/sysvinit.xml)
===================================================================
--- branches/cross-lfs/BOOK/reboot/common/sysvinit.xml	2005-05-13 19:08:47 UTC (rev 5349)
+++ branches/cross-lfs/BOOK/reboot/multilib/sysvinit.xml	2005-05-13 19:53:20 UTC (rev 5352)
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../../patches.ent">
+  %general-entities;
+  %patches-entities;
+]>
+
+<sect1 id="ch-reboot-sysvinit" role="wrap">
+<title>Sysvinit-&sysvinit-version;</title>
+<?dbhtml filename="sysvinit.html"?>
+
+<indexterm zone="ch-reboot-sysvinit"><primary sortas="a-Sysvinit">Sysvinit</primary>
+<secondary>reboot</secondary></indexterm>
+
+<sect2 role="package"><title/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../final-system/common/sysvinit.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
+
+<segmentedlist>
+<segtitle>&buildtime;</segtitle>
+<segtitle>&diskspace;</segtitle>
+<seglistitem><seg>0.2 SBU</seg><seg>5.2 MB</seg></seglistitem>
+</segmentedlist>
+
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../final-system/common/sysvinit.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
+
+</sect2>
+
+<sect2 role="installation">
+
+<title>Installation of Sysvinit</title>
+
+<para>When run-levels are changed (for example, when halting the
+system), <command>init</command> sends termination signals to those
+processes that <command>init</command> itself started and that should
+not be running in the new run-level.  While doing this,
+<command>init</command> outputs messages like <quote>Sending processes
+the TERM signal</quote> which seem to imply that it is sending these
+signals to all currently running processes. To avoid this
+misinterpretation, modify the source so that these messages read like
+<quote>Sending processes started by init the TERM signal</quote>
+instead:</para>
+
+<screen><userinput>sed -i 's at Sending processes@& started by init at g' \
+    src/init.c</userinput></screen>
+
+<para>Now we do some modifications so we can boot into this during our
+build:</para>
+
+<screen><userinput>cp src/Makefile src/Makefile.orig
+sed -e 's at root@0 at g' \
+    -e "s@/dev/initctl@${LFS}&@g" \
+    -e 's@\(mknod \)-m \([0-9]* \)\(.* \)p@\1\3p; chmod \2\3 at g' \
+    src/Makefile.orig > src/Makefile</userinput></screen>
+
+<para>Compile the package:</para>
+
+<screen><userinput>make -C src clobber
+make -C src CC="${CC} ${BUILD64}" LDFLAGS="-s"</userinput></screen>
+
+<para>Install the package:</para>
+
+<screen><userinput>install -d ${LFS}/bin
+install -d ${LFS}/usr/bin
+install -d ${LFS}/usr/include
+install -d ${LFS}/usr/share/man/man{1,5,8}
+install -d ${LFS}/etc
+make -C src install INSTALL="install" ROOT="${LFS}"</userinput></screen>
+
+</sect2>
+
+<sect2 id="conf-tools-sysvinit" role="configuration"><title>Configuring Sysvinit</title>
+<indexterm zone="conf-tools-sysvinit">
+<primary sortas="a-Sysvinit">Sysvinit</primary>
+<secondary>reboot, configuring</secondary></indexterm>
+
+<indexterm zone="conf-tools-sysvinit"><primary sortas="e-${LFS}/etc/inittab">${LFS}/etc/inittab</primary></indexterm>
+
+<para>Create a new file <filename>${LFS}/etc/inittab</filename> by running the
+following:</para>
+
+<screen><userinput>cat > ${LFS}/etc/inittab << "EOF"
+<literal># Begin /etc/inittab
+
+id:3:initdefault:
+
+si::sysinit:/etc/rc.d/init.d/rc sysinit
+
+l0:0:wait:/etc/rc.d/init.d/rc 0
+l1:S1:wait:/etc/rc.d/init.d/rc 1
+l2:2:wait:/etc/rc.d/init.d/rc 2
+l3:3:wait:/etc/rc.d/init.d/rc 3
+l4:4:wait:/etc/rc.d/init.d/rc 4
+l5:5:wait:/etc/rc.d/init.d/rc 5
+l6:6:wait:/etc/rc.d/init.d/rc 6
+
+ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
+
+su:S016:once:/sbin/sulogin
+
+1:2345:respawn:/sbin/agetty -I '\033(K' tty1 9600
+2:2345:respawn:/sbin/agetty -I '\033(K' tty2 9600
+3:2345:respawn:/sbin/agetty -I '\033(K' tty3 9600
+4:2345:respawn:/sbin/agetty -I '\033(K' tty4 9600
+5:2345:respawn:/sbin/agetty -I '\033(K' tty5 9600
+6:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600</literal>
+
+<literal># End /etc/inittab</literal>
+EOF</userinput></screen>
+
+</sect2>
+
+<sect2 role="content"><title/>
+<para>Details on this package are located in <xref
+linkend="contents-sysvinit" role="."/></para>
+</sect2>
+
+</sect1>
+

Modified: branches/cross-lfs/BOOK/reboot/sparc64-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/sparc64-chapter.xml	2005-05-13 19:19:50 UTC (rev 5351)
+++ branches/cross-lfs/BOOK/reboot/sparc64-chapter.xml	2005-05-13 19:53:20 UTC (rev 5352)
@@ -9,7 +9,7 @@
 <?dbhtml filename="chapter.html"?>
 
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/e2fsprogs.xml"/>
-<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/sysvinit.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/sysvinit.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/module-init-tools.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/inetutils.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/util-linux.xml"/>




More information about the lfs-book mailing list