From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:44186) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0BSp-0005qF-D1 for guix-patches@gnu.org; Fri, 07 Feb 2020 16:47:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0BSo-00059H-Dl for guix-patches@gnu.org; Fri, 07 Feb 2020 16:47:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:44405) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j0BSo-00059D-9i for guix-patches@gnu.org; Fri, 07 Feb 2020 16:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j0BSo-0002h6-8I for guix-patches@gnu.org; Fri, 07 Feb 2020 16:47:02 -0500 Subject: [bug#39501] [PATCH] doc: Clarify how sudo and guix interact when updating Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:44129) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0BSX-0005fT-N4 for guix-patches@gnu.org; Fri, 07 Feb 2020 16:46:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0BSW-00053F-7a for guix-patches@gnu.org; Fri, 07 Feb 2020 16:46:45 -0500 Received: from pat.zlotemysli.pl ([37.59.186.212]:40838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j0BSV-000522-Vd for guix-patches@gnu.org; Fri, 07 Feb 2020 16:46:44 -0500 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Date: Fri, 7 Feb 2020 22:47:10 +0100 Message-Id: <20200207214710.14987-1-kuba@kadziolka.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39501@debbugs.gnu.org * doc/guix.texi (After System Installation): Explicitly explain the mechanics of how sudo differs from a login shell. Some recent discussions on IRC suggest that the existing wording wasn't entirely clear. --- doc/guix.texi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 710cf97673..9f758706f6 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -72,6 +72,7 @@ Copyright @copyright{} 2019 Guillaume Le Vaillant@* Copyright @copyright{} 2020 Leo Prikler@* Copyright @copyright{} 2019, 2020 Simon Tournier@* Copyright @copyright{} 2020 Wiktor Żelazny@* +Copyright @copyright{} 2020 Jakub Kądziołka@* Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or @@ -2439,6 +2440,11 @@ your system includes the latest security updates (@pxref{Security Updates}). Note that @command{sudo guix} runs your user's @command{guix} command and @emph{not} root's, because @command{sudo} leaves @code{PATH} unchanged. To explicitly run root's @command{guix}, type @command{sudo -i guix @dots{}}. + +The difference matters here, because @command{guix pull} updates +the @command{guix} command and package definitions only for the user it is ran +as. This means that if you choose to use @command{guix system reconfigure} in +root's login shell, you'll need to @command{guix pull} separately. @end quotation Join us on @code{#guix} on the Freenode IRC network or on -- 2.25.0