r5428 - in branches/cross-lfs/BOOK: . introduction/common reboot reboot/common

jim at linuxfromscratch.org jim at linuxfromscratch.org
Thu May 26 06:55:27 PDT 2005


Author: jim
Date: 2005-05-26 07:55:26 -0600 (Thu, 26 May 2005)
New Revision: 5428

Added:
   branches/cross-lfs/BOOK/reboot/common/fstab.xml
   branches/cross-lfs/BOOK/reboot/common/setclock.xml
Modified:
   branches/cross-lfs/BOOK/Makefile
   branches/cross-lfs/BOOK/general.ent
   branches/cross-lfs/BOOK/introduction/common/changelog.xml
   branches/cross-lfs/BOOK/reboot/common/bootscripts.xml
   branches/cross-lfs/BOOK/reboot/common/creatingdirs.xml
   branches/cross-lfs/BOOK/reboot/ppc-chapter.xml
   branches/cross-lfs/BOOK/reboot/raq2-chapter.xml
   branches/cross-lfs/BOOK/reboot/sparc-chapter.xml
   branches/cross-lfs/BOOK/reboot/sparc64-chapter.xml
   branches/cross-lfs/BOOK/reboot/x86-chapter.xml
   branches/cross-lfs/BOOK/reboot/x86_64-chapter.xml
Log:
Updates to reboot section

Modified: branches/cross-lfs/BOOK/Makefile
===================================================================
--- branches/cross-lfs/BOOK/Makefile	2005-05-25 20:13:50 UTC (rev 5427)
+++ branches/cross-lfs/BOOK/Makefile	2005-05-26 13:55:26 UTC (rev 5428)
@@ -1,7 +1,6 @@
 BASEDIR=~/lfs-book
 CHUNK_QUIET=1
-PDF_OUTPUT=LFS-BOOK-$(ARCH).pdf
-NOCHUNKS_OUTPUT=LFS-BOOK-$(ARCH).html
+JAVA_HOME=/opt/jdk/jdk-precompiled-1.5.0
 XSLROOTDIR=/usr/share/xml/docbook/xsl-stylesheets-current
 ARCH=x86 x86_64 sparc sparc64 raq2 ppc
 

Modified: branches/cross-lfs/BOOK/general.ent
===================================================================
--- branches/cross-lfs/BOOK/general.ent	2005-05-25 20:13:50 UTC (rev 5427)
+++ branches/cross-lfs/BOOK/general.ent	2005-05-26 13:55:26 UTC (rev 5428)
@@ -1,12 +1,12 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<!ENTITY version "7.0-cross-lfs-20050524">
+<!ENTITY version "7.0-cross-lfs-20050526">
 <!ENTITY version-x86 "&version;-x86">
 <!ENTITY version-ppc "&version;-PowerPC">
 <!ENTITY version-sparc "&version;-Sparc">
 <!ENTITY version-sparc64 "&version;-Sparc64">
 <!ENTITY version-raq2 "&version;-RaQ2">
 
-<!ENTITY releasedate "May 24, 2005">
+<!ENTITY releasedate "May 26, 2005">
 <!ENTITY milestone "7.0">
 
 <!ENTITY lfs-root "http://www.linuxfromscratch.org/">

Modified: branches/cross-lfs/BOOK/introduction/common/changelog.xml
===================================================================
--- branches/cross-lfs/BOOK/introduction/common/changelog.xml	2005-05-25 20:13:50 UTC (rev 5427)
+++ branches/cross-lfs/BOOK/introduction/common/changelog.xml	2005-05-26 13:55:26 UTC (rev 5428)
@@ -94,6 +94,14 @@
 -->
 
 <itemizedlist>
+<listitem><para>May 26, 2005 [jim]</para>
+<itemizedlist>
+<listitem><para>Adding necessary changes to the reboot section.</para></listitem>
+</itemizedlist>
+</listitem>
+</itemizedlist>
+
+<itemizedlist>
 <listitem><para>May 24, 2005 [jim]</para>
 <itemizedlist>
 <listitem><para>Finishing the reboot section.</para></listitem>

Modified: branches/cross-lfs/BOOK/reboot/common/bootscripts.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/common/bootscripts.xml	2005-05-25 20:13:50 UTC (rev 5427)
+++ branches/cross-lfs/BOOK/reboot/common/bootscripts.xml	2005-05-26 13:55:26 UTC (rev 5428)
@@ -32,6 +32,12 @@
 
 <screen><userinput>make ETCDIR=${LFS}/etc minimal</userinput></screen>
 
+<para>Make bootscripts usable at boot:</para>
+
+<screen><userinput>sed -i 's|/bin:/usr/bin:/sbin:/usr/sbin|/tools/bin:/bin:/sbin|g' \
+   ${LFS}/etc/init.d/functions
+   sed -i 's at mount -f /sys || failed=1 at mount -f /sys | udevstart || failed=1@' mountfs</userinput></screen>
+
 </sect2>
 
 <sect2 role="content"><title/>

