From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GKwjGFX0eWNEDgAAbAwnHQ (envelope-from ) for ; Sun, 20 Nov 2022 10:33:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4KdHF1X0eWNragAAG6o9tA (envelope-from ) for ; Sun, 20 Nov 2022 10:33:09 +0100 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 1E80A3A0FF for ; Sun, 20 Nov 2022 10:33:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owggn-0002Rn-9t; Sun, 20 Nov 2022 04:32:37 -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 1owggY-0002Qm-U7 for help-guix@gnu.org; Sun, 20 Nov 2022 04:32:25 -0500 Received: from mail-yw1-x1130.google.com ([2607:f8b0:4864:20::1130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1owggW-0003np-UD for help-guix@gnu.org; Sun, 20 Nov 2022 04:32:22 -0500 Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-3691e040abaso88182227b3.9 for ; Sun, 20 Nov 2022 01:32:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZddmReNsYBeRTEppYrOUI1jnfvl0lqSK/1ROtg5uilM=; b=kqVnclt7qv6iiMYg5NyCca3z5fSHSyspegnY9e2Ut8MholF0W1mebMZw3/uMtuAkSZ M2ryz53CXor8FgdeRbyR28wQnaxcpfHl2pMd2vLAyTIWAAdD7MPfjY9WociXuZABp9GU WX4mWIfNKkqtLCQF5GMbhYCyd4oZ4Ho6eZ2ynsKyL2nYJzw94x6jMiWVPNNOrfGVXsFT sZTVLLOU4oYWH4TRpDRf3fnmbUZg/EV8jvDtX/RjjT0kxhtPaGMcXy4CWfEbnlQt0MNl CYMPD7K1EPpGUtopsRNz6AxZypUwJMvEeLy0867KZDTXJ6YmYbevOEy0pPKijaSMYBfQ a5bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZddmReNsYBeRTEppYrOUI1jnfvl0lqSK/1ROtg5uilM=; b=ECqlLkqB4OYp556+yRCxLhFhDHAqort95jjDHEJ6MtuPBldet4Dvb6Eh/euxvbpXF7 Fv9QOz+HhYvUSdPW/QiBmmzcNsinLBhz7XL5PMqbgoa5KxVo6SkhOQQLXloMuCD94965 IF+Cdgl6D8pehhL0/SVG+X0XQ+ttguDr7Eax2Qqm6nx7G9Puy7IxqonmLGwpD4BECf+M pNWxNVYtpNF5k2cc193wbEesuRakAL/ryMvF/n35APF1p+PlgPTbSwbo5gkXUyyKxR6j Bq2kyvtDDvzdpw7XGcjHPCvJltXm6UiyL3SZE03xKzGy4Wj4RpFykzZMSnJhOdOsPuTS 8vmg== X-Gm-Message-State: ANoB5pmLpPtcKDGMuqWwGtkGb3gN2sI/jbp+5C566PflbrNsF+iLbVdV XqyXnK4VmEl4tBQJ84+2nYXHcWoU92e8ZouQrGE= X-Google-Smtp-Source: AA0mqf7M59zkPwTc7qB9/dHMfaEihhy7t458P8G0w10+I/aI4S/I5+hHZzXttB3zSLlXNPJtKSjayYimKhb5il+sd/U= X-Received: by 2002:a81:8a81:0:b0:368:97e7:8ed1 with SMTP id a123-20020a818a81000000b0036897e78ed1mr13080246ywg.381.1668936739368; Sun, 20 Nov 2022 01:32:19 -0800 (PST) MIME-Version: 1.0 References: <87fsef9nds.fsf@nckx> <875yfa1nad.fsf@gmail.com> In-Reply-To: <875yfa1nad.fsf@gmail.com> From: bbb ee Date: Sun, 20 Nov 2022 10:32:07 +0100 Message-ID: Subject: Re: guix shell: error: mount: Invalid argument To: Maxim Cournoyer Cc: Tobias Geerinckx-Rice , help-guix@gnu.org Received-SPF: pass client-ip=2607:f8b0:4864:20::1130; envelope-from=blasforr@gmail.com; helo=mail-yw1-x1130.google.com 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668936789; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=P/JpHT9OHpp3izwPP7mnGLo3uQ2FMoo/+duJZyvUJNM=; b=t13EJG2NLcq9yEkz612Ot0kcHMXgEcVZlN2DP/i8hU8c2mNzcKTgTDyZ1yyUGYbiBi+FvB H+5cmIAcq/9MJLFPfHLhECiI/FdJO6XQ92fYBWK3piqxbDyd8e7WcV3nxClkildUs8uVKX PFQ2Cy6n344dQYnS0L0JEd1bHSkqRomQA7UwHhyUhGcpE0QtQSGpde2+fwSSOkklT2dzsj CiDNQDMXmj1E0E4Mu6r1MA7jbc9t6FneX3rUUeQerE3qc1Ncx+oGrwOp+trZKJZ9bkuiaA j+U3K34q2cfrsnIBtasDLY0i8riNvynGhkzbpQp2VOdu99Q0c3/OHRcXIoFN/Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668936789; a=rsa-sha256; cv=none; b=qmkaQp1KDurUXHCWiboxgsk4HTM7GIBpfqTnam26h4BHG5JOCIQmz0hFczflIqleDebh9z L+yybhzMicHlDXdVUCq9ip4RHWOTseMpqrPixtp2WSc7iTrQJU9QSOH4u4mDvw87kob8ef lPedLruA7LGGwab51s5q941VZQIaDNF1Z0YRlR7e34mtpLwA6puVPh5QOSGetWHDDXZBuY Hgb9S6to48/7KwRkh+goAF7n7H+YNq7t6LT2dKpDwh+Q1t9WsIElLukGYyp8TRLkLCWG6p buR8j6TRokhORq4MpnQ+W2YvthCH7DGBHSlRecpF3jRaBEYXtj7bjs5ulyk/YQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=kqVnclt7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: 6.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=kqVnclt7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: 1E80A3A0FF X-Spam-Score: 6.19 X-Migadu-Scanner: scn0.migadu.com X-TUID: cgpUhb0gT6Qo I have posted in the help mailing list, because I want to be sure that the command doesn't run is not because of bad usage from me. Apparently, my usage is correct, it is from my environment. I will also post a bug report. But the difficulty to get help for this problem is to provide a reproducible test. I have tried to reproduce this issue in a guix container ``` dev_1@dev_1 /mnt/recoverData$ guix shell --no-cwd --network --container gui= x dev_1@dev_1 ~ [env]$ guix-daemon & dev_1@dev_1 ~ [env]$ guix shell --container coreutils -- echo Elmo accepted connection from pid 3, user dev_1 substitute: guix substitute: warning: ACL for archive imports seems to be uninitialized, substitutes may be unavailable .. ``` The issue with my reproducible test is that the guix in guix container doesn't find any substitute, so it will compile all package, which will take time. Le dim. 20 nov. 2022 =C3=A0 01:29, Maxim Cournoyer a =C3=A9crit : > Hi, > > Tobias Geerinckx-Rice writes: > > > [...] > > > ~ =CE=BB guix shell -C --expose=3D/proc=3D/test coreutils -- echo Elmo > > world > > guix shell: error: mount: mount "/proc" on > > "/tmp/guix-directory.zTa1qb//test": Invalid argument > > > > > > Weird! Clearly, /proc is imbued with magical Kernel magick and > > simply canno=E2=80=94 what? Oh: > > > > ~ =CE=BB mount | grep /proc > > none on /proc type proc (rw,relatime) > > binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc > > (rw,relatime) > > > > > > Surely not=E2=80=A6 > > > > ~ =CE=BB sudo umount /proc/sys/fs/binfmt_misc > > > > ~ =CE=BB guix shell -C --expose=3D/proc=3D/test coreutils -- echo Elmo > > world > > Elmo world > > > > =E2=80=A6huh. > > > > So, =E2=80=98guix shell --container=E2=80=99 apparently takes issue wit= h rbind'ing > > mounts, or something like that. > > > > Maybe that's something Guix can handle by bind-mounting the entire > > subtree itself, or maybe it's a hard permissions error enforced by > > the kernel. I don't know. > > > > Someone with podman/Docker/similar experience might. > > I'm not useful, but just want to point out that this looks a lot like > https://issues.guix.gnu.org/46782 (guix environment --expose options > cannot be layered onto $PWD). > > -- > Thanks, > Maxim >