From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Subject: bug#30728: guix-install.sh doesn't work if run with "sudo" Date: Tue, 27 Mar 2018 11:11:36 +0200 Message-ID: <87lgedx4qf.fsf@lassieur.org> References: <87zi3lh6mb.fsf@lassieur.org> <871sgbdj2x.fsf@lassieur.org> <87d0zsn391.fsf@gmail.com> <87efk79s81.fsf@lassieur.org> <87woxyez9t.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0keE-0007Ph-Hn for bug-guix@gnu.org; Tue, 27 Mar 2018 05:12:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0keA-0001k7-Fj for bug-guix@gnu.org; Tue, 27 Mar 2018 05:12:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47280) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0keA-0001jz-Bs for bug-guix@gnu.org; Tue, 27 Mar 2018 05:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f0keA-0004pu-5f for bug-guix@gnu.org; Tue, 27 Mar 2018 05:12:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87woxyez9t.fsf@elephly.net> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ricardo Wurmus Cc: 30728@debbugs.gnu.org Ricardo Wurmus writes: > Clément Lassieur writes: > >>> The manual says (see: (guix) Binary Installation): >>> >>> 3. Make ‘root’’s profile available under ‘~/.guix-profile’: >>> >>> # ln -sf /var/guix/profiles/per-user/root/guix-profile \ >>> ~root/.guix-profile >> >> I think the manual is wrong here. This only makes sense if the user is >> 'root'. Otherwise, the user would expect Guix to be installed in their >> home, not in root's home. > > Step 2 says “As root, run: […]”. “~root” resolves to “/root”, not to > “$HOME/root”, so it even works when run as a regular user. > > The manual seems correct to me and this is what the script aims to > implement. But ~/.guix-profile may resolve to /home/user/.guix-profile. So it should be ~root/.guix-profile instead of ~/.guix-profile.