Modified: branches/cross-lfs/BOOK/reboot/common/creatingdirs.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/common/creatingdirs.xml	2005-05-25 20:13:50 UTC (rev 5427)
+++ branches/cross-lfs/BOOK/reboot/common/creatingdirs.xml	2005-05-26 13:55:26 UTC (rev 5428)
@@ -12,7 +12,7 @@
 standard tree:</para>
  
 <screen><userinput>install -d ${LFS}/{bin,boot,dev,etc/opt,home,lib,mnt}
-install -d ${LFS}/{sbin,srv,usr/local,var,opt}
+install -d ${LFS}/{sbin,srv,usr/local,var,opt,proc,sys}
 install -d ${LFS}/root -m 0750
 install -d ${LFS}/tmp ${LFS}/var/tmp -m 1777
 install -d ${LFS}/media/{floppy,cdrom}

Added: branches/cross-lfs/BOOK/reboot/common/fstab.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/common/fstab.xml	2005-05-25 20:13:50 UTC (rev 5427)
+++ branches/cross-lfs/BOOK/reboot/common/fstab.xml	2005-05-26 13:55:26 UTC (rev 5428)
@@ -0,0 +1,57 @@
+<?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">
+  %general-entities;
+]>
+<sect1 id="ch-reboot-fstab">
+<title>Creating the /etc/fstab File</title>
+<?dbhtml filename="fstab.html"?>
+
+<indexterm zone="ch-reboot-fstab"><primary sortas="e-/etc/fstab">/etc/fstab</primary></indexterm>
+
+<para>The <filename>${LFS}/etc/fstab</filename> file is used by some
+programs to determine where file systems are to be mounted by default,
+which must be checked, and in which order. Create a new file systems
+table like this:</para>
+
+<screen><userinput>cat > ${LFS}/etc/fstab << "EOF"
+<literal># Begin /etc/fstab
+
+# file system  mount-point  type   options         dump  fsck
+#                                                        order
+
+/dev/<replaceable>[xxx]</replaceable>     /            <replaceable>[fff]</replaceable>  defaults        1     1
+/dev/<replaceable>[yyy]</replaceable>     swap         swap   pri=1           0     0
+proc           /proc        proc   defaults        0     0
+sysfs          /sys         sysfs  defaults        0     0
+devpts         /dev/pts     devpts gid=2,mode=620  0     0
+shm            /dev/shm     tmpfs  defaults        0     0
+# End /etc/fstab</literal>
+EOF</userinput></screen>
+
+<para>Replace <replaceable>[xxx]</replaceable>,
+<replaceable>[yyy]</replaceable>, and <replaceable>[fff]</replaceable>
+with the values appropriate for the system, for example, <filename
+class="partition">hda2</filename>, <filename
+class="partition">hda5</filename>, and <systemitem
+class="filesystem">ext2</systemitem>. For details on the six
+fields in this file, see <command>man 5 fstab</command>.</para>
+
+<para>When using a journalling file system, the <parameter>1
+1</parameter> at the end of the line should be replaced with
+<parameter>0 0</parameter> because such a partition does not need to
+be dumped or checked.</para>
+
+<para>The <filename class="directory">/dev/shm</filename> mount point
+for <systemitem class="filesystem">tmpfs</systemitem> is included to
+allow enabling POSIX-shared memory. The kernel must have the required
+support built into it for this to work (more about this is in the next
+section). Please note that very little software currently uses
+POSIX-shared memory.  Therefore, consider the <filename
+class="directory">/dev/shm</filename> mount point optional. For more
+information, see
+<filename>Documentation/filesystems/tmpfs.txt</filename> in the kernel
+source tree.</para>
+
+</sect1>
+

