From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jimmy Thrasibule via Bug reports for GNU Guix Subject: bug#39195: guix pull switching between profiles/per-user and profiles/default Date: Mon, 20 Jan 2020 10:26:10 +0100 Message-ID: References: <87d0bfqeu6.fsf@gnu.org> Reply-To: Jimmy Thrasibule Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56817) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itZjc-0000fq-ND for bug-guix@gnu.org; Mon, 20 Jan 2020 11:17:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itZjb-0000Wk-Hi for bug-guix@gnu.org; Mon, 20 Jan 2020 11:17:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39884) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1itZja-0000Vf-CG for bug-guix@gnu.org; Mon, 20 Jan 2020 11:17:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1itZja-0000M8-96 for bug-guix@gnu.org; Mon, 20 Jan 2020 11:17:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87d0bfqeu6.fsf@gnu.org> 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-mx.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 39195@debbugs.gnu.org > What do you mean by =E2=80=9Cunpacking the store=E2=80=9D? I'm actually deploying Guix from the archive at https://ftp.gnu.org/gnu/guix/guix-binary-1.0.1.x86_64-linux.tar.xz in a Docker container. > I believe /var/guix/profiles/default is used because neither $USER nor > $LOGNAME were defined, right? > > This was fixed here: > > https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3Dc20ba18304ee63f= 01895f092bb51bc2a9ce3303b This is the piece of code I was looking for to understand where this "default" profile was coming from. The $USER environment variable was indeed not set into the Docker image. Now that it is done, Guix does not complain about the profile anymore. > but it=E2=80=99s possible that you were running a version that lacks this= fix. That's is what I started to understand after playing around a bit. The Guix version provided into the archive is old so it was failing back to the "default" profile. Once upgraded, the "new" Guix was trying to switch back to the "root" profile. Now with the $USER environment variable set all is working great.