Ignore:
Timestamp:
01/20/2014 01:18:30 AM (10 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 7.5, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
053b206
Parents:
cde2ae7
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/kernfs.xml

    rcde2ae7 rcb23c1a  
    2323    mounted:</para>
    2424
    25 <screen><userinput>mkdir -pv $LFS/{dev,proc,sys}</userinput></screen>
     25<screen><userinput>mkdir -pv $LFS/{dev,proc,sys,run}</userinput></screen>
    2626
    2727  <sect2>
     
    7171<screen><userinput>mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620
    7272mount -vt proc proc $LFS/proc
    73 mount -vt sysfs sysfs $LFS/sys</userinput></screen>
     73mount -vt sysfs sysfs $LFS/sys
     74mount -vt tmpfs tmpfs $LFS/run</userinput></screen>
    7475
    7576    <variablelist>
     
    103104      <para>In some host systems, <filename>/dev/shm</filename> is a
    104105      symbolic link to <filename class="directory">/run/shm</filename>.
    105       Inside a chroot environment, this temporary file system needs
    106       to be mounted separate from the host file system:</para>
     106      The /run tmpfs was mounted above so in this case only a
     107      directory needs to be created.</para>
    107108
    108109<screen><userinput>if [ -h $LFS/dev/shm ]; then
    109   link=$(readlink $LFS/dev/shm)
    110   mkdir -pv $LFS/$link
    111   mount -vt tmpfs shm $LFS/$link
    112   unset link
    113 else
    114   mount -vt tmpfs shm $LFS/dev/shm
     110  mkdir -pv $LFS/$(readlink $LFS/dev/shm)
    115111fi</userinput></screen>
    116112
Note: See TracChangeset for help on using the changeset viewer.