From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Wilms Subject: Re: Root guix dereferencing Date: Mon, 19 Nov 2018 18:08:49 +0100 Message-ID: References: <984d7a13-05d6-0f05-17ea-57d2858c016c@freenet.de> <20181118230629.GD25252@jasmine.lan> <878t1pbc6t.fsf@lassieur.org> <87efbhnotx.fsf@lassieur.org> <30f615aa-d80d-e884-1629-a8a8fde60fee@freenet.de> <87bm6lnm3q.fsf@lassieur.org> Reply-To: t_w_@freenet.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOn4m-0000bi-V9 for help-guix@gnu.org; Mon, 19 Nov 2018 12:11:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gOn4k-0007vR-BC for help-guix@gnu.org; Mon, 19 Nov 2018 12:11:08 -0500 Received: from mout2.freenet.de ([195.4.92.92]:52970) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gOn4k-0007ul-4q for help-guix@gnu.org; Mon, 19 Nov 2018 12:11:06 -0500 Received: from [195.4.92.165] (helo=mjail2.freenet.de) by mout2.freenet.de with esmtpa (ID t_w_@freenet.de) (port 25) (Exim 4.90_1 #2) id 1gOn4h-0004a4-JG for help-guix@gnu.org; Mon, 19 Nov 2018 18:11:03 +0100 Received: from [::1] (port=43872 helo=mjail2.freenet.de) by mjail2.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1gOn4h-0004J4-Id for help-guix@gnu.org; Mon, 19 Nov 2018 18:11:03 +0100 Received: from sub8.freenet.de ([195.4.92.127]:37474) by mjail2.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1gOn2X-0002qh-NJ for help-guix@gnu.org; Mon, 19 Nov 2018 18:08:49 +0100 Received: from p200300e4f3eeb30028782e6204afb5e9.dip0.t-ipconnect.de ([2003:e4:f3ee:b300:2878:2e62:4af:b5e9]:51942) by sub8.freenet.de with esmtpsa (ID t_w_@freenet.de) (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256) (port 465) (Exim 4.90_1 #2) id 1gOn2X-0006HG-Ki for help-guix@gnu.org; Mon, 19 Nov 2018 18:08:49 +0100 In-Reply-To: <87bm6lnm3q.fsf@lassieur.org> Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix On 19/11/2018 16.06, Clément Lassieur wrote: > If you check ~root/.config/guix/current/bin/guix, you'll see that it's > updated when you run 'guix pull' as root. If you want that guix to be > used for your 'root' user, you just need to make sure > ~root/.config/guix/current/bin/ is first in root's $PATH. I could bet last time I checked, there was not "current", only "latest", below ~root/.config/guix, but indeed, there's a recently changed ~root/.config/guix/current/bin/guix. > If you are using Ubuntu, you don't need to use that command though, but > you need your systemd's guix-daemon to point to a recent guix. It could > be either the one updated by root's 'guix pull', or the one updated by > your current user's 'guix pull'. I chose the latter because I want to > run 'guix pull' only once. You mean edit /etc/systemd/guix-daemin.service and change "/var/guix/profiles/per-user/root/guix-profile/bin/guix-daemon"? If so, to what, as there's no guix-daemon in /var/guix/profiles/per-user/root/guix-profile/bin/. Is the whole reason to have /usr/local/bin/guix to make guix available for root without modifying root's PATH? Things are a bit clearer now, thanks, Clément. -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/