From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 6IawIXrCeGPzLgEAbAwnHQ (envelope-from ) for ; Sat, 19 Nov 2022 12:48:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aK20IXrCeGOdIgAA9RJhRA (envelope-from ) for ; Sat, 19 Nov 2022 12:48:10 +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 1B67F4013B for ; Sat, 19 Nov 2022 12:48:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owMK5-00075y-MG; Sat, 19 Nov 2022 06:47:49 -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 1owMK2-00075U-Lo for help-guix@gnu.org; Sat, 19 Nov 2022 06:47:46 -0500 Received: from tobias.gr ([2a02:c205:2020:6054::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owMK0-0004r2-Nw for help-guix@gnu.org; Sat, 19 Nov 2022 06:47:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=o9rdPkRBgQfPN PVd3EfjcpDyUyYpjAdnT/1hzs6ZXbY=; h=in-reply-to:date:subject:cc:to: from:references; d=tobias.gr; b=hjKJ6zLIC/X17NXYfh0c8Ek14HKIFjdNDuumpK jer4fR0btc47mYubuI+4Srtcx8ddl+zJyooYIZvlaU+qYGXnBFdhBKriObGW8aKiRHd3AT X9gxVOk2gG1D7j4WuL4DLg2vkrUhSkF/axLpm05A0L19bHsdGKk9m4MFs5r1OWpAtqUz3Q qmi0nBGJl0fOPZ7cp6zlNBFbkdsoRqZI0yTUdezORhorusue0Pp8fPTLp/OkW0Q8yw5HqG qNPEJscemDbzgrpX0qhMwttAhYJTy7L2k89arL8Lyf4NKqJ/rAajaZ5Rdh2f1r02HURqJZ hE0Xy3J4cjyAZ+PX2lKBlp8A== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 7bcdd974 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sat, 19 Nov 2022 11:47:30 +0000 (UTC) References: From: Tobias Geerinckx-Rice To: bbb ee Cc: help-guix@gnu.org Subject: Re: guix shell: error: mount: Invalid argument Date: Sat, 19 Nov 2022 12:23:01 +0100 In-reply-to: BIMI-Selector: v=BIMI1; s=default; Message-ID: <87fsef9nds.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr 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, 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: , 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=1668858490; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=o9rdPkRBgQfPNPVd3EfjcpDyUyYpjAdnT/1hzs6ZXbY=; b=sWK7W4Vq2/YiLxBBfDXwOnvWEp6eBoXE79Xu5sROqW8eunvvUVsEGNRCefjFaaMk/p5tGv hb9SdV7BJF62riymv8/21VxZE/0kmWN7N9KBK58EuvnrHqphid27C8OOBVc4+2SEwyWw/a niRqyQ5KqFAadJnW+xOjyoXjegl9xUUJMQf+4fCo33qLHohslAgTCBS7ukZGYfizFFWEfX 5HYFFStcIbY0J1oKSsXKFZDEIg26XGJOibc0+x++Ug2geBHXEH37ssZaMKobG7kuEPOCHh xmJxZe0wInnzim+l43K1d0vlruEbTNdifiz19FLCtuoZJpO1UaKUvccwvUXmXg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668858490; a=rsa-sha256; cv=none; b=c69wNDq2vJwSCmfIWcLm+mn4zm9LZZ1Wb5cprloGCTyykcAYI4/cqpKoaJYuuRO7zrvNXW MWIMHQ8BBCLUhA20/77TRJFNNQ26pGoOL5iZlwUo82xhs1B8lqIRySVHBmhXk8grztSpdK m4ZObDyypfRIU2Id90DAyo1DT99u+qFTBZ5ADoSYWQL9/ExepGt00NpPMg4+gvXAiOM1fa 5kWSZvC0ksYuQGEynGS0fQqJE8A7xtW1kG26wi37fpxwsp2nDAJoBHwJNwcVNjQWj0ERXP C7A/GWLD61Xj67+bFJ74MhOPEVp2sQxS+BFg35qzlMC1psr8QFg+UhWngeFI6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=hjKJ6zLI; dmarc=pass (policy=reject) header.from=tobias.gr; 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: -4.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=hjKJ6zLI; dmarc=pass (policy=reject) header.from=tobias.gr; 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: 1B67F4013B X-Spam-Score: -4.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: k0fFEUgIbS/C --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi bbb, bbb ee =E5=86=99=E9=81=93=EF=BC=9A > I feel guix shell --container can only mount subdir in /tmp, and=20 > fail for > all other dir: Your example for =E2=80=98all other dir=E2=80=99 just tests /home/dev_1 aga= in,=20 which looks extremely much like a mount point. So does /mnt. So=20 no mystery there, but I do wonder what's *special* about these=20 mountpoints compared to others. What is mounted at /home/dev_1 and (presumably) /mnt on your=20 system? Anything mounted at /home? Anything mounted *below*=20 /mnt/*? On my system: =2D-8<---------------cut here---------------start------------->8--- ~ =CE=BB mountpoint /tmp /tmp is a mountpoint ~ =CE=BB guix shell -C --expose=3D/tmp=3D/test coreutils -- echo Elmo world Elmo world ~ =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 =2D-8<---------------cut here---------------end--------------->8--- Weird! Clearly, /proc is imbued with magical Kernel magick and=20 simply canno=E2=80=94 what? Oh: =2D-8<---------------cut here---------------start------------->8--- ~ =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) =2D-8<---------------cut here---------------end--------------->8--- Surely not=E2=80=A6 =2D-8<---------------cut here---------------start------------->8--- ~ =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 =2D-8<---------------cut here---------------end--------------->8--- =E2=80=A6huh. So, =E2=80=98guix shell --container=E2=80=99 apparently takes issue with rb= ind'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. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCY3jCXw0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW157qYA/2ZouVfqxVdxK3ZJRvsA/K1pV7D1Fd6tfD3E1mQm vN1CAPwJUXDRHc5AmGnUQZAFiNpyf+qGcbjvX4UV4+ENmsL2Ag== =++dD -----END PGP SIGNATURE----- --=-=-=--