Changeset a8f3814a


Ignore:
Timestamp:
10/01/2022 05:35:59 AM (19 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
0058818
Parents:
36cb08f
git-author:
Xi Ruoyao <xry111@…> (10/01/2022 04:41:42 AM)
git-committer:
Xi Ruoyao <xry111@…> (10/01/2022 05:35:59 AM)
Message:

kernfs: technically, they are not needed for chroot

Chroot command itself does not require kernel VFS mounted. You can mount
/proc, /sys, and /run after entering chroot with
"mount -v -t proc proc /proc" etc. For /dev, if the host kernel
supports devtmpfs, you can also mount /dev in chroot with
"mount -v -t devtmpfs devtmpfs /dev". Even if the host does not support
devtmpfs, it's still possible to mount /proc in chroot, then use
"mount --bind /proc/1/dev /dev".

It's just LFS editors decide to mount them before chroot. So reword
some untrue assertions.

Location:
chapter07
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chapter07/introduction.xml

    r36cb08f ra8f3814a  
    1919  <para>For proper operation of the isolated environment, some communication
    2020  with the running kernel must be established. This is done via the
    21   so-called <emphasis>Virtual Kernel File Systems</emphasis>, which must be
     21  so-called <emphasis>Virtual Kernel File Systems</emphasis>, which will be
    2222  mounted before entering the chroot environment. You may want to verify
    2323  that they are mounted by issuing the <command>findmnt</command> command.</para>
  • chapter07/kernfs.xml

    r36cb08f ra8f3814a  
    1919    with the kernel itself. These file systems are virtual: no disk
    2020    space is used for them. The content of the file systems resides in
    21     memory. These file systems must exist in the $LFS directory tree
    22     before you can <command>chroot</command> successfully.</para>
     21    memory. These file systems must be mounted in the $LFS directory tree
     22    so the applications can find them in the chroot environment.</para>
    2323
    2424    <para>Begin by creating directories on which the file systems will be
Note: See TracChangeset for help on using the changeset viewer.