diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2014-01-20 01:18:30 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2014-01-20 01:18:30 +0000 |
commit | cb23c1a6ab0a3c279df1f453ef9585b062963ec4 (patch) | |
tree | 2b9d62f95bb276320d0631397722a57a1abacd0a /chapter06/kernfs.xml | |
parent | cde2ae7b0fd8f2f9de248a9a58094066d3b621b0 (diff) |
Added a Chapter 5 build of util-linux in preparation for
moving the Chapter 6 build to after udev. This satisfies a circular
dependency. This is not the complete fix as this build has not yet
been incorporated into Chapter 6.
Mount /run as a tmpfs for Chapter 6. This allows use by test processes
during Chapter 6 without carying the files over to the new system.
Other minor cleanups.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10447 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/kernfs.xml')
-rw-r--r-- | chapter06/kernfs.xml | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/chapter06/kernfs.xml b/chapter06/kernfs.xml index bfd583455..860cdfc00 100644 --- a/chapter06/kernfs.xml +++ b/chapter06/kernfs.xml @@ -22,7 +22,7 @@ <para>Begin by creating directories onto which the file systems will be mounted:</para> -<screen><userinput>mkdir -pv $LFS/{dev,proc,sys}</userinput></screen> +<screen><userinput>mkdir -pv $LFS/{dev,proc,sys,run}</userinput></screen> <sect2> <title>Creating Initial Device Nodes</title> @@ -70,7 +70,8 @@ mknod -m 666 $LFS/dev/null c 1 3</userinput></screen> <screen><userinput>mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620 mount -vt proc proc $LFS/proc -mount -vt sysfs sysfs $LFS/sys</userinput></screen> +mount -vt sysfs sysfs $LFS/sys +mount -vt tmpfs tmpfs $LFS/run</userinput></screen> <variablelist> <title>The meaning of the mount options for devpts:</title> @@ -102,16 +103,11 @@ mount -vt sysfs sysfs $LFS/sys</userinput></screen> <para>In some host systems, <filename>/dev/shm</filename> is a symbolic link to <filename class="directory">/run/shm</filename>. - Inside a chroot environment, this temporary file system needs - to be mounted separate from the host file system:</para> + The /run tmpfs was mounted above so in this case only a + directory needs to be created.</para> <screen><userinput>if [ -h $LFS/dev/shm ]; then - link=$(readlink $LFS/dev/shm) - mkdir -pv $LFS/$link - mount -vt tmpfs shm $LFS/$link - unset link -else - mount -vt tmpfs shm $LFS/dev/shm + mkdir -pv $LFS/$(readlink $LFS/dev/shm) fi</userinput></screen> </sect2> |