From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OMbwGtMEfGPdUgEAbAwnHQ (envelope-from ) for ; Tue, 22 Nov 2022 00:08:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YDLQGtMEfGOvxAAAauVa8A (envelope-from ) for ; Tue, 22 Nov 2022 00:08:03 +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 33BC739ADC for ; Tue, 22 Nov 2022 00:08:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxFXt-0007JZ-2D; Mon, 21 Nov 2022 17:45:45 -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 1oxFXq-0007JD-Vn for help-guix@gnu.org; Mon, 21 Nov 2022 17:45:43 -0500 Received: from mail-yb1-xb31.google.com ([2607:f8b0:4864:20::b31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oxFXo-0004vZ-V5 for help-guix@gnu.org; Mon, 21 Nov 2022 17:45:42 -0500 Received: by mail-yb1-xb31.google.com with SMTP id n189so2884669yba.8 for ; Mon, 21 Nov 2022 14:45:40 -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=4lCrEM7FKl3M+zit/lJ0o7lCNkMXIALbU2otlThnZiA=; b=QOCpYnnlaeiUr6GTWK0jNLs7RFGmMh3eZ2xNTmFutQbvqzEzl0bOcKRprm8tB+Lnrq kyuOslB+JD53GZ93oYTEH1/INJBLsMcKRJRAYThcEJnB00pbOBrSoMw71WkNLIFNFADK nxJRONceENO2awH6AoYU9ryoYM6mo8t69IT15ZooH1/vrJuRSz06zi4IA7NsIlveIopo A5DsoWvuVKr+eG4qVbA0zyKI/6CRjkWp9qrDkIpEixK9DfGfCOkJknFEVr0APWLqfCeZ FoAPBv25uBmHfHEJNnrJMz1y0tKBcAMlhXT9LHiG28EJMdo7FT4m6o8xu7lYY/EutnVH lsGg== 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=4lCrEM7FKl3M+zit/lJ0o7lCNkMXIALbU2otlThnZiA=; b=KeIkF/6aPchq0oPCrGurcwJs3hAmD7mKZYZGtrC0byfN+PbT9w1ZmPU3gW7GYepCXL 1T6TYmxmZGjGGmftVAFjFpfUoe1U6VGuLaZHQg7ZLhfegK+UCFsbVb+74Zl6VFTxLPmG 7JpqKYzHdIVw7Xl9gb4Mj9zt53O6wnTgIZCwYN8E3Tf4/+4udTVqicCWQZ9c5nscJZT/ YVrEpaCnwKjFcRARhhuC24kXahCi7RcclCgZT7xOGSmaH8Rrv1mDamdDuuv03cqN9sGT sA1iAln1v+okLLuzYhZCi9xdaNLxXNN882u3gI995jIq19kuf1QcXGd2+XoKsHafGCXi M2KA== X-Gm-Message-State: ANoB5pm7aJ/ZvVnq95Q8C3WvK/xT81qs/WoMj19jDGTb3rsRrXcCdiO5 3xygtTPW09eQ4aDDd0lXlX+/E+iG85MhKcchm7o= X-Google-Smtp-Source: AA0mqf7u4fpTNw9pfuRFG12N5x+Gf/Zp/dSWhqA4sPZU4pPl9J06L/BzzYAYpuC2GQH7Hoqk9K+MwuiJZ/QvMxsx+QM= X-Received: by 2002:a25:2fc2:0:b0:6e9:b7b4:f54f with SMTP id v185-20020a252fc2000000b006e9b7b4f54fmr646558ybv.222.1669070739760; Mon, 21 Nov 2022 14:45:39 -0800 (PST) MIME-Version: 1.0 References: <87fsef9nds.fsf@nckx> <875yfa1nad.fsf@gmail.com> In-Reply-To: From: bbb ee Date: Mon, 21 Nov 2022 23:45:28 +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::b31; envelope-from=blasforr@gmail.com; helo=mail-yb1-xb31.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=1669072083; 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=fzQesinm5YTCSuKEm5CJWqJAmWzxxed3ou42X6D0eDs=; b=U4/nDe7XC7XRQlc6416uREaTq3oWtRY0RMt2L8P6WmJjo1PW91rribLwCnDJmZLuYLjj5S fW3jqG5hOcyfYmaLDgdBvMs9rRufqc92yh5Dlc3nKP4ycWTChc6Bqw2sefxedBeR6PBEYj KtzEUVrKCzJjIXobPcCDRTHd0QvGrUVU2PP63wzfZMVatGYRP9EOPFS/QHhtEBOK9G6b+r 9ArpmJnWQw8BS5koaX0Qj8Z6bkhVC9WEaiOLQkjDdR5u3IwlE/ahnjBGzZcCDDBbL9lzfL pRzhILE+Xk12zqlC/G05+A0AD2jUwk1qyYXcSflmyNA8Poy1Bm7lF14VBhNfgQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669072083; a=rsa-sha256; cv=none; b=a0qva7t2+VBh4ly+8yRBT+0w8SyOptI1fYz8D+Po1wVO+VepLRSvw1Z3b4/DGttv9kiiQw 181JwuiO1A1v6w22wPzsIiDFoupCC/m7H1qZ50F51zhRToitEtB2rt3myHu+LBVh+rvGWn f/wxvuat9wT9KILQbYy3/HlkIhn8ftEyx+bXoXxwR9CmMe+rw8rth8fPOh8ZtKDIJ21qIW G9/BgWPSyTrJ7nQAwH7qpIYcSWPGCgX+EZShB7F2YbGh292fWPGM1xGFC/+xvt68gMouON CHNSYGTCmoO4ZRAzgJ6DZpeW5n4mpKb4EJKun12f2LqhOBhciiYamuG+bLk56A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=QOCpYnnl; 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: 8.49 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=QOCpYnnl; 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: 33BC739ADC X-Spam-Score: 8.49 X-Migadu-Spam: Yes X-Migadu-Scanner: scn0.migadu.com X-TUID: 60EMQBoENL6m I have submitted a bug report : https://issues.guix.gnu.org/issue/59425. Tobias is right, some of my tests fail because the current path is a mountpoint, but other tests fail because some paths of the host system can't be mounted. `guix shell --container coreutils -- echo Elmo` is runnable for me if I avoid this two condition above Le dim. 20 nov. 2022 =C3=A0 10:32, bbb ee a =C3=A9crit= : > I have posted in the help mailing list, because I want to be sure that th= e > 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 > guix > 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 wi= th 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 >> >