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

jim at linuxfromscratch.org jim at linuxfromscratch.org
Thu May 26 22:13:43 PDT 2005


Author: jim
Date: 2005-05-26 23:13:42 -0600 (Thu, 26 May 2005)
New Revision: 5450

Added:
   branches/cross-lfs/BOOK/reboot/common/settingenviron.xml
Modified:
   branches/cross-lfs/BOOK/general.ent
   branches/cross-lfs/BOOK/introduction/common/changelog.xml
   branches/cross-lfs/BOOK/introduction/raq2/changelog.xml
   branches/cross-lfs/BOOK/reboot/common/bootscripts.xml
   branches/cross-lfs/BOOK/reboot/common/pwdgroup.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 scenario

Modified: branches/cross-lfs/BOOK/general.ent
===================================================================
--- branches/cross-lfs/BOOK/general.ent	2005-05-26 21:52:58 UTC (rev 5449)
+++ branches/cross-lfs/BOOK/general.ent	2005-05-27 05:13:42 UTC (rev 5450)
@@ -33,7 +33,7 @@
 <!ENTITY binutils-version "2.16">
 <!ENTITY bison-version "2.0">
 <!ENTITY bzip2-version "1.0.3">
-<!ENTITY colo-version "1.17">
+<!ENTITY colo-version "1.19">
 <!ENTITY coreutils-version "5.2.1">
 <!ENTITY dejagnu-version "1.4.4">
 <!ENTITY diffutils-version "2.8.7">

Modified: branches/cross-lfs/BOOK/introduction/common/changelog.xml
===================================================================
--- branches/cross-lfs/BOOK/introduction/common/changelog.xml	2005-05-26 21:52:58 UTC (rev 5449)
+++ branches/cross-lfs/BOOK/introduction/common/changelog.xml	2005-05-27 05:13:42 UTC (rev 5450)
@@ -98,6 +98,7 @@
 <itemizedlist>
 <listitem><para>Adding necessary changes to the reboot section.</para></listitem>
 <listitem><para>Adding a modified devices page to reboot section.</para></listitem>
+<listitem><para>Adding environment to the reboot section.</para></listitem>
 </itemizedlist>
 </listitem>
 </itemizedlist>

Modified: branches/cross-lfs/BOOK/introduction/raq2/changelog.xml
===================================================================
--- branches/cross-lfs/BOOK/introduction/raq2/changelog.xml	2005-05-26 21:52:58 UTC (rev 5449)
+++ branches/cross-lfs/BOOK/introduction/raq2/changelog.xml	2005-05-27 05:13:42 UTC (rev 5450)
@@ -56,6 +56,14 @@
 -->
 
 <itemizedlist>
+<listitem><para>May 25, 2005 [jim]</para>
+<itemizedlist>
+<listitem><para>Updated Colo to 1.19.</para></listitem>
+</itemizedlist>
+</listitem>
+</itemizedlist>
+
+<itemizedlist>
 <listitem><para>May 23, 2005 [jim]</para>
 <itemizedlist>
 <listitem><para>Fixed sysvinit reboot install.</para></listitem>

Modified: branches/cross-lfs/BOOK/reboot/common/bootscripts.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/common/bootscripts.xml	2005-05-26 21:52:58 UTC (rev 5449)
+++ branches/cross-lfs/BOOK/reboot/common/bootscripts.xml	2005-05-27 05:13:42 UTC (rev 5450)
@@ -34,7 +34,7 @@
 
 <para>Make bootscripts usable at boot:</para>
 
-<screen><userinput>sed -i 's|/bin:/usr/bin:/sbin:/usr/sbin|/tools/bin:/bin:/sbin|g' \
+<screen><userinput>sed -i 's|/bin:/usr/bin:/sbin:/usr/sbin|/tools/bin:/tools/sbin:/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>
 

Modified: branches/cross-lfs/BOOK/reboot/common/pwdgroup.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/common/pwdgroup.xml	2005-05-26 21:52:58 UTC (rev 5449)
+++ branches/cross-lfs/BOOK/reboot/common/pwdgroup.xml	2005-05-27 05:13:42 UTC (rev 5450)
@@ -23,7 +23,7 @@
 command:</para>
 
 <screen><userinput>cat > ${LFS}/etc/passwd << "EOF"
