From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 mEiLIAR1eWOsYwEAbAwnHQ (envelope-from ) for ; Sun, 20 Nov 2022 01:29:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MN18IAR1eWOZ2AAAauVa8A (envelope-from ) for ; Sun, 20 Nov 2022 01:29:56 +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 315A216A1A for ; Sun, 20 Nov 2022 01:29:56 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owYD2-0004MC-JN; Sat, 19 Nov 2022 19:29:20 -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 1owYD1-0004Lk-6A for help-guix@gnu.org; Sat, 19 Nov 2022 19:29:19 -0500 Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1owYCz-0003JL-C0 for help-guix@gnu.org; Sat, 19 Nov 2022 19:29:18 -0500 Received: by mail-qv1-xf34.google.com with SMTP id d18so2343210qvs.6 for ; Sat, 19 Nov 2022 16:29:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=o4Z9+wDTR4kzfl/Mtyj8IWxq2EFDbK8neHLJ2oNra3s=; b=K3j3zGdSWvinxxBGo2TX8nfXJvsLYXZyPK1ONkWprjzrucm6BZt0+d/W8UEp2g2uN9 aR28wIbnlhoa1cSykQAlKNpFSC1eRdPC099AWqxJAhqobLaQV7pDEThox+cnfGfPERjm RZHSj+iSi9UmDHpWo7Gdc1j7qBo8Z5l4eofnUbnGgNnfXEJhttTdPQIty7O072hAW2OA 4MQbAYHk6/0666MeFdojIrVNGWRro8EYZjOc2zBGx2DTlzsJQmpdFSv42zGAzXzI7UZ0 xe6CnEpfazHzW92Sni/Vm2CdYt/am9XF1sIJhhju0snphDj9fapsDoWOfc9/zeFq4CUI tcog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=o4Z9+wDTR4kzfl/Mtyj8IWxq2EFDbK8neHLJ2oNra3s=; b=vcLT1TdrpCllqMGgy3HYju1H9b1W3STv4p5USpbqwtzp2ZWoRgGAu8v0jlUPDNXltq Dtz9JrPBAiWovtfCflkOgz1dSC8Z2IsPsi+fPZfmZuYv65UuTO3Q+K86k9bFAAAN7lpv Oz4FfHI2RAZCXm6W4UdeGv3XFS6hRfvimgU+M1AnTMGuwSyRq9YjRCX/ZnhXZo1qSeCa hafiUCyCUMt2OO7QHLIZzsJa9waRgwy0ttt96qwsBS7XNisbc9+01N/58AGk0ADT6oiZ bKf9zMpA/Z3N4H8wPrq52e4POoKpB85SFv0sgUCccsr26/rigtoFgEsSiX4ifqefybto SvXw== X-Gm-Message-State: ANoB5pl+ZeJ5ezOWebAeEhjiqntge1tz0FRsL6bOPTuvYPg+MO9gaBfI HrVCaMea4UrL9p62fBIzPKRsz6bTGrw= X-Google-Smtp-Source: AA0mqf79DXADLYlRSy8Sam6ILOXPtF1tev0TkBYCrpH+j0KAwM/Z7CwgiCsze5F3ePiz+JvePnD9Aw== X-Received: by 2002:ad4:55c3:0:b0:4b3:6cde:3444 with SMTP id bt3-20020ad455c3000000b004b36cde3444mr12542068qvb.5.1668904156105; Sat, 19 Nov 2022 16:29:16 -0800 (PST) Received: from hurd (dsl-10-132-210.b2b2c.ca. [72.10.132.210]) by smtp.gmail.com with ESMTPSA id a16-20020ac87210000000b0039cb59f00fcsm4440342qtp.30.2022.11.19.16.29.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Nov 2022 16:29:15 -0800 (PST) From: Maxim Cournoyer To: Tobias Geerinckx-Rice Cc: bbb ee , help-guix@gnu.org Subject: Re: guix shell: error: mount: Invalid argument References: <87fsef9nds.fsf@nckx> Date: Sat, 19 Nov 2022 19:29:14 -0500 In-Reply-To: <87fsef9nds.fsf@nckx> (Tobias Geerinckx-Rice's message of "Sat, 19 Nov 2022 12:23:01 +0100") Message-ID: <875yfa1nad.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::f34; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf34.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, 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 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=1668904196; 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=o4Z9+wDTR4kzfl/Mtyj8IWxq2EFDbK8neHLJ2oNra3s=; b=FydkQiUNzntff+WusMsBEZTDBn/lTMJsibPpshmr4TFmT+nzAmteirSiNtUFHFP07lYdiT WE0OEViNemvIkryjDnVXwudk4K92+s7lRBlxfo8OqzOKnCdrYT8k3vfYJXWbJtB5Tob25M My9sX189JQlxEO9wy18ZKCiFShfs+OexiRQZuvjP0sMVJ3FJo9OJ6EXfIEgQfTB5nLNWW0 oh6JQnhTrR6xvzlvq2QflLxmedmrtxhbV1m4uwFfskODFTH0p5psqjdvMI7AYodEGee38b OWqKTCOyZbtfHfkUy/FgsJ0tosJ3WvmANrR441qpejRboxwBHQNk+1cy/sSBCA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668904196; a=rsa-sha256; cv=none; b=U52n2N6TKRw+yUIwClxR+JRaejLpQ/zP5F2RsvCNsy+dnOvA3c36Xt/UeVGITm4JPdEq1R BTaZEMhuGtx0OHwysz3dwikkm907H3/4TY7XeGajiUz472mqUrjqIC8kvV/XDBLbkydCGD ovevMLk0GbYYr3/RF0iuTD89B45TdIIY7iooNyYMe//NGma5UsYZuoGh4yy0HBXWANyA7s x1pM9jEANjvqUsK+in1H10hhmb+ora2lZYytke3cCUBJHM4afxDCy4gXQHYbvd7d1fHGnH +QL7scGJoau3uecx59+9LfUYGfDB8uzMZYiZuS0dChduMlKG+z6gpZNvim9hwA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=K3j3zGdS; dmarc=pass (policy=none) header.from=gmail.com; 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: -5.01 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=K3j3zGdS; dmarc=pass (policy=none) header.from=gmail.com; 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: 315A216A1A X-Spam-Score: -5.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: oQVrsJ4QnuNS Hi, Tobias Geerinckx-Rice writes: [...] > ~ =CE=BB guix shell -C --expose=3D/proc=3D/test coreutils -- echo Elmo=20 > world > guix shell: error: mount: mount "/proc" on=20 > "/tmp/guix-directory.zTa1qb//test": Invalid argument > > > Weird! Clearly, /proc is imbued with magical Kernel magick and=20 > 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=20 > (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=20 > world > Elmo world > > =E2=80=A6huh. > > So, =E2=80=98guix shell --container=E2=80=99 apparently takes issue with = rbind'ing=20 > mounts, or something like that. > > Maybe that's something Guix can handle by bind-mounting the entire=20 > subtree itself, or maybe it's a hard permissions error enforced by=20 > 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). --=20 Thanks, Maxim