Index: OK/chroot/common/devices.xml
===================================================================
--- BOOK/chroot/common/devices.xml (revision 624c544efebbc69026d6c0000bf6df31765ccca4)
+++ (revision )
@@ -1,38 +1,0 @@
-
-
- %general-entities;
-]>
-
-
-
-
- Mounting Kernel Filesystems
-
-
- /dev/*
- chroot
-
-
-
- Mounting Additional Kernel Filesystems
-
- Mount the proper virtual (kernel) file systems on the
- newly-created directories:
-
-mount -vt devpts -o gid=&gid-tty;,mode=620 none /dev/pts
-mount -vt tmpfs none /dev/shm
-
- The mount commands executed above may result
- in the following warning message:
-
-can't open /etc/fstab: No such file or directory.
-
- This file—/etc/fstab—has not
- been created yet, but is also not required for the file systems to be
- properly mounted. The warning can be safely ignored.
-
-
-
-
Index: BOOK/chroot/common/kernfs.xml
===================================================================
--- BOOK/chroot/common/kernfs.xml (revision 624c544efebbc69026d6c0000bf6df31765ccca4)
+++ BOOK/chroot/common/kernfs.xml (revision 677f8ac99dfb15706007b65db3b8dfa43b1b05cc)
@@ -27,18 +27,9 @@
be mounted:
-mkdir -pv ${CLFS}/{dev,proc,sys}
-
- Now mount the file systems:
-
-mount -vt proc proc ${CLFS}/proc
-mount -vt sysfs sysfs ${CLFS}/sys
-
- 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.
+mkdir -pv ${CLFS}/{dev,proc,run,sys}
Two device nodes, /dev/console
and /dev/null, 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:
@@ -50,21 +41,24 @@
devtmpfs file system. For now
though, we will just use the bind
option in the mount command
- to make our host system's /dev structure appear in the new CLFS filesystem:
+ to make our host system's /dev structure appear in the new CLFS file system:
mount -v -o bind /dev ${CLFS}/dev
- Additional file systems will soon be mounted from within the chroot
- environment. To keep the host up to date, perform a fake mount
- for each of these now:
+ Now mount the remaining file systems:
-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
+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
+
+ On some host systems, /dev/shm
+ is a symbolic link to /run/shm.
+ If it is, create a directory in /run:
+
+[ -h ${CLFS}/dev/shm ] && mkdir -pv ${CLFS}/$(readlink ${CLFS}/dev/shm)
+
+ 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.
Index: BOOK/chroot/mips-chapter.xml
===================================================================
--- BOOK/chroot/mips-chapter.xml (revision 624c544efebbc69026d6c0000bf6df31765ccca4)
+++ BOOK/chroot/mips-chapter.xml (revision 677f8ac99dfb15706007b65db3b8dfa43b1b05cc)
@@ -20,5 +20,4 @@
-
Index: BOOK/chroot/mips64-64-chapter.xml
===================================================================
--- BOOK/chroot/mips64-64-chapter.xml (revision 624c544efebbc69026d6c0000bf6df31765ccca4)
+++ BOOK/chroot/mips64-64-chapter.xml (revision 677f8ac99dfb15706007b65db3b8dfa43b1b05cc)
@@ -20,5 +20,4 @@
-
Index: BOOK/chroot/mips64-chapter.xml
===================================================================
--- BOOK/chroot/mips64-chapter.xml (revision 624c544efebbc69026d6c0000bf6df31765ccca4)
+++ BOOK/chroot/mips64-chapter.xml (revision 677f8ac99dfb15706007b65db3b8dfa43b1b05cc)
@@ -20,5 +20,4 @@
-
Index: BOOK/chroot/ppc-chapter.xml
===================================================================
--- BOOK/chroot/ppc-chapter.xml (revision 624c544efebbc69026d6c0000bf6df31765ccca4)
+++ BOOK/chroot/ppc-chapter.xml (revision 677f8ac99dfb15706007b65db3b8dfa43b1b05cc)
@@ -20,5 +20,4 @@
-
Index: BOOK/chroot/ppc64-64-chapter.xml
===================================================================
--- BOOK/chroot/ppc64-64-chapter.xml (revision 624c544efebbc69026d6c0000bf6df31765ccca4)
+++ BOOK/chroot/ppc64-64-chapter.xml (revision 677f8ac99dfb15706007b65db3b8dfa43b1b05cc)
@@ -19,5 +19,4 @@
-
Index: BOOK/chroot/ppc64-chapter.xml
===================================================================
--- BOOK/chroot/ppc64-chapter.xml (revision 624c544efebbc69026d6c0000bf6df31765ccca4)
+++ BOOK/chroot/ppc64-chapter.xml (revision 677f8ac99dfb15706007b65db3b8dfa43b1b05cc)
@@ -20,5 +20,4 @@
-
Index: BOOK/chroot/sparc-chapter.xml
===================================================================
--- BOOK/chroot/sparc-chapter.xml (revision 624c544efebbc69026d6c0000bf6df31765ccca4)
+++ BOOK/chroot/sparc-chapter.xml (revision 677f8ac99dfb15706007b65db3b8dfa43b1b05cc)
@@ -20,5 +20,4 @@
-
Index: BOOK/chroot/sparc64-64-chapter.xml
===================================================================
--- BOOK/chroot/sparc64-64-chapter.xml (revision 624c544efebbc69026d6c0000bf6df31765ccca4)
+++ BOOK/chroot/sparc64-64-chapter.xml (revision 677f8ac99dfb15706007b65db3b8dfa43b1b05cc)
@@ -20,5 +20,4 @@
-
Index: BOOK/chroot/sparc64-chapter.xml
===================================================================
--- BOOK/chroot/sparc64-chapter.xml (revision 624c544efebbc69026d6c0000bf6df31765ccca4)
+++ BOOK/chroot/sparc64-chapter.xml (revision 677f8ac99dfb15706007b65db3b8dfa43b1b05cc)
@@ -20,5 +20,4 @@
-
Index: BOOK/chroot/x86-chapter.xml
===================================================================
--- BOOK/chroot/x86-chapter.xml (revision 624c544efebbc69026d6c0000bf6df31765ccca4)
+++ BOOK/chroot/x86-chapter.xml (revision 677f8ac99dfb15706007b65db3b8dfa43b1b05cc)
@@ -20,5 +20,4 @@
-
Index: BOOK/chroot/x86_64-64-chapter.xml
===================================================================
--- BOOK/chroot/x86_64-64-chapter.xml (revision 624c544efebbc69026d6c0000bf6df31765ccca4)
+++ BOOK/chroot/x86_64-64-chapter.xml (revision 677f8ac99dfb15706007b65db3b8dfa43b1b05cc)
@@ -20,5 +20,4 @@
-
Index: BOOK/chroot/x86_64-chapter.xml
===================================================================
--- BOOK/chroot/x86_64-chapter.xml (revision 624c544efebbc69026d6c0000bf6df31765ccca4)
+++ BOOK/chroot/x86_64-chapter.xml (revision 677f8ac99dfb15706007b65db3b8dfa43b1b05cc)
@@ -20,5 +20,4 @@
-
Index: BOOK/introduction/common/changelog.xml
===================================================================
--- BOOK/introduction/common/changelog.xml (revision 624c544efebbc69026d6c0000bf6df31765ccca4)
+++ BOOK/introduction/common/changelog.xml (revision 677f8ac99dfb15706007b65db3b8dfa43b1b05cc)
@@ -38,5 +38,17 @@
- 09 July 2014
+ 14 July 2014
+
+
+ [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 #971.
+
+
+
+
+
+ 10 July 2014
Index: BOOK/stylesheets/lfs-xsl/xhtml/lfs-navigational.xsl
===================================================================
--- BOOK/stylesheets/lfs-xsl/xhtml/lfs-navigational.xsl (revision 624c544efebbc69026d6c0000bf6df31765ccca4)
+++ BOOK/stylesheets/lfs-xsl/xhtml/lfs-navigational.xsl (revision 677f8ac99dfb15706007b65db3b8dfa43b1b05cc)
@@ -157,5 +157,5 @@
-
+