From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#36374: =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?pull=E2=80=99?= should not suggest running =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?pull=E2=80=99?= Date: Thu, 27 Jun 2019 11:55:36 +0200 Message-ID: <87lfxn2vzb.fsf@gnu.org> References: <87a7e5n4fg.fsf@gnu.org> 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]:42249) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgR8O-0000yn-GI for bug-guix@gnu.org; Thu, 27 Jun 2019 05:56:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgR8N-0006CP-9y for bug-guix@gnu.org; Thu, 27 Jun 2019 05:56:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52136) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hgR8M-0006Bn-I4 for bug-guix@gnu.org; Thu, 27 Jun 2019 05:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hgR8M-0005UY-FN for bug-guix@gnu.org; Thu, 27 Jun 2019 05:56:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Julien Lepiller's message of "Wed, 26 Jun 2019 16:19:26 +0200") 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: Julien Lepiller Cc: 36374@debbugs.gnu.org Hello! Julien Lepiller skribis: > Here is a patch to address this issue on Guix System. It creates new > files in /etc/skel: an initial profile (.config/guix/initial) tgat > only contains a symlink to /run/current-system/profile/bin/guix and > the current profile as a symlink to the initial profile. > > At first boot, and for new users, guix well be found in the current > profile, and stays there after guix pull, so we don't need to use hash > guix anymore. I think this addresses the =E2=80=9Chash guix=E2=80=9D issue (this will no = longer be needed with this patch), but it only indirectly solves the =E2=80=9Cguix pu= ll=E2=80=9D suggestion issue, right? > From 89b5fa77af87e1a1537c10e929439a902806cc5c Mon Sep 17 00:00:00 2001 > From: Julien Lepiller > Date: Wed, 26 Jun 2019 14:24:55 +0200 > Subject: [PATCH] gnu: system: Symlink guix inside an initial guix pull > profile. > > This patch adds an initial guix pull profile to the skeletons files used > on Guix System. This ensures that users don't have to type 'hash guix' > after their first guix pull, and prevents 'guix pull' from suggesting to > run 'guix pull' after it finished successfuly. It prevents the suggestion, but only because the symlink appears to be new. If you change the mtime of the symlink, or if you run: GUIX_DISTRO_AGE_WARNING=3D1s guix pull I think you still get the =E2=80=9Cguix pull=E2=80=9D recommendation. > * gnu/system/shadow.scm (skeleton-directory): Symlink guix inside an > initial guix pull profile. Perhaps we should add it to =E2=80=98default-skeletons=E2=80=99 instead of special-casing it here? WDYT? Thanks for working on it! Ludo=E2=80=99.