[lfs] 02/02: chapter10/grub: don't tell users to bind mount /boot

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository lfs.

commit 9df9092e121fc879de92c56b57032b8c5dc6c9ae
Author: Xi Ruoyao <[email protected]>
AuthorDate: Sun Apr 5 16:38:31 2026 +0800

    chapter10/grub: don't tell users to bind mount /boot
    
    If the host distro does not utilize a separate partition for /boot, bind
    mounting it just makes no sense: note that you cannot create a bind
    mount in fstab, so it's even impossible to access the LFS system's own
    kernel in the LFS system without manually creating the bind mount!
    
    If the host distro utilizes a separate partition, it can be simply
    mounted normally, not as a bind.
---
 chapter10/grub.xml | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/chapter10/grub.xml b/chapter10/grub.xml
index e88fab748..e8fbb0ba5 100644
--- a/chapter10/grub.xml
+++ b/chapter10/grub.xml
@@ -111,14 +111,13 @@ xorriso -as cdrecord -v dev=/dev/cdrw blank=as_needed grub-img.iso</userinput></
     <filename>/etc/fstab</filename>.</para>
 
     <note>
-      <para><filename class="directory">/boot</filename> can reside on the
-      host. With this configuration, you should bind-mount it so that LFS can
-      access the directory.</para>
-      <para>Outside the chroot, you should bind <filename
-      class="directory">/boot</filename> as such:</para>
-<screen role="nodump"><userinput>mount -v --bind /boot $LFS/boot</userinput></screen>
-      <para>Now <filename class="directory">/boot</filename> from the host
-      should be accessible within the LFS chroot.</para>
+      <para>If the host distro utilizes a separate partition for
+      <filename class="directory">/boot</filename> and you want the LFS
+      system to use that partition for
+      <filename class="directory">/boot</filename> as well, just mount
+      the partition at <filename class="directory">$LFS/boot</filename>
+      in the host distro.  The Linux kernel supports to mount one
+      partition at multiple mount points.</para>
     </note>
 
     <para>Leaving <filename class="directory">/boot</filename> on

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.