From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id +IqEEdGyaWdwUQAA62LTzQ:P1 (envelope-from ) for ; Mon, 23 Dec 2024 18:58:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id +IqEEdGyaWdwUQAA62LTzQ (envelope-from ) for ; Mon, 23 Dec 2024 19:58:25 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers eddsa verify failed") header.d=josefsson.org header.s=ed2303 header.b=KYsKQPaX; dkim=fail ("headers rsa verify failed") header.d=josefsson.org header.s=rsa2303 header.b=uyowwBDQ; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734980305; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature:openpgp:openpgp; bh=a90ENWbTb3jD4Qn+n7cO5r+WH6RZwnKQm+DD44gAdXI=; b=uDpgS3kSBkb7OImu4wxS3rhbR7BzYbbOifaIVwJytY4kIJNO5lfmKHCrjygHGWpgdASQuI QnE33bBIyMNdn2+lgB+qHTdJw7fwyXaB8EdmJlLhONYAZGKUQy5wKVW0WOVPpxt4u4ngHN EiZd8u22OIzZe9clCzWwdwkfswd4xYdgNpGd/WkqZZILLJfS4XJbulhiD24Yz98EXm1IP5 NVvvmI/Meh40siGqVjrBX9fc2ykn0LR8gZeeYhuRisVRngi+fc7314t7C/ZImj0NpWHpci HmIgl6t9zxqd8itzZiniAAKHueNf3MlBKAI4Oqt3/th2S8/E7AO+GvOo6l2jIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers eddsa verify failed") header.d=josefsson.org header.s=ed2303 header.b=KYsKQPaX; dkim=fail ("headers rsa verify failed") header.d=josefsson.org header.s=rsa2303 header.b=uyowwBDQ; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734980305; a=rsa-sha256; cv=none; b=fyd8pQMWx42+kGsuzCEO+NvkfpcvayGRTWHsPblnL49rHPo47eNMYZz5qITxYokEiYF7uX wpoR9LzyYWgCtxzYkduZmp+kvhJrI4TaZ6w0sqBanMmmB70dvtkMZSH87+WqZEk55qPhqJ exGUE1AJHFG0qLjO/fwpdUiAcAMQX2BJLc0F3dNBVnwKPk3XsA150COs3Tlc5zqcmClZKy p3ZwdfpcXbPDQhWwUWdExkMTkSwSD0mJfNT5PlNjOhdMluojV22V5pk2VJI5F2UEv1GEO7 aHx0YuG8T3A4uciMtGn3GvGW6B0DlDcly1X/6wyrxpEVl6RLRqSKAFfqPpz1fA== 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 E3B3A9CAC0 for ; Mon, 23 Dec 2024 19:58:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPncw-0000OD-Ji; Mon, 23 Dec 2024 13:58:02 -0500 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 1tPncu-0000Nl-EO for help-guix@gnu.org; Mon, 23 Dec 2024 13:58:00 -0500 Received: from uggla.sjd.se ([2001:9b1:8633::107]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPncr-0006CV-S2; Mon, 23 Dec 2024 13:58:00 -0500 DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=ed2303; h=Content-Type:MIME-Version:Message-ID:In-Reply-To :Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description; bh=a90ENWbTb3jD4Qn+n7cO5r+WH6RZwnKQm+DD44gAdXI=; t=1734980267; x=1736189867; b=KYsKQPaXvqzGGh9O1Cq+d+hsZxS4BF8NRooyttXS5/o/L3drxzcLkRyLDSrDmTzVZjbuwwJaThj 7WN/XCklXBg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=rsa2303; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=a90ENWbTb3jD4Qn+n7cO5r+WH6RZwnKQm+DD44gAdXI=; t=1734980267; x=1736189867; b=uyowwBDQDgJuCuVjDaxUnkGWaIe+wGws4QmJfI999MQnGJamp9iQNqwvLQdXrSlYg0LqBuzQfus X/hGx33+Hd60asa4LEs/c0MwXwuq47EIp5iK2CVD3FGhq/p49lA84Cd7Gl/M6Gneu2+AE11V5djmu lPBxBf0Z+ymvG2O5ZYFUfXvz2axmC9Hj+dc4m6wj5PAWmPI6cEGtBbyZvy9lgA3zqQw8i4T22VAbS uDSFnb35bjEHcSizLvhcjJie9g18mLjQEx+Ir4C6luNEuaawNGSCpWP8ucWWbgsJiUaUL3gCj+742 ++jZq23oF2KLuJCzQJXMh5JWCgNG/bvSimBRpyWjbS4CoeNsVO044Wpezra05EJQyFddde4bgcAtY a+sNFs0ChlJH5N2SSTtApT6jeqQa5x0rztu3UEjNGxxAU339QRBKAp32YEvhQxI2cqtYWsE1u; Received: from h-178-174-130-130.a498.priv.bahnhof.se ([178.174.130.130]:45000 helo=kaka) by uggla.sjd.se with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1tPncV-0049IM-Tr; Mon, 23 Dec 2024 18:57:35 +0000 To: help-guix@gnu.org Cc: Ludovic =?iso-8859-1?Q?Court=E8s?= , suhail@bayesians.ca, Cayetano Santos Subject: GitLab container /etc symlink problem (was: Re: Building a Docker image for GitLab-CI) References: <87ttb4d5c8.fsf@inventati.org> <87a5cwd4bn.fsf@inventati.org> <87ed27oqn9.fsf@kaka.sjd.se> <87zfkurbja.fsf@inria.fr> <87zfkulolb.fsf@kaka.sjd.se> <87o71ar4j5.fsf@inria.fr> <87ed25lvol.fsf@kaka.sjd.se> <87h66xgie9.fsf@inria.fr> <87ldw7pp6d.fsf@kaka.sjd.se> OpenPGP: id=B1D2BD1375BECB784CF4F8C4D73CF638C53C06BE; url=https://josefsson.org/key-20190320.txt X-Hashcash: 1:23:241223:help-guix@gnu.org::G/LjIP2IgoTva2zi:pEO X-Hashcash: 1:23:241223:ludo@gnu.org::xLIW5U+J3YzziHpx:Dt4k X-Hashcash: 1:23:241223:suhail@bayesians.ca::pLAExHd/CgbLPK2f:qaCX X-Hashcash: 1:23:241223:csantosb@inventati.org::SAQ1x+8zlmKjeqoU:YzJu Date: Mon, 23 Dec 2024 19:57:50 +0100 In-Reply-To: <87ldw7pp6d.fsf@kaka.sjd.se> (Simon Josefsson via's message of "Sun, 22 Dec 2024 19:07:06 +0100") Message-ID: <878qs6rzv5.fsf_-_@kaka.sjd.se> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2001:9b1:8633::107; envelope-from=simon@josefsson.org; helo=uggla.sjd.se X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Simon Josefsson From: Simon Josefsson via Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -8.81 X-Spam-Score: -8.81 X-Migadu-Queue-Id: E3B3A9CAC0 X-Migadu-Scanner: mx10.migadu.com X-TUID: S1MqcjpIDbmP --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Simon Josefsson via writes: >>> Re /etc=3Detc it seems GitLab's docker setup bind-mounts things below >>> /etc/ and it cannot handle the root /etc symlink. A workaround is to >>> use `lndir` which I use in the `test-amd64-package-install` job. This >>> is limitation of GitLab's docker setup: I tried running a `-S >>> /etc=3Detc` image on my own GitLab runner based on Trisquel [1] and it >>> worked fine, it mounted things below the symlinked tree properly. >>> Could `guix pack` be teached how to do a lndir-approach for /etc >>> instead of symlink, perhaps? >> >> It could symlink individual files and make /etc a directory. > > Is this possible now? How? > > The --symlink is defined like this now: > > =E2=80=98-S SPEC=E2=80=99 > Add the symlinks specified by SPEC to the pack. This option can > appear several times. > SPEC has the form =E2=80=98SOURCE=3DTARGET=E2=80=99, where SOURCE is= the symlink that > will be created and TARGET is the symlink target. > For instance, =E2=80=98-S /opt/gnu/bin=3Dbin=E2=80=99 creates a =E2= =80=98/opt/gnu/bin=E2=80=99 > symlink pointing to the =E2=80=98bin=E2=80=99 sub-directory of the p= rofile. > > Could we extend that somehow to support the model of recursively > creating directories, but symlink files within them? > > Or a new --symlink-mkdir parameter or similar? > >> (What=E2=80=99s =E2=80=98lndir=E2=80=99, if I may ask?) > > Exactly that :) I found out that the lndir approach doesn't work. The /etc symlinks are modified by 'guix package -i'. It only occurs sometimes, probably depending on if it happens to pull in a new version of 'net-base'. It seems 'guix package -i hello' works but 'guix package -i skopeo' doesn't. https://gitlab.com/debdistutils/guix/container/-/jobs/8713723100 ... substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 10= 0.0% substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% 61.5 MB will be downloaded retrying download of '/gnu/store/bfp25w47fxn8z0fdwj45prx2609sx59j-net-base-= 5.3' with other substitute URLs... guix substitute: warning: ci.guix.gnu.org: host not found: Servname not sup= ported for ai_socktype guix substitute: error: failed to find alternative substitute for '/gnu/sto= re/bfp25w47fxn8z0fdwj45prx2609sx59j-net-base-5.3' substitution of /gnu/store/bfp25w47fxn8z0fdwj45prx2609sx59j-net-base-5.3 fa= iled guix package: error: some substitutes for the outputs of derivation `/gnu/s= tore/cviappwxgh7ilhprl44x5ya2nypwlcj7-skopeo-1.17.0.drv' failed (usually ha= ppens due to networking issues); try `--fallback' to build derivation from = source=20 You can see that networking worked initially, but broke down later on. lrwxrwxrwx 1 root 0 70 Dec 23 18:24 protocols -> /gnu/store/bfp25w47fxn8z= 0fdwj45prx2609sx59j-net-base-5.3/etc/protocols After running 'guix package -i skopeo' that symlink is danling: ++ echo '$ ls -ld /gnu/store/*net-base*' ++ ls -ld /gnu/store/bfp25w47fxn8z0fdwj45prx2609sx59j-net-base-5.3.lock /gn= u/store/i705faz4w4wnq1frrbbrk2jnhwhsr2k9-net-base-5.3-builder /gnu/store/ka= qyk1rn9f4q36h8nc0919wrlam0xl0g-net-base-5.3.drv =2Drw------- 1 root 0 0 Dec 23 18:26 /gnu/store/bfp25w47fxn8z0fdwj45prx26= 09sx59j-net-base-5.3.lock =2Dr--r--r-- 1 root 0 893 Jan 1 1970 /gnu/store/i705faz4w4wnq1frrbbrk2jnh= whsr2k9-net-base-5.3-builder =2Dr--r--r-- 1 root 0 990 Jan 1 1970 /gnu/store/kaqyk1rn9f4q36h8nc0919wrl= am0xl0g-net-base-5.3.drv ++ echo '$ ls -ld /gnu/store/*profile*' I've reverted back to this hack: cp -rL /gnu/store/*profile/etc/* /etc/ Is there a clean solution to this? Perhaps we could debug further why GitLab/docker barfs on a /etc symlink. It is probably related to them having these mount points: /dev/sda1 /etc/hostname ext4 rw,nosuid,nodev,relatime,commit=3D30 0 0 /dev/sda1 /etc/hosts ext4 rw,nosuid,nodev,relatime,commit=3D30 0 0 /dev/sda1 /etc/resolv.conf ext4 rw,nosuid,nodev,relatime,commit=3D30 0 0 Maybe -S /etc=3Detc works if we make sure to remove just those three files.. /Simon --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIoEARYIADIWIQSjzJyHC50xCrrUzy9RcisI/kdFogUCZ2myrhQcc2ltb25Aam9z ZWZzc29uLm9yZwAKCRBRcisI/kdFolArAP0Z8LWGT/vImEGGOwOJoHWJ+uWZ+QRa 23+F/uAIrIyqywD8DiR7YmjC/juoqGUw8qEaUGriU9GCPSXAIeOXa4yzugg= =W4cA -----END PGP SIGNATURE----- --=-=-=--