Added: branches/cross-lfs/BOOK/reboot/common/setclock.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/common/setclock.xml	2005-05-25 20:13:50 UTC (rev 5427)
+++ branches/cross-lfs/BOOK/reboot/common/setclock.xml	2005-05-26 13:55:26 UTC (rev 5428)
@@ -0,0 +1,57 @@
+<?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">
+  %general-entities;
+]>
+<sect1 id="ch-reboot-setclock">
+<title>Configuring the setclock Script</title>
+<?dbhtml filename="setclock.html"?>
+
+<indexterm zone="ch-reboot-setclock">
+<primary sortas="d-setclock">setclock</primary>
+<secondary>configuring</secondary></indexterm>
+
+<para>The <command>setclock</command> script reads the time from the hardware clock,
+also known as BIOS or the Complementary Metal Oxide Semiconductor
+(CMOS) clock. If the hardware clock is set to UTC, this script will convert the hardware clock's time to
+the local time using the <filename>/etc/localtime</filename> file
+(which tells the <command>hwclock</command> program which timezone the
+user is in). There is no way to
+detect whether or not the hardware clock is set to UTC time, so this
+needs to be manually configured.</para>
+
+<para>If you cannot remember whether or not the hardware
+clock is set to UTC time, find out by running
+the <userinput>hwclock --localtime --show</userinput> command. This will tell
+what the current time is according to the hardware clock. If this time
+matches whatever your watch says, then the hardware clock is set to
+local time. If the output from <command>hwclock</command> is not local
+time, chances are it is set to UTC time. Verify this by adding or
+subtracting the proper amount of hours for the timezone to this
+<command>hwclock</command> time. For example, if you live in the MST
+timezone, which is also known as GMT -0700, add seven hours to the local
+time. Then, account for Daylight Savings Time, which requires
+subtracting an hour (or only add six in the first place) during the summer
+months.</para>
+
+<para>Change the value of the <envar>UTC</envar> variable below
+to a value of <parameter>0</parameter> (zero) if the hardware clock
+is <emphasis>not</emphasis> set to UTC time.</para>
+
+<para>Create a new file <filename>${LFS}/etc/sysconfig/clock</filename> by running
+the following:</para>
+
+<screen><userinput>cat > ${LFS}/etc/sysconfig/clock << "EOF"
+<literal># Begin /etc/sysconfig/clock
+
+UTC=1
+
+# End /etc/sysconfig/clock</literal>
+EOF</userinput></screen>
+
+<para>A good hint explaining how to deal with time on LFS is available
+at <ulink url="&hints-root;time.txt"/>. It explains issues such as
+time zones, UTC, and the <envar>TZ</envar> environment variable.</para>
+
+</sect1>
+

Modified: branches/cross-lfs/BOOK/reboot/ppc-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/ppc-chapter.xml	2005-05-25 20:13:50 UTC (rev 5427)
+++ branches/cross-lfs/BOOK/reboot/ppc-chapter.xml	2005-05-26 13:55:26 UTC (rev 5428)
@@ -19,6 +19,7 @@
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/pwdgroup.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ppc/kernel.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ppc/yaboot.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/fstab.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/bootscripts.xml"/>
 
 </chapter>

Modified: branches/cross-lfs/BOOK/reboot/raq2-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/raq2-chapter.xml	2005-05-25 20:13:50 UTC (rev 5427)
+++ branches/cross-lfs/BOOK/reboot/raq2-chapter.xml	2005-05-26 13:55:26 UTC (rev 5428)
@@ -20,6 +20,7 @@
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="raq2/kernel.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="raq2/colo-build.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="raq2/colo.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/fstab.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/bootscripts.xml"/>
 
 </chapter>

Modified: branches/cross-lfs/BOOK/reboot/sparc-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/sparc-chapter.xml	2005-05-25 20:13:50 UTC (rev 5427)
+++ branches/cross-lfs/BOOK/reboot/sparc-chapter.xml	2005-05-26 13:55:26 UTC (rev 5428)
@@ -19,6 +19,7 @@
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/pwdgroup.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc/kernel.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc/silo.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/fstab.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/bootscripts.xml"/>
 
 </chapter>

Modified: branches/cross-lfs/BOOK/reboot/sparc64-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/sparc64-chapter.xml	2005-05-25 20:13:50 UTC (rev 5427)
+++ branches/cross-lfs/BOOK/reboot/sparc64-chapter.xml	2005-05-26 13:55:26 UTC (rev 5428)
@@ -19,6 +19,7 @@
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/pwdgroup.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64/kernel.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64/silo.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/fstab.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/bootscripts.xml"/>
 
 </chapter>

Modified: branches/cross-lfs/BOOK/reboot/x86-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/x86-chapter.xml	2005-05-25 20:13:50 UTC (rev 5427)
+++ branches/cross-lfs/BOOK/reboot/x86-chapter.xml	2005-05-26 13:55:26 UTC (rev 5428)
@@ -20,6 +20,7 @@
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86/kernel.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86/grub-build.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86/grub.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/fstab.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/bootscripts.xml"/>
 
 </chapter>

Modified: branches/cross-lfs/BOOK/reboot/x86_64-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/x86_64-chapter.xml	2005-05-25 20:13:50 UTC (rev 5427)
+++ branches/cross-lfs/BOOK/reboot/x86_64-chapter.xml	2005-05-26 13:55:26 UTC (rev 5428)
@@ -20,6 +20,7 @@
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86_64/kernel.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86_64/grub-build.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86_64/grub.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/fstab.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/bootscripts.xml"/>
 
 </chapter>




More information about the lfs-book mailing list