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 0BYLHQExeWOANQAAbAwnHQ (envelope-from ) for ; Sat, 19 Nov 2022 20:39:45 +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 wAPeHAExeWPugwAAauVa8A (envelope-from ) for ; Sat, 19 Nov 2022 20:39:45 +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 10BF6F51A for ; Sat, 19 Nov 2022 20:39:44 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owTLj-0004Sv-W5; Sat, 19 Nov 2022 14:18:00 -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 1owTLi-0004Rs-Ja for help-guix@gnu.org; Sat, 19 Nov 2022 14:17:58 -0500 Received: from mail-yb1-xb2a.google.com ([2607:f8b0:4864:20::b2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1owTLg-00063Y-Ka for help-guix@gnu.org; Sat, 19 Nov 2022 14:17:58 -0500 Received: by mail-yb1-xb2a.google.com with SMTP id e68so9370485ybh.2 for ; Sat, 19 Nov 2022 11:17:56 -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=DJkTgIA1LFsPotWmH8GYNgRf3fDWF6iWbmFfY0nGMJ4=; b=A4FD3IriTcc3YHMY3VqaGkws+a+RamG8x6FoQgTKwExCzs57wR5SznQcqLiMyGQ8IZ aV/9m9v8rCP4Nqfy4MGBGWPGVo6MboTfGl64011QJ/dS+wuaPzhGza7HvNfxlaPS9w39 ugvEKfCu3Tu0VGu02iKbnY+wkoNF3/Zq4AlYvKDwATuC+XkmKfPVhnH/ha0EmE2NU0au d9YEJouOdBlm/2tZaE/xGdJKgUcUyLKzXi+9tDOJ7kpnxMk6jVezHSnDkN3jAo1obeZZ 2Oz3ab+fL76VRvqdHQ3VwB/Su93dhJhZ2sxy26b6TCz84x7evvg85fo6Ns/waSZAqw8D 9IfQ== 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=DJkTgIA1LFsPotWmH8GYNgRf3fDWF6iWbmFfY0nGMJ4=; b=11Z4ej2/Or9IxqTOjDW5yW5fVJMSjKSmah2No0pYNvfdHI2oGa/kOH5+b5LeEEhO95 FvPq9hon1bXmOmaaYC6qi/kq3Ff3zuZzWiuQEms6fzKx8n/UGjiG2MkeT0TqR7X6hp/Q uZAvuCepHf5u6r8ZyudbZsc5vfyitsixFiMbVXKQoKupndm787dem6vCKena4ZfUY86D wJpdx23xqDR7P7dxRpidQoUWR++dk2cx6ZZ4aZm1/0ulu2DA0PLnidDLYH9YcEgKxo5v lDIGoOVK3gUbwvpNwRO1+ypBFGdkh9Nl7s/Sfzq2SvO/n/Qge7qiKDZyVexsBrVdfPu9 831Q== X-Gm-Message-State: ANoB5pkiX4/XdVmySFSM8lO7Ep0cZVNbuTLL8j/M3GcJKUNVrnPkgYls AwKK0m7YM8qKOCv84h9Jd5kLMUu+St8jGHoehV2vKC5Mqqg= X-Google-Smtp-Source: AA0mqf6FCAje/y38/nPQa/sDhaqxC7w+r9bcUmsKwsREUoCU3BlPKhz0SxkcVItXjzowtLKHix/MfvQ+qUHOy6P1yzo= X-Received: by 2002:a25:44a:0:b0:6e7:c36c:ffca with SMTP id 71-20020a25044a000000b006e7c36cffcamr9963610ybe.12.1668885475350; Sat, 19 Nov 2022 11:17:55 -0800 (PST) MIME-Version: 1.0 References: <87fsef9nds.fsf@nckx> In-Reply-To: <87fsef9nds.fsf@nckx> From: bbb ee Date: Sat, 19 Nov 2022 20:17:44 +0100 Message-ID: Subject: Re: guix shell: error: mount: Invalid argument To: Tobias Geerinckx-Rice Cc: help-guix@gnu.org Received-SPF: pass client-ip=2607:f8b0:4864:20::b2a; envelope-from=blasforr@gmail.com; helo=mail-yb1-xb2a.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=1668886785; 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=mEpiqDqqMim/ZQhV/qyxCl3t/ShzVsuCFCc9Th86hA8=; b=YCOlGrWb1NcCzJp05kEhaeHDQYlkhra1C9tUUbTCNZx9ERr0GTZ++JZgWu9/MaF5ierdrs Mp6XLq13utc0qssF0hgv8mJebh7CiW391nSZvVjrt73e9mPfeXoRofNwBtlsa+yM2d7XkO XPlalEGS2AvnsEwasFsDA6wdY4hnLqd4ClzYTPIVk6CNgfKFoePFnkpwMm9wJJ4OVku/zL qCXz3BiHeQBiEUB9U+kvB+PG1QNGS/JgriuYMAT4yMLdwbtZ5PIcL4c1gbdLAcPnCkhxfc WSKhNMrVapi1prQ4GcMLvty/dlw0kQiGEp2YbpZh/cQZ6ysn0jFFXm62btHpRQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668886785; a=rsa-sha256; cv=none; b=loJdGNB/WKtBpQPgKVfe6vHksKYsBzDEBE0e+MTLhRh08PI/IKUi+gYkZRNuquUxHFPjOs V759qxmBKa27Wzn7c9ZSCAw/rQXttWa9hh4ABagDX69pj7dzdYo++NXfARqIUJIt6+66eM rOz+XZ27Xhwnmw4x/sPpJTbWQivK/GKCAqHHwWXYYmUyVOXvfv/EY6UkxqUUFgleh50Hvy pZqOPCbKnSMHW0ZaY+gIstNZ2GhRVW3YmXqNliVpjFAVsZlGWDuiyvySNOX9CmCBm/dcuI O7tZ5SP+J/eRQUc19fZUTeNCyR6JI7uSQVn3ADll5jProEi/5hwQj7iiLd9v6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=A4FD3Iri; 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=A4FD3Iri; 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: 10BF6F51A X-Spam-Score: 6.19 X-Migadu-Scanner: scn1.migadu.com X-TUID: YRVw4oiVCD3c /tmp, /, $HOME are in same partition. But only subdir of /tmp are mountable= : ``` dev_1@dev_1 /tmp/test2$ df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/nvme0n1p7 209921236 180793652 19663932 91% / dev_1@dev_1 /tmp/test2$ guix shell --container coreutils -- echo Elmo Elmo dev_1@dev_1 /tmp/test2$ cd /tmp/ dev_1@dev_1 /tmp$ df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/nvme0n1p7 209921236 180793720 19663864 91% / dev_1@dev_1 /tmp$ guix shell --container coreutils -- echo Elmo Elmo dev_1@dev_1 /tmp$ cd / dev_1@dev_1 /$ df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/nvme0n1p7 209921236 180793808 19663776 91% / dev_1@dev_1 /$ guix shell --container coreutils -- echo Elmo guix shell: error: mount: mount "/" on "/tmp/guix-directory.fKcwvT//": Invalid argument dev_1@dev_1 /mnt/recoverData$ cd ~ dev_1@dev_1 ~$ df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/nvme0n1p7 209921236 180793732 19663852 91% / dev_1@dev_1 ~$ guix shell --container coreutils -- echo Elmo guix shell: error: mount: mount "/home/dev_1" on "/tmp/guix-directory.LUuYdU//home/dev_1": Invalid argument ``` Other partition is also no mountable: ``` dev_1@dev_1 /mnt$ cd recoverData/ dev_1@dev_1 /mnt/recoverData$ df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/nvme0n1p8 122503676 91394804 25287412 79% /mnt/recoverData dev_1@dev_1 /mnt/recoverData$ guix shell --container coreutils -- echo Elmo guix shell: error: mount: mount "/mnt/recoverData" on "/tmp/guix-directory.ut68VE//mnt/recoverData": Invalid argument ``` I don't think it is a partition issue. Le sam. 19 nov. 2022 =C3=A0 12:47, Tobias Geerinckx-Rice a = =C3=A9crit : > 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 > > fail for > > all other dir: > > Your example for =E2=80=98all other dir=E2=80=99 just tests /home/dev_1 a= gain, > which looks extremely much like a mount point. So does /mnt. So > no mystery there, but I do wonder what's *special* about these > mountpoints compared to others. > > What is mounted at /home/dev_1 and (presumably) /mnt on your > system? Anything mounted at /home? Anything mounted *below* > /mnt/*? > > On my system: > > --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 wor= ld > Elmo world > > ~ =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 > --8<---------------cut here---------------end--------------->8--- > > Weird! Clearly, /proc is imbued with magical Kernel magick and > simply canno=E2=80=94 what? Oh: > > --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 > (rw,relatime) > --8<---------------cut here---------------end--------------->8--- > > Surely not=E2=80=A6 > > --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 > world > Elmo world > --8<---------------cut here---------------end--------------->8--- > > =E2=80=A6huh. > > So, =E2=80=98guix shell --container=E2=80=99 apparently takes issue with = 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. > > Kind regards, > > T G-R >