Changeset 677f8ac
- Timestamp:
- Jul 14, 2014, 9:33:31 AM (10 years ago)
- Branches:
- clfs-3.0.0-sysvinit, sysvinit
- Children:
- f1e6ec8
- Parents:
- 624c544
- git-author:
- Chris Staub <chris@…> (07/14/14 09:29:19)
- git-committer:
- Chris Staub <chris@…> (07/14/14 09:33:31)
- Location:
- BOOK
- Files:
-
- 1 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/chroot/common/kernfs.xml
r624c544 r677f8ac 27 27 be mounted:</para> 28 28 29 <screen><userinput>mkdir -pv ${CLFS}/{dev,proc,sys}</userinput></screen> 30 31 <para>Now mount the file systems:</para> 32 33 <screen><userinput>mount -vt proc proc ${CLFS}/proc 34 mount -vt sysfs sysfs ${CLFS}/sys</userinput></screen> 35 36 <para>Remember that if for any reason you stop working on the CLFS system 37 and start again later, it is important to check that these file systems 38 are mounted again before entering the chroot environment.</para> 29 <screen><userinput>mkdir -pv ${CLFS}/{dev,proc,run,sys}</userinput></screen> 39 30 40 31 <para>Two device nodes, <filename class="devicefile">/dev/console</filename> 41 32 and <filename class="devicefile">/dev/null</filename>, are required to be 42 present on the file system.These are needed by the kernel even before33 present on the file system. These are needed by the kernel even before 43 34 starting Udev early in the boot process, so we create them here:</para> 44 35 … … 50 41 <systemitem class="filesystem">devtmpfs</systemitem> file system. For now 51 42 though, we will just use the <quote>bind</quote> option in the mount command 52 to make our host system's /dev structure appear in the new CLFS filesystem:</para>43 to make our host system's <filename class="directory">/dev</filename> structure appear in the new CLFS file system:</para> 53 44 54 45 <screen><userinput>mount -v -o bind /dev ${CLFS}/dev</userinput></screen> 55 46 56 <para>Additional file systems will soon be mounted from within the chroot 57 environment. To keep the host up to date, perform a <quote>fake mount</quote> 58 for each of these now:</para> 47 <para>Now mount the remaining file systems:</para> 59 48 60 <screen><userinput>if [ -h ${CLFS}/dev/shm ]; then 61 link=$(readlink ${CLFS}/dev/shm) 62 mkdir -p ${CLFS}/$link 63 mount -f -vt tmpfs shm ${CLFS}/$link 64 unset link 65 else 66 mount -f -vt tmpfs shm ${CLFS}/dev/shm 67 fi 68 mount -f -vt devpts -o gid=&gid-tty;,mode=620 devpts ${CLFS}/dev/pts</userinput></screen> 49 <screen><userinput>mount -vt devpts -o gid=&gid-tty;,mode=620 devpts ${CLFS}/dev/pts 50 mount -vt proc proc ${CLFS}/proc 51 mount -vt tmpfs tmpfs ${CLFS}/run 52 mount -vt sysfs sysfs ${CLFS}/sys</userinput></screen> 53 54 <para>On some host systems, <filename class="directory">/dev/shm</filename> 55 is a symbolic link to <filename class="directory">/run/shm</filename>. 56 If it is, create a directory in <filename class="directory">/run</filename>:</para> 57 58 <screen><userinput>[ -h ${CLFS}/dev/shm ] && mkdir -pv ${CLFS}/$(readlink ${CLFS}/dev/shm)</userinput></screen> 59 60 <para>Remember that if for any reason you stop working on the CLFS system 61 and start again later, it is important to check that these file systems 62 are mounted again before entering the chroot environment.</para> 69 63 70 64 </sect1> -
BOOK/chroot/mips-chapter.xml
r624c544 r677f8ac 20 20 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/createfiles.xml"/> 21 21 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/> 22 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>23 22 24 23 </chapter> -
BOOK/chroot/mips64-64-chapter.xml
r624c544 r677f8ac 20 20 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="mips64-64/flags.xml"/> 21 21 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/> 22 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>23 22 24 23 </chapter> -
BOOK/chroot/mips64-chapter.xml
r624c544 r677f8ac 20 20 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="mips64/flags.xml"/> 21 21 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/> 22 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>23 22 24 23 </chapter> -
BOOK/chroot/ppc-chapter.xml
r624c544 r677f8ac 20 20 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/createfiles.xml"/> 21 21 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/> 22 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>23 22 24 23 </chapter> -
BOOK/chroot/ppc64-64-chapter.xml
r624c544 r677f8ac 19 19 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="64/createfiles.xml"/> 20 20 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/> 21 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>22 21 23 22 </chapter> -
BOOK/chroot/ppc64-chapter.xml
r624c544 r677f8ac 20 20 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ppc64/flags.xml"/> 21 21 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/> 22 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>23 22 24 23 </chapter> -
BOOK/chroot/sparc-chapter.xml
r624c544 r677f8ac 20 20 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/createfiles.xml"/> 21 21 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/> 22 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>23 22 24 23 </chapter> -
BOOK/chroot/sparc64-64-chapter.xml
r624c544 r677f8ac 20 20 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="sparc64-64/flags.xml"/> 21 21 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/> 22 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>23 22 24 23 </chapter> -
BOOK/chroot/sparc64-chapter.xml
r624c544 r677f8ac 20 20 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="sparc64/flags.xml"/> 21 21 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/> 22 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>23 22 24 23 </chapter> -
BOOK/chroot/x86-chapter.xml
r624c544 r677f8ac 20 20 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/createfiles.xml"/> 21 21 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/> 22 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>23 22 24 23 </chapter> -
BOOK/chroot/x86_64-64-chapter.xml
r624c544 r677f8ac 20 20 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="x86_64-64/flags.xml"/> 21 21 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/> 22 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>23 22 24 23 </chapter> -
BOOK/chroot/x86_64-chapter.xml
r624c544 r677f8ac 20 20 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="x86_64/flags.xml"/> 21 21 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/pwdgroup.xml"/> 22 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/devices.xml"/>23 22 24 23 </chapter> -
BOOK/introduction/common/changelog.xml
r624c544 r677f8ac 38 38 39 39 <listitem> 40 <para>09 July 2014</para> 40 <para>14 July 2014</para> 41 <itemizedlist> 42 <listitem> 43 <para>[Chris] - Modified instructions for mounting file systems 44 for chroot so that they are all mounted before entering chroot, and 45 added a tmpfs on /run. Took solution for /dev/shm symlink from LFS. 46 Fixes ticket <ulink url="&clfs-ticket-root;971">#971</ulink>.</para> 47 </listitem> 48 </itemizedlist> 49 </listitem> 50 51 <listitem> 52 <para>10 July 2014</para> 41 53 <itemizedlist> 42 54 <listitem> -
BOOK/stylesheets/lfs-xsl/xhtml/lfs-navigational.xsl
r624c544 r677f8ac 157 157 158 158 <!-- Code for the "To Boot or To Chroot" CLFS links jumps. --> 159 <xsl:when test="$prev[@id='ch-chroot- devices'] or $prev[@id='ch-boot-whatnext']">159 <xsl:when test="$prev[@id='ch-chroot-pwdgroup'] or $prev[@id='ch-boot-whatnext']"> 160 160 <a accesskey="p"> 161 161 <xsl:attribute name="href">
Note:
See TracChangeset
for help on using the changeset viewer.