kernfs: remove a false note

Things are a little tricky:

1. If the host is "modern" (any desktop distro after 2013), the kernel
   supports devtmpfs and the host udev will do adjustments to the
   devtmpfs.  All instances of devtmpfs shares the same content so we'll
   see the work of both the kernel and the host udev in chroot.
2. If the host is old but the kernel supports devtmpfs (i. e. the host
   is not using devtmpfs for its /dev), when we mount devtmpfs on
   $LFS/dev we'll see the work of the kernel in chroot, but not the work
   of udev.  **Building LFS does not need any work of udev.**
3. If the host is very old and the kernel does not support devtmpfs at
   all, we can't mount devtmpfs.

Mounting a devtmpfs will work for 1 and 2, while bind mounting will work
for 1, 2, and 3.  So we use bind mounting here.

I don't want to squash all these details into the book, so just remove
the false statement here.
This commit is contained in:
Xi Ruoyao 2022-11-18 12:52:09 +08:00
parent f714a8fa3b
commit 2f9498afa4
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -41,8 +41,7 @@
<xref linkend='ch-config-udev-device-node-creation'/> for details.)
If the host kernel supports &devtmpfs;, we can simply mount a
&devtmpfs; at <filename class='directory'>$LFS/dev</filename> and rely
on the kernel to populate it (i.e., the udev daemon will do the
necessary work automatically).</para>
on the kernel to populate it.</para>
<para>But some host kernels lack &devtmpfs; support; these
host distros use different methods to create the content of