-<literal>root:x:0:0:root:/root:/bin/bash
+<literal>root::0:0:root:/root:/bin/bash
 nobody:x:65534:65534:Nobody:/:/sbin/nologin</literal>
 EOF</userinput></screen>
 

Added: branches/cross-lfs/BOOK/reboot/common/settingenviron.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/common/settingenviron.xml	2005-05-26 21:52:58 UTC (rev 5449)
+++ branches/cross-lfs/BOOK/reboot/common/settingenviron.xml	2005-05-27 05:13:42 UTC (rev 5450)
@@ -0,0 +1,42 @@
+<?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-settingenviron">
+<title>Setting Up the Environment</title>
+<?dbhtml filename="settingenvironment.html"?>
+
+<para>The new instance of the shell is a <emphasis>non-login</emphasis>
+shell, which does not read the <filename>/etc/profile</filename> or
+<filename>.bash_profile</filename> files, but rather reads the
+<filename>.bashrc</filename> file instead. Create the
+<filename>.bashrc</filename> file now:</para>
+
+<screen><userinput>cat > ${LFS}/root/.bashrc << "EOF"
+<literal>PS1='\u:\w\$ '
+LC_ALL=POSIX
+PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin:/tools/sbin
+export LC_ALL PATH PS1</literal>
+EOF</userinput></screen>
+
+<para>The <envar>LC_ALL</envar> variable controls the
+localization of certain programs, making their messages follow the
+conventions of a specified country.  If the host system uses a version
+of Glibc older than 2.2.4, having <envar>LC_ALL</envar> set to something other than
+<quote>POSIX</quote> or <quote>C</quote> (during this chapter) may
+cause issues if you exit the chroot environment and wish to return
+later. Setting <envar>LC_ALL</envar> to <quote>POSIX</quote>
+or <quote>C</quote> (the two are equivalent) ensures that
+everything will work as expected in the chroot environment.</para>
+
+<para>By putting <filename class="directory">/tools/bin</filename>
+ahead of the standard <envar>PATH</envar>, all the programs installed in <xref
+linkend="chapter-temporary-tools"/> are picked up by the shell
+immediately after their installation. This, combined with turning off 
+hashing, limits the risk that old programs from
+the host are being used when they should not be used any
+longer.</para>
+
+</sect1>
+

Modified: branches/cross-lfs/BOOK/reboot/ppc-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/ppc-chapter.xml	2005-05-26 21:52:58 UTC (rev 5449)
+++ branches/cross-lfs/BOOK/reboot/ppc-chapter.xml	2005-05-27 05:13:42 UTC (rev 5450)
@@ -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/settingenviron.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/devices.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"/>

Modified: branches/cross-lfs/BOOK/reboot/raq2-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/raq2-chapter.xml	2005-05-26 21:52:58 UTC (rev 5449)
+++ branches/cross-lfs/BOOK/reboot/raq2-chapter.xml	2005-05-27 05:13:42 UTC (rev 5450)
@@ -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/settingenviron.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/devices.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"/>

Modified: branches/cross-lfs/BOOK/reboot/sparc-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/sparc-chapter.xml	2005-05-26 21:52:58 UTC (rev 5449)
+++ branches/cross-lfs/BOOK/reboot/sparc-chapter.xml	2005-05-27 05:13:42 UTC (rev 5450)
@@ -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/settingenviron.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/devices.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"/>

Modified: branches/cross-lfs/BOOK/reboot/sparc64-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/sparc64-chapter.xml	2005-05-26 21:52:58 UTC (rev 5449)
+++ branches/cross-lfs/BOOK/reboot/sparc64-chapter.xml	2005-05-27 05:13:42 UTC (rev 5450)
@@ -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/settingenviron.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/devices.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"/>

Modified: branches/cross-lfs/BOOK/reboot/x86-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/x86-chapter.xml	2005-05-26 21:52:58 UTC (rev 5449)
+++ branches/cross-lfs/BOOK/reboot/x86-chapter.xml	2005-05-27 05:13:42 UTC (rev 5450)
@@ -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/settingenviron.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/devices.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"/>

Modified: branches/cross-lfs/BOOK/reboot/x86_64-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/reboot/x86_64-chapter.xml	2005-05-26 21:52:58 UTC (rev 5449)
+++ branches/cross-lfs/BOOK/reboot/x86_64-chapter.xml	2005-05-27 05:13:42 UTC (rev 5450)
@@ -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/settingenviron.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/devices.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"/>




More information about the lfs-book mailing list