From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Subject: bug#30728: Modification for guix installation script. Date: Mon, 26 Mar 2018 10:27:57 +0200 Message-ID: <87d0zr9r76.fsf__46250.2050832429$1522052781$gmane$org@lassieur.org> References: 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]:35765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0NU7-0006zW-Im for bug-guix@gnu.org; Mon, 26 Mar 2018 04:28:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0NU1-0002J7-UW for bug-guix@gnu.org; Mon, 26 Mar 2018 04:28:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:45708) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0NU1-0002Iy-RA for bug-guix@gnu.org; Mon, 26 Mar 2018 04:28:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f0NU1-0001tw-L9 for bug-guix@gnu.org; Mon, 26 Mar 2018 04:28:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: 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: Tatiana Sholokhova Cc: guix-devel@gnu.org, 30728@debbugs.gnu.org Hi Tatiana, Tatiana Sholokhova writes: > Hello! My name is Tatiana. > > I have installed guix for the first time and noticed that the installation > script at > https://git.savannah.gnu.org/cgit/guix.git/tree/etc/guix-install.sh did not > work for me. So, I had to make some modifications. > > There was a problem with the path to root user home directory. Below I > provide diff output for original script and my modified script. Thank you for working on this! > 266c266,267 > < ln -sf /var/guix/profiles/per-user/root/guix-profile > /root/.guix-profile > --- >> ln -sf /var/guix/profiles/per-user/root/guix-profile \ >> ~root/.guix-profile > 268c269 > < GUIX_PROFILE="/root/.guix-profile" > --- >> GUIX_PROFILE="${HOME}/.guix-profile" > > These changes allowed me to install guix via the script. As I said to Chris (Cc'ed), I don't think it's a good idea to install Guix in root's home directory. Instead, we should probably honor the USER and HOME environment variables, so that the command can be run as a non-root user (with sudo) in a consistent way. What do you think? You can follow the discussion there: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30728. Every email sent to 30728@debbugs.gnu.org will appear there. Clément