From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2HV+Bv28emO3mwAAbAwnHQ (envelope-from ) for ; Mon, 21 Nov 2022 00:49:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ENGWBf28emNxrAAAG6o9tA (envelope-from ) for ; Mon, 21 Nov 2022 00:49:17 +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 86BEE2A99A for ; Mon, 21 Nov 2022 00:49:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owu3b-0004PX-Gl; Sun, 20 Nov 2022 18:49:03 -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 1owu3a-0004PO-Jo for bug-guix@gnu.org; Sun, 20 Nov 2022 18:49:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1owu3a-0005VP-BV for bug-guix@gnu.org; Sun, 20 Nov 2022 18:49:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owu3Z-0008Ki-Pz for bug-guix@gnu.org; Sun, 20 Nov 2022 18:49:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59425: guix shell --container fails to mount host filesystem Resent-From: bbb ee Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 20 Nov 2022 23:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59425 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 59425@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166898812532008 (code B ref -1); Sun, 20 Nov 2022 23:49:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Nov 2022 23:48:45 +0000 Received: from localhost ([127.0.0.1]:44897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owu3I-0008KB-IX for submit@debbugs.gnu.org; Sun, 20 Nov 2022 18:48:45 -0500 Received: from lists.gnu.org ([209.51.188.17]:38816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owu3D-0008K0-SQ for submit@debbugs.gnu.org; Sun, 20 Nov 2022 18:48:43 -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 1owu3D-0004Og-J3 for bug-guix@gnu.org; Sun, 20 Nov 2022 18:48:39 -0500 Received: from mail-yb1-xb36.google.com ([2607:f8b0:4864:20::b36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1owu3B-0005Ts-Mh for bug-guix@gnu.org; Sun, 20 Nov 2022 18:48:39 -0500 Received: by mail-yb1-xb36.google.com with SMTP id 7so11766660ybp.13 for ; Sun, 20 Nov 2022 15:48:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=nfpwAhWuqNyxpSDE6bT7k15Tg+q7gyDrLANyAztr3Ws=; b=QYOPF1Y+CLwMyOFamQgDIUbXNwfYrWaJ1W32+F/wBFdcO+mMKil+Qn581bzf0XlNxl IqToKyTfwq4ihOe53zxxIOoUffeSNPbdU7cYOuIG2kpptAVFWnhXBO6yL5laTYXaPdQa mSHGIziiM7oiQI01uOvDr7J2/+l0On5tuFtoSGrtCDTDWNorxV4PiHEwChKS9TS4oU2L oMn7cWKMtL4qNFh09VdZwjHdo9ax+KiaMJSDE8DOJzaxS85+SsE6a/AHx8byx1aLfF1V 9tFrBVkN+paomb2uGCa0boI9qIsedX8ejOSHCL6jHFE3G5yBNd40uUMwJDLW8qy8cQDg 9pww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=nfpwAhWuqNyxpSDE6bT7k15Tg+q7gyDrLANyAztr3Ws=; b=eZ8I5k3lHm4+DschSdKvRcyD+3qUUrOxqBMoheJNyz119gC0oqb2wImSrOCQ7kiBOz KEZCuVeRyiJ6uO8+3MZ7BViSptndHTW39CA2+pZWrqiz3ZBL41QGQY+tX/KYesX8zXdh 9hRwPMrUWzsdWlSRXBduhyaYZ3CgU7K75Hk91U+8lA22PIey/LX6WoMmT4vADWGKX8ke jVtgioFJ4/cZWMASTd/gmiK+q77yO2AwmYLHlQGZbTqaTz8FBkqqZa2UM6YfH6w2sbCT RvFarflheef74ycZlIw9hF3TtIicSE9SSc6G7jjvTvUhXWXzvkxPs3LLuR/NDWhzo5XU N5Dw== X-Gm-Message-State: ANoB5pnLqjjznxG8ktBqoI0c1SVzA/rrt1GF+VIBPnVNR7eHN+XNJfhC H6MNuNHEu7Bd0Ji4LrmPDjvDt25mikMIuDeVTRNPfk61ul3uIg== X-Google-Smtp-Source: AA0mqf50pN8AwO27Y6XkxQB9xqZg3I2LdMCD6H9HPUFNpYhTYbYz5kvUA6RFpl1sXW8YFER7GtYziz9MRzlK6woYRxs= X-Received: by 2002:a25:2fc2:0:b0:6e9:b7b4:f54f with SMTP id v185-20020a252fc2000000b006e9b7b4f54fmr3601908ybv.222.1668988115557; Sun, 20 Nov 2022 15:48:35 -0800 (PST) MIME-Version: 1.0 From: bbb ee Date: Mon, 21 Nov 2022 00:48:24 +0100 Message-ID: Content-Type: multipart/alternative; boundary="000000000000c321da05edef9309" Received-SPF: pass client-ip=2607:f8b0:4864:20::b36; envelope-from=blasforr@gmail.com; helo=mail-yb1-xb36.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 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-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=1668988156; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=nfpwAhWuqNyxpSDE6bT7k15Tg+q7gyDrLANyAztr3Ws=; b=ZwdQbhVyWTLGjfAOFdgV6Bo3WS27AbaWU15mUnUiD6w4Wyca0gg78zsOh7qscTDZ4k4kNw xp7hj6A05OM/XEEL1/wTeyfxJHPPx4xuRiNWcMOynQaI8WrZHL9E0Onvi4hBE5dpHrOJWM Jp10T1KfKL45ZkQ3krxPxzrrMFX4dUmOgg2liMzPVHikajZSwVd07qjdv6SUpRMbPRT9m2 rdaqiZ8U3ysbG0GhADSY6b2DJre+1RG16TQMynhz3RSOENrk3dqA6trh7eSZRI1DUeH1xT /Isn8nP9bRlrsDDYqKF39oiXgh2hHixHSgRCZe7jw0PZ4yjcLqmM4IAcFefCWA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668988156; a=rsa-sha256; cv=none; b=mz1XaJXzVSFX7tQNyxPyR4nRIbpnV7Yd9DJ/geU6dinXIUUmTQaDUmDEsIzmdcV9LSRasa qy6rgyY7f5hsVJ7+2Sh+ISECnBEMKcVkQfCbwxpEPBMzWjqorQ7mtVkQSFVkcbh7ycFixO ELz51fvXhPseVTLuGZNuF8VJzK+KopekVTVfn/AiBEPxAsikwTKMn1NGERsx/Clo2LLNbZ hXgB2AdhnWhOZUSE60juvFQZ3svAZK1zrJeOCgz1yNjyaGgFPWAXx33h9b8sKxv4uG/cJw oqbgW60quNaj38GgsYdbpCU3E9v7LNsrfGekIx19FVFge9t5qawrZ4QCzh3Njw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=QYOPF1Y+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.80 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=QYOPF1Y+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 86BEE2A99A X-Spam-Score: 5.80 X-Migadu-Scanner: scn1.migadu.com X-TUID: KU3uWqy6ESLw --000000000000c321da05edef9309 Content-Type: text/plain; charset="UTF-8" ## description guix shell --container can only mount subdir in /tmp, and fail for all other dir: ``` # success mount in all subdir of /tmp 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 # fail for all other dir 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 ``` ## environment ``` $ uname -a Linux dev_1 5.18.18 #1 SMP PREEMPT_DYNAMIC 1 x86_64 GNU/Linux $ guix describe Generation 9 Oct 22 2022 16:05:50 (current) guix 85aff4d repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 85aff4de30686359ffb50845eb0930c0a18dc8ba nonguix 3f00d57 repository URL: https://gitlab.com/nonguix/nonguix branch: master commit: 3f00d57adce5d0a185708fd5c7c5ff6f852c2bf7 ``` ## similar issue: https://issues.guix.gnu.org/46782 --000000000000c321da05edef9309 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
## description
guix shell --container c= an only mount subdir in /tmp, and fail for all other dir:
`= ``
# success mount in all subdir of=C2=A0 /tmp
<= div>dev_1@dev_1 /tmp/test2$ df .
Filesystem =C2=A0 =C2=A0 1K-blocks =C2= =A0 =C2=A0 =C2=A0Used Available Use% Mounted on
/dev/nvme0n1p7 209921236= 180793652 =C2=A019663932 =C2=A091% /
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 =C2=A0 =C2=A0 1K-blocks =C2=A0= =C2=A0 =C2=A0Used Available Use% Mounted on
/dev/nvme0n1p7 209921236 18= 0793720 =C2=A019663864 =C2=A091% /
dev_1@dev_1 /tmp$ guix shell --contai= ner coreutils -- echo Elmo
Elmo

# fail= for all other dir
dev_1@dev_1 /tmp$ cd /
dev_1@dev_1 /$= df .
Filesystem =C2=A0 =C2=A0 1K-blocks =C2=A0 =C2=A0 =C2=A0Used Availa= ble Use% Mounted on
/dev/nvme0n1p7 209921236 180793808 =C2=A019663776 = =C2=A091% /
dev_1@dev_1 /$ guix shell --container coreutils -- echo Elmo=
guix shell: error: mount: mount "/" on "/tmp/guix-direct= ory.fKcwvT//": Invalid argument

dev_1@dev= _1 /mnt/recoverData$ cd ~
dev_1@dev_1 ~$ df .
Filesystem =C2=A0 =C2= =A0 1K-blocks =C2=A0 =C2=A0 =C2=A0Used Available Use% Mounted on
/dev/nv= me0n1p7 209921236 180793732 =C2=A019663852 =C2=A091% /
dev_1@dev_1 ~$ gu= ix shell --container coreutils -- echo Elmo
guix shell: error: mount: mo= unt "/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/
d= ev_1@dev_1 /mnt/recoverData$ df .
Filesystem =C2=A0 =C2=A0 1K-blocks =C2= =A0 =C2=A0 Used Available Use% Mounted on
/dev/nvme0n1p8 122503676 91394= 804 =C2=A025287412 =C2=A079% /mnt/recoverData
dev_1@dev_1 /mnt/recoverDa= ta$ guix shell --container coreutils -- echo Elmo
guix shell: error: mou= nt: mount "/mnt/recoverData" on "/tmp/guix-directory.ut68VE/= /mnt/recoverData": Invalid argument
```

=
## environment
```
$ uname -a
Linux dev_1 5.18.= 18 #1 SMP PREEMPT_DYNAMIC 1 x86_64 GNU/Linux
$ guix describe
G= eneration 9 Oct 22 2022 16:05:50 (current)
=C2=A0 guix 85aff4d
=C2=A0= =C2=A0 repository URL: https://git.savannah.gnu.org/git/guix.git
=C2=A0 =C2=A0 branch: m= aster
=C2=A0 =C2=A0 commit: 85aff4de30686359ffb50845eb0930c0a18dc8ba
= =C2=A0 nonguix 3f00d57
=C2=A0 =C2=A0 repository URL: https://gitlab.com/nonguix/nonguix
=C2= =A0 =C2=A0 branch: master
=C2=A0 =C2=A0 commit: 3f00d57adce5d0a185708fd5= c7c5ff6f852c2bf7
```

## similar = issue:
--000000000000c321da05edef9309--