From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 0EGVK0MGvWSHRwEASxT56A (envelope-from ) for ; Sun, 23 Jul 2023 12:51:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yJUmK0MGvWQlJAAAauVa8A (envelope-from ) for ; Sun, 23 Jul 2023 12:51:47 +0200 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 850D54EC91 for ; Sun, 23 Jul 2023 12:51:42 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690109502; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=7XhJ5pCQqu8ra5JKJo1TwuXZH1H7eAfEVV706O3Lpco=; b=fAzVYxEAToPxOH1JRBgHhMYhFf+kUM6eWbFFxKzH5rohmJawAwFqftbAuU1OiJr4gAwC8o y73O80nnyitZq/4jtXtrvUzVb06h7H+t5wUvMbSQbkP0xW2MWbjDq94WSnjrex/1kFrRs/ wc4w06NOEEWjwXdqsY4ZSgQk/F+KYCuD5pH1mbbsjJZmd6Yj8EItgjPUOh5qORFT1gWM/C 9qhdOxN6cjQRhwNkqga4cMIcMsufGvwoV4hojUNtXuy1XwFawmrafFWY2S6aa4+wo4XLvP KCA0+bWx3iehkDX01PyXPA3gCCz18sQslAKzVt1Y6d44NdHB9OxZ/sJm/VJ1PA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690109502; a=rsa-sha256; cv=none; b=MlbCbqaXm8WP/5sA66T2Sz6ni/u5tfSylz7eNe6WU4ZRPV+LlSjS6MlvYT9Dm+L2+AEzOQ G31LNkru1n4GjM+1Cly58Gofh51oPfWe0XoFd7XuXEnt+FmhLhQdTf012t8u7Phn7RoUJ8 00ZqNHmKT9E5BlDG752VhHXi65ZZBfsXd0QjG+36knkk1YuXMF5DXq/e/qWgX8HgoMXTDV TJqsitAsEmFz8kShKJsB7LZ7c02wGqmsAjCZWFmGjHNdnbRQrhadINlk1Nd+dmf5YIT3fk yhROIDmQ1vt0dDQg6TSzbF0ircYVhXtKtWKmpuMoEqxBovhyqOkE5wx5+7D4Cg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNWgO-0008KZ-9f; Sun, 23 Jul 2023 06:51:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNWgK-0008Jh-K6 for guix-devel@gnu.org; Sun, 23 Jul 2023 06:51:20 -0400 Received: from mout.kundenserver.de ([212.227.126.187]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNWgI-0000xi-4L for guix-devel@gnu.org; Sun, 23 Jul 2023 06:51:20 -0400 Received: from hermia.goebel-consult.de ([87.176.129.227]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MYehP-1qSJut1E15-00Vib3 for ; Sun, 23 Jul 2023 12:51:12 +0200 Received: from [127.0.0.1] (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id DDA905F5F5 for ; Sun, 23 Jul 2023 12:51:09 +0200 (CEST) Message-ID: <15775c12-28af-7d10-59de-34d1fc332b94@crazy-compilers.com> Date: Sun, 23 Jul 2023 12:51:09 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 From: Hartmut Goebel Subject: Registering an artifact as root Content-Language: de-DE, en-US Organization: crazy-compilers.com To: Guix-devel Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:5szhO/cRZ4M1g+/+h+Ak/uMxeyrK3opwT9Oa9V24gFwcDqYIvPz gVlo2PIggPXaFUiQCsDdSqvDXBCAxBbajmLHoQ8T+akdwS2uRFILa/E267zEn2k3DajP1GF btF/n5YRsq/hSXakvOGUO0tW00QOKqlf4uvsxYjFr2BCq5yLpdE/ezQ5Y3xAN3DRlxABiFG /Sx+yteeQ9SERPe9seVdQ== UI-OutboundReport: notjunk:1;M01:P0:rCkIeqTOKbY=;L4Zz6MkG9/sKiJHl58usC0NlA+b 5mYPxzYgi77Jd0NeYHjlZlZusKXJSzV65K+0NhTifNnzcDh2KzDfxqJiBT4MSXrppjthOa0DH pl/v0S3ZqQI+qSVhXset52V+VQpagFFI0byWPRUNwmGavNhaWMg4f2hU2kIYl5XWdM6zTUKIh Z3fuiL5YnvcQ3gQAbprJGykAiuZmSMJtyMcpA0u3NojXwY7AGCrk/EOaVAc8jBjud3ytHl/kJ 8m89Myl5CzAq7IQ3hcG79r3MVM6WovxgnqCKfdXvbyrhckX7R9iPyXPb4FKZNNXkuqBWdZzGj /4RxAm5uRDfsVthacSCqIMufafRq9izpz5VQhbv/mNBKymEDT6Yku2PU6/cDG9VKYMWX6k4lM fsNmjO1JQ1L4OQoGUMHlbTs9mRG5VduvdZDF5dnm4xttaQIqGZD2IzUJqALlwAlKdNn2KoDM6 dUUIDqy1l3X9K8KgvLLe8j+Jun1MCXsNxNyNwQBYmTDD9s0x8VDGbnBqU76lM0sEAM+VEtWzd kisPxVRo4NNh8jnaGG+d1JoDiF4PMae7MRCF/OA/AHNvWeGZW0bSaZbThsk9HbotmwvHJw7w/ flcyETizxL/HUaEuaCWV78tejblhv/nNeaSicN0iqEVuZcY7eSi3URDQy8Jg0/vhj6cFjFzjL qGMM5PotVYzNgBMRcbRjOrBhvgQZVJ49fgxnejnygAVxFGB6CmwqbIFuO0CA5fg= Received-SPF: pass client-ip=212.227.126.187; envelope-from=h.goebel@crazy-compilers.com; helo=mout.kundenserver.de X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.84 X-Spam-Score: -5.84 X-Migadu-Queue-Id: 850D54EC91 X-Migadu-Scanner: mx1.migadu.com X-TUID: pNRBxlv5htC3

Hi,

I'd like to create a symlink to a store object somewhere in my home-directory and register this symlink as a root, to avoid the garbage collector removes the store object.

How can I achieve this with existing guix means?

Background: Vagrant has the means of distributing virtual machines as "boxes", tar.gz files which are downloaded and then extracted into some cache directory. When Vagrant creates a virtual machine based on that box, it copies the disk-image to some working directory. The cache content is (almost) trivial, thus I wrote a small script creating the required files in the cache directory and sym-linking the disk-image there. Of course, the garbage collector should not remove the disk-image a long as it is used (= linked from the box cache).

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |