From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uGwmMt2ayl45YQAA0tVLHw (envelope-from ) for ; Sun, 24 May 2020 16:03:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0GLCLd2ayl5IXgAAbx9fmQ (envelope-from ) for ; Sun, 24 May 2020 16:03:41 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4EF6D9402D1 for ; Sun, 24 May 2020 16:03:41 +0000 (UTC) Received: from localhost ([::1]:44258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jct6A-0007R4-J8 for larch@yhetil.org; Sun, 24 May 2020 12:03:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcsTd-0003xj-BI for help-guix@gnu.org; Sun, 24 May 2020 11:23:49 -0400 Received: from sonic301-21.consmr.mail.gq1.yahoo.com ([98.137.64.147]:42632) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jcsTb-0000go-60 for help-guix@gnu.org; Sun, 24 May 2020 11:23:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1590333824; bh=BClRfda0BV/e3iyWGtJPH/Fw8ubYbs6+3r7KNkUJMpc=; h=Date:From:To:Subject:References:From:Subject; b=aRuDw37zLrFToScCMN5Nc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NN zlbtvK2F3XY.ZvdQxvFq6cPrlmhKoIVnXeofS8QH2CvMkfJEGpGHvRUs.6PIRgUJwiOc2tmgyweg J_x.76vLIdffpFD0eec.lKfVHKhq7Fvc6QH3lNGL.qVVsqST3clB9sMamqsx9rNddbGF3lpjsfo0 842En01GyXuuQ2.ubqtUJimDEGPgKv4LFpsn2ra9nigxd1._CGrCNIB_MJkfjKGey2B2UnJAF9UD m0B1oK2ufCmeny6lZKtSKH_r9kVKOzEfsXHHcC45ltFrdylsThRBvxjKjBsqTNdE.nlIq1YyAY3k I2pPqcO.O8Lfio15qqmSpfyCKVz4tnFaDHxv35H5qU4t45SJ1CX9Z9eudk1sWdkmfp.9Le8iG42Z fMSZ0SysNAsyTlAsde9GfVxSYH_UmUl44UDluIsVE7wRRxTKE1CF2rtducko7EBLb0Yd9i4PBm8u iPcdvkQLl2PDN.IiQn3j7xlJMc7Cl0ZW0KwKnDpgPGeFPQHVn9t27ubU2rjIhfBuQpVzLXADZoi4 AalQZe1PTTMykaDMRN5ygdPF_rluv9pov4MOI6z9AM_k3YtWBUDkEiqk6HxWc6ObjXjlXHHHqmha 1LQ984A-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Sun, 24 May 2020 15:23:44 +0000 Date: Sun, 24 May 2020 15:23:43 +0000 (UTC) From: vapnik spaknik To: help-guix@gnu.org Message-ID: <981904032.4122292.1590333823170@mail.yahoo.com> Subject: profile symlink structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: <981904032.4122292.1590333823170.ref@mail.yahoo.com> X-Mailer: WebService/1.1.15960 YMailNodin Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/81.0.4044.138 Chrome/81.0.4044.138 Safari/537.36 Received-SPF: pass client-ip=98.137.64.147; envelope-from=vapniks@yahoo.com; helo=sonic301-21.consmr.mail.gq1.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/24 11:23:44 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Sun, 24 May 2020 12:03:31 -0400 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=yahoo.com header.s=s2048 header.b=aRuDw37z; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -0.21 X-TUID: YDZskiEMtoal Hi, please could someone help me understand how guix organizes profile symlinks? I can't find a full explanation anywhere. So far I have figured out the following on my foreign distro: - original profile directories are named like: /gnu/store/-profile - /var/guix/profiles/per-user// contains symlinks to the profiles in /gnu/store associated with user - symlinks in /var/guix/profiles/per-user// seem to take one of the following forms: current-guix current-guix--link guix-profile guix-profile--link the ones with a number in their name refer to the th generation of a profile with the same name apart from the -link part. - "guix-profile" is a symlink to the currently used generation for the profile used by "guix package" for the user - "current-guix" is a symlink to the currently used generation for the profile used by "guix pull" for the user - ~/.guix-profile is a symlink to the current profile used by "guix package", i.e. /var/guix/profiles/per-user//guix-profile - ~/.config/guix/current is a symlink to the profile used by "guix pull" Now this is where I'm confused.. I was expecting ~/.config/guix/current to link to /var/guix/profiles/per-user//current-guix where is the current user. However, in my case it links to /var/guix/profiles/per-user/root/current-guix, i.e. the profile for the root user, even though there are several "current-guix" symlinks for , i.e. links of the form /var/guix/profiles/per-user//current-guix*. Could this be due to running "sudo guix pull" or "sudo -i guix pull"? Also, what determines which profile symlinks are placed in /var/guix/gcroots/auto? I read elsewhere that these symlinks will be automatically removed as soon as any of them are broken. In my case that directory only contains symlinks to /var/guix/profiles/per-user/*/current-guix* symlinks, one of which is missing (/var/guix/profiles/per-user/root/current-guix-1-link), and there is another link to ~/.config/guix/current-1-link which itself links directly to a profile in /gnu/store I suspect that the previously mentioned anomalies are the reason why "guix pull" fails for me with the following error when run as : > guix pull: error: symlink: File exists: "/var/guix/profiles/per-user//current-guix-1-link" and which may have been caused by interrupting a "guix pull". I guess I can probably fix that problem by deleting current-guix-1-link, but I would really like to know how the symlinking works exactly, so that I'm prepared for potential future problems of this kind. Thankyou, Joe Bloggs