[Clfs-commits] [Cross-LFS]Cross-LFS Book branch, sysvinit, updated. clfs-2.1.0-1314-g677f8ac

git git at cross-lfs.org
Mon Jul 14 02:33:39 PDT 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cross-LFS Book".

The branch, sysvinit has been updated
       via  677f8ac99dfb15706007b65db3b8dfa43b1b05cc (commit)
       via  624c544efebbc69026d6c0000bf6df31765ccca4 (commit)
      from  84d6979d8d6acd015def14dac283a5ae12d3f00e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 677f8ac99dfb15706007b65db3b8dfa43b1b05cc
Author: Chris Staub <chris at beaker67.com>
Date:   Mon Jul 14 05:29:19 2014 -0400

    Updated file system mount commands for chroot
    
    Conflicts:
    	BOOK/introduction/common/changelog.xml

diff --git a/BOOK/chroot/common/devices.xml b/BOOK/chroot/common/devices.xml
deleted file mode 100644
index cbff7b9..0000000
--- a/BOOK/chroot/common/devices.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
-  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-  <!ENTITY % general-entities SYSTEM "../../general.ent">
-  %general-entities;
-]>
-
-<sect1 id="ch-chroot-devices">
-  <?dbhtml filename="devices.html"?>
-
-  <title>Mounting Kernel Filesystems</title>
-
-  <indexterm zone="ch-chroot-devices">
-    <primary sortas="e-/dev/*">/dev/*</primary>
-    <secondary>chroot</secondary>
-  </indexterm>
-
-  <sect2>
-    <title>Mounting Additional Kernel Filesystems</title>
-
-    <para>Mount the proper virtual (kernel) file systems on the
-    newly-created directories:</para>
-
-<screen><userinput>mount -vt devpts -o gid=&gid-tty;,mode=620 none /dev/pts
-mount -vt tmpfs none /dev/shm</userinput></screen>
-
-    <para>The <command>mount</command> commands executed above may result
-    in the following warning message:</para>
-
-<screen><computeroutput>can't open /etc/fstab: No such file or directory.</computeroutput></screen>
-
-    <para>This file—<filename>/etc/fstab</filename>—has not
-    been created yet, but is also not required for the file systems to be
-    properly mounted. The warning can be safely ignored.</para>
-
-  </sect2>
-
-</sect1>
diff --git a/BOOK/chroot/common/kernfs.xml b/BOOK/chroot/common/kernfs.xml
index 7f187a0..8ce83fe 100644
--- a/BOOK/chroot/common/kernfs.xml
+++ b/BOOK/chroot/common/kernfs.xml
@@ -26,20 +26,11 @@
   <para>Begin by creating directories onto which the file systems will
   be mounted:</para>
 
-<screen><userinput>mkdir -pv ${CLFS}/{dev,proc,sys}</userinput></screen>
-
-  <para>Now mount the file systems:</para>
-
-<screen><userinput>mount -vt proc proc ${CLFS}/proc
-mount -vt sysfs sysfs ${CLFS}/sys</userinput></screen>
-
-  <para>Remember that if for any reason you stop working on the CLFS system
-  and start again later, it is important to check that these file systems
-  are mounted again before entering the chroot environment.</para>
+<screen><userinput>mkdir -pv ${CLFS}/{dev,proc,run,sys}</userinput></screen>
 
   <para>Two device nodes, <filename class="devicefile">/dev/console</filename>
   and <filename class="devicefile">/dev/null</filename>, are required to be
-  present on the filesystem.  These are needed by the kernel even before
+  present on the file system. These are needed by the kernel even before
   starting Udev early in the boot process, so we create them here:</para>
 
 <screen><userinput>mknod -m 600 ${CLFS}/dev/console c 5 1
@@ -49,22 +40,25 @@ mknod -m 666 ${CLFS}/dev/null c 1 3</userinput></screen>
   nodes will be created by the kernel's
   <systemitem class="filesystem">devtmpfs</systemitem> file system. For now
   though, we will just use the <quote>bind</quote> option in the mount command
-  to make our host system's /dev structure appear in the new CLFS filesystem:</para>
+  to make our host system's <filename class="directory">/dev</filename> structure appear in the new CLFS file system:</para>
 
 <screen><userinput>mount -v -o bind /dev ${CLFS}/dev</userinput></screen>
 
-  <para>Additional file systems will soon be mounted from within the chroot
-  environment. To keep the host up to date, perform a <quote>fake mount</quote>
-  for each of these now:</para>
-
-<screen><userinput>if [ -h ${CLFS}/dev/shm ]; then
-  link=$(readlink ${CLFS}/dev/shm)
-  mkdir -p ${CLFS}/$link
-  mount -f -vt tmpfs shm ${CLFS}/$link
-  unset link
-else
-  mount -f -vt tmpfs shm ${CLFS}/dev/shm
-fi
-mount -f -vt devpts -o gid=&gid-tty;,mode=620 devpts ${CLFS}/dev/pts</userinput></screen>
+  <para>Now mount the remaining file systems:</para>
+
+<screen><userinput>mount -vt devpts -o gid=&gid-tty;,mode=620 devpts ${CLFS}/dev/pts
+mount -vt proc proc ${CLFS}/proc
+mount -vt tmpfs tmpfs ${CLFS}/run
+mount -vt sysfs sysfs ${CLFS}/sys</userinput></screen>
+
+  <para>On some host systems, <filename class="directory">/dev/shm</filename>
+  is a symbolic link to <filename class="directory">/run/shm</filename>.
+  If it is, create a directory in <filename class="directory">/run</filename>:</para>
+
+<screen><userinput>[ -h ${CLFS}/dev/shm ] && mkdir -pv ${CLFS}/$(readlink ${CLFS}/dev/shm)</userinput></screen>
+
+  <para>Remember that if for any reason you stop working on the CLFS system
+  and start again later, it is important to check that these file systems
+  are mounted again before entering the chroot environment.</para>
 
 </sect1>
diff --git a/BOOK/chroot/mips-chapter.xml b/BOOK/chroot/mips-chapter.xml
index 57ebbe1..4e245bc 100644
--- a/BOOK/chroot/mips-chapter.xml
+++ b/BOOK/chroot/mips-chapter.xml
@@ -19,6 +19,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="mips/creatingdirs.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/createfiles.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>
 
 </chapter>
diff --git a/BOOK/chroot/mips64-64-chapter.xml b/BOOK/chroot/mips64-64-chapter.xml
index 239ebc3..954db3d 100644
--- a/BOOK/chroot/mips64-64-chapter.xml
+++ b/BOOK/chroot/mips64-64-chapter.xml
@@ -19,6 +19,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="64/createfiles.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="mips64-64/flags.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>
 
 </chapter>
diff --git a/BOOK/chroot/mips64-chapter.xml b/BOOK/chroot/mips64-chapter.xml
index afb912c..9db0295 100644
--- a/BOOK/chroot/mips64-chapter.xml
+++ b/BOOK/chroot/mips64-chapter.xml
@@ -19,6 +19,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="mips64/createfiles.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="mips64/flags.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>
 
 </chapter>
diff --git a/BOOK/chroot/ppc-chapter.xml b/BOOK/chroot/ppc-chapter.xml
index 6677ed5..6ca8dc4 100644
--- a/BOOK/chroot/ppc-chapter.xml
+++ b/BOOK/chroot/ppc-chapter.xml
@@ -19,6 +19,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/creatingdirs.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/createfiles.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>
 
 </chapter>
diff --git a/BOOK/chroot/ppc64-64-chapter.xml b/BOOK/chroot/ppc64-64-chapter.xml
index 7f92708..202a768 100644
--- a/BOOK/chroot/ppc64-64-chapter.xml
+++ b/BOOK/chroot/ppc64-64-chapter.xml
@@ -18,6 +18,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/creatingdirs.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="64/createfiles.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>
 
 </chapter>
diff --git a/BOOK/chroot/ppc64-chapter.xml b/BOOK/chroot/ppc64-chapter.xml
index 114aabc..92e81e5 100644
--- a/BOOK/chroot/ppc64-chapter.xml
+++ b/BOOK/chroot/ppc64-chapter.xml
@@ -19,6 +19,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/createfiles.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ppc64/flags.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>
 
 </chapter>
diff --git a/BOOK/chroot/sparc-chapter.xml b/BOOK/chroot/sparc-chapter.xml
index 2410605..8690b0e 100644
--- a/BOOK/chroot/sparc-chapter.xml
+++ b/BOOK/chroot/sparc-chapter.xml
@@ -19,6 +19,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/creatingdirs.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/createfiles.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>
 
 </chapter>
diff --git a/BOOK/chroot/sparc64-64-chapter.xml b/BOOK/chroot/sparc64-64-chapter.xml
index fd8d92f..d5eae11 100644
--- a/BOOK/chroot/sparc64-64-chapter.xml
+++ b/BOOK/chroot/sparc64-64-chapter.xml
@@ -19,6 +19,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="64/createfiles.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="sparc64-64/flags.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>
 
 </chapter>
diff --git a/BOOK/chroot/sparc64-chapter.xml b/BOOK/chroot/sparc64-chapter.xml
index 38de3e2..e1c91ac 100644
--- a/BOOK/chroot/sparc64-chapter.xml
+++ b/BOOK/chroot/sparc64-chapter.xml
@@ -19,6 +19,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/createfiles.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="sparc64/flags.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>
 
 </chapter>
diff --git a/BOOK/chroot/x86-chapter.xml b/BOOK/chroot/x86-chapter.xml
index 72cd853..7066e7a 100644
--- a/BOOK/chroot/x86-chapter.xml
+++ b/BOOK/chroot/x86-chapter.xml
@@ -19,6 +19,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/creatingdirs.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/createfiles.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>
 
 </chapter>
diff --git a/BOOK/chroot/x86_64-64-chapter.xml b/BOOK/chroot/x86_64-64-chapter.xml
index 06e3310..5bb7c81 100644
--- a/BOOK/chroot/x86_64-64-chapter.xml
+++ b/BOOK/chroot/x86_64-64-chapter.xml
@@ -19,6 +19,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="64/createfiles.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="x86_64-64/flags.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>
 
 </chapter>
diff --git a/BOOK/chroot/x86_64-chapter.xml b/BOOK/chroot/x86_64-chapter.xml
index feeaeb7..ce3f7b9 100644
--- a/BOOK/chroot/x86_64-chapter.xml
+++ b/BOOK/chroot/x86_64-chapter.xml
@@ -19,6 +19,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/createfiles.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="x86_64/flags.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>
 
 </chapter>
diff --git a/BOOK/introduction/common/changelog.xml b/BOOK/introduction/common/changelog.xml
index cddc85f..e946538 100644
--- a/BOOK/introduction/common/changelog.xml
+++ b/BOOK/introduction/common/changelog.xml
@@ -37,7 +37,19 @@
 -->
 
     <listitem>
-      <para>09 July 2014</para>
+      <para>14 July 2014</para>
+      <itemizedlist>
+        <listitem>
+          <para>[Chris] - Modified instructions for mounting file systems
+          for chroot so that they are all mounted before entering chroot, and
+          added a tmpfs on /run. Took solution for /dev/shm symlink from LFS.
+          Fixes ticket <ulink url="&clfs-ticket-root;971">#971</ulink>.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
+      <para>10 July 2014</para>
       <itemizedlist>
         <listitem>
           <para>[Chris] - Removed creation of /var/run/utmp - it's created
diff --git a/BOOK/stylesheets/lfs-xsl/xhtml/lfs-navigational.xsl b/BOOK/stylesheets/lfs-xsl/xhtml/lfs-navigational.xsl
index a892396..3460920 100644
--- a/BOOK/stylesheets/lfs-xsl/xhtml/lfs-navigational.xsl
+++ b/BOOK/stylesheets/lfs-xsl/xhtml/lfs-navigational.xsl
@@ -156,7 +156,7 @@ $Date$
             </xsl:when>
 
               <!-- Code for the "To Boot or To Chroot" CLFS links jumps. -->
-            <xsl:when test="$prev[@id='ch-chroot-devices'] or $prev[@id='ch-boot-whatnext']">
+            <xsl:when test="$prev[@id='ch-chroot-pwdgroup'] or $prev[@id='ch-boot-whatnext']">
               <a accesskey="p">
                 <xsl:attribute name="href">
                   <xsl:call-template name="href.target">

commit 624c544efebbc69026d6c0000bf6df31765ccca4
Author: Chris Staub <chris at beaker67.com>
Date:   Mon Jul 14 05:22:44 2014 -0400

    Updated date

diff --git a/BOOK/general.ent b/BOOK/general.ent
index 304fec0..40eac34 100644
--- a/BOOK/general.ent
+++ b/BOOK/general.ent
@@ -2,7 +2,7 @@
 
 <!ENTITY month "07"> <!-- Use two digits -->
 <!ENTITY month_name "July">
-<!ENTITY day "10"> <!-- Use two digits -->
+<!ENTITY day "14"> <!-- Use two digits -->
 <!ENTITY year "2014"> <!-- Use four digits -->
 
 <!ENTITY releasedate "&month_name; &day;, &year;">

-----------------------------------------------------------------------

Summary of changes:
 BOOK/chroot/common/devices.xml                     |   38 -----------------
 BOOK/chroot/common/kernfs.xml                      |   44 ++++++++-----------
 BOOK/chroot/mips-chapter.xml                       |    1 -
 BOOK/chroot/mips64-64-chapter.xml                  |    1 -
 BOOK/chroot/mips64-chapter.xml                     |    1 -
 BOOK/chroot/ppc-chapter.xml                        |    1 -
 BOOK/chroot/ppc64-64-chapter.xml                   |    1 -
 BOOK/chroot/ppc64-chapter.xml                      |    1 -
 BOOK/chroot/sparc-chapter.xml                      |    1 -
 BOOK/chroot/sparc64-64-chapter.xml                 |    1 -
 BOOK/chroot/sparc64-chapter.xml                    |    1 -
 BOOK/chroot/x86-chapter.xml                        |    1 -
 BOOK/chroot/x86_64-64-chapter.xml                  |    1 -
 BOOK/chroot/x86_64-chapter.xml                     |    1 -
 BOOK/general.ent                                   |    2 +-
 BOOK/introduction/common/changelog.xml             |   14 ++++++-
 .../stylesheets/lfs-xsl/xhtml/lfs-navigational.xsl |    2 +-
 17 files changed, 34 insertions(+), 78 deletions(-)
 delete mode 100644 BOOK/chroot/common/devices.xml


hooks/post-receive
-- 
Cross-LFS Book



More information about the Clfs-commits mailing list