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: Tue, 24 Mar 2020 18:18:17 +0100 Message-ID: <87bloln02u.fsf@gnu.org> References: <87a7e5n4fg.fsf@gnu.org> <87lfxn2vzb.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]:55635) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGnCh-00014t-7h for bug-guix@gnu.org; Tue, 24 Mar 2020 13:19:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jGnCg-0006iS-4D for bug-guix@gnu.org; Tue, 24 Mar 2020 13:19:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49563) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jGnCg-0006iO-0w for bug-guix@gnu.org; Tue, 24 Mar 2020 13:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jGnCf-0005a6-Ts for bug-guix@gnu.org; Tue, 24 Mar 2020 13:19:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87lfxn2vzb.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 27 Jun 2019 11:55:36 +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-mx.org@gnu.org Sender: "bug-Guix" To: Julien Lepiller Cc: 36374@debbugs.gnu.org Ping! :-) https://issues.guix.gnu.org/issue/36374 Now=E2=80=99s a good time to fix this one! Ludo=E2=80=99. Ludovic Court=C3=A8s skribis: > 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 n= o longer be > needed with this patch), but it only indirectly solves the =E2=80=9Cguix = pull=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.