guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: doc: Use 'mount --rbind' for chroot instructions.


From: guix-commits
Subject: branch master updated: doc: Use 'mount --rbind' for chroot instructions.
Date: Fri, 17 Mar 2023 11:02:32 -0400

This is an automated email from the git hooks/post-receive script.

apteryx pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new fd4f91dea6 doc: Use 'mount --rbind' for chroot instructions.
fd4f91dea6 is described below

commit fd4f91dea6d82219c196549d29feb0090fd32a36
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Mar 17 10:57:08 2023 -0400

    doc: Use 'mount --rbind' for chroot instructions.
    
    This was reported by a user in #guix.  It's at least necessary for /sys, to
    have the /sys/firmware/efivars location available insinde the chroot when
    using an UEFI system.
    
    * doc/guix.texi (Chrooting into an existing system): Replace --bind argument
    with --rbind
    
    Suggested-by: Josselin Poiret <dev@jpoiret.xyz>
---
 doc/guix.texi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 2d42ca8de2..0a965f53c0 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -2945,9 +2945,9 @@ mount /dev/sda2 /mnt
 Mount special block devices and Linux-specific directories:
 
 @example sh
-mount --bind /proc /mnt/proc
-mount --bind /sys /mnt/sys
-mount --bind /dev /mnt/dev
+mount --rbind /proc /mnt/proc
+mount --rbind /sys /mnt/sys
+mount --rbind /dev /mnt/dev
 @end example
 
 If your system is EFI-based, you must also mount the ESP partition.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]