From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Cl=C3=A9ment?= Lassieur Subject: Re: Modification for guix installation script. Date: Mon, 26 Mar 2018 10:27:57 +0200 Message-ID: <87d0zr9r76.fsf@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]:35756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0NU4-0006yu-Ot for guix-devel@gnu.org; Mon, 26 Mar 2018 04:28:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0NU1-0002IR-Kz for guix-devel@gnu.org; Mon, 26 Mar 2018 04:28:04 -0400 Received: from mail.lassieur.org ([83.152.10.219]:55656) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f0NU1-0002HX-Al for guix-devel@gnu.org; Mon, 26 Mar 2018 04:28:01 -0400 In-reply-to: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" 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