doc: Mention sourcing system profile when chrooting.
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Mon, 3 Oct 2022 15:22:19 +0000 (11:22 -0400)
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>
Mon, 3 Oct 2022 15:22:19 +0000 (11:22 -0400)
* doc/guix.texi (Chrooting into an existing system): Add sourcing of system
profile along user profile.

doc/guix.texi

index 0f9011f..db61727 100644 (file)
@@ -2939,11 +2939,12 @@ chroot /mnt /bin/sh
 @end example
 
 @item
-Source your @var{user} profile to setup the environment, where
-@var{user} is the user name used for the Guix System you are attempting
-to repair:
+Source the system profile as well as your @var{user} profile to setup
+the environment, where @var{user} is the user name used for the Guix
+System you are attempting to repair:
 
 @example sh
+source /var/guix/profiles/system/profile/etc/profile
 source /home/@var{user}/.guix-profile/etc/profile
 @end example