GNU bug report logs - #59425
guix shell --container fails to mount host filesystem

Previous Next

Package: guix;

Reported by: bbb ee <blasforr <at> gmail.com>

Date: Sun, 20 Nov 2022 23:49:01 UTC

Severity: normal

Done: bbb ee <blasforr <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59425 in the body.
You can then email your comments to 59425 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#59425; Package guix. (Sun, 20 Nov 2022 23:49:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to bbb ee <blasforr <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 20 Nov 2022 23:49:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: bbb ee <blasforr <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: guix shell --container fails to mount host filesystem
Date: Mon, 21 Nov 2022 00:48:24 +0100
[Message part 1 (text/plain, inline)]
## 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 <at> dev_1 /tmp/test2$ df .
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/nvme0n1p7 209921236 180793652  19663932  91% /
dev_1 <at> dev_1 /tmp/test2$ guix shell --container coreutils -- echo Elmo
Elmo
dev_1 <at> dev_1 /tmp/test2$ cd /tmp/
dev_1 <at> dev_1 /tmp$ df .
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/nvme0n1p7 209921236 180793720  19663864  91% /
dev_1 <at> dev_1 /tmp$ guix shell --container coreutils -- echo Elmo
Elmo

# fail for all other dir
dev_1 <at> dev_1 /tmp$ cd /
dev_1 <at> dev_1 /$ df .
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/nvme0n1p7 209921236 180793808  19663776  91% /
dev_1 <at> dev_1 /$ guix shell --container coreutils -- echo Elmo
guix shell: error: mount: mount "/" on "/tmp/guix-directory.fKcwvT//":
Invalid argument

dev_1 <at> dev_1 /mnt/recoverData$ cd ~
dev_1 <at> dev_1 ~$ df .
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/nvme0n1p7 209921236 180793732  19663852  91% /
dev_1 <at> 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 <at> dev_1 /mnt$ cd recoverData/
dev_1 <at> dev_1 /mnt/recoverData$ df .
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/nvme0n1p8 122503676 91394804  25287412  79% /mnt/recoverData
dev_1 <at> 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
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#59425; Package guix. (Mon, 21 Nov 2022 19:52:02 GMT) Full text and rfc822 format available.

Message #8 received at 59425 <at> debbugs.gnu.org (full text, mbox):

From: bbb ee <blasforr <at> gmail.com>
To: 59425 <at> debbugs.gnu.org
Subject: only dir which realpath is in /tmp is mountalbe
Date: Mon, 21 Nov 2022 20:50:58 +0100
[Message part 1 (text/plain, inline)]
If I access a unmountable dir from /tmp using symlink, I still can't monnt
it:
```
dev_1 <at> dev_1 /tmp$ ln -s ~ .
dev_1 <at> dev_1 /tmp$ cd dev_1
dev_1 <at> dev_1 /tmp/dev_1$ df .
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/nvme0n1p7 209921236 180796556  19661028  91% /
dev_1 <at> dev_1 /tmp/dev_1$ guix shell --container coreutils -- echo Elmo
guix shell: error: mount: mount "/home/dev_1" on
"/tmp/guix-directory.X9jW4K//home/dev_1": Invalid argument
dev_1 <at> dev_1 /tmp/dev_1$ realpath /tmp/dev_1
/home/dev_1
```
So not all subdir of /tmp is mountable, only dir which realpath is in /tmp
is mountalbe
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#59425; Package guix. (Mon, 21 Nov 2022 20:33:02 GMT) Full text and rfc822 format available.

Message #11 received at 59425 <at> debbugs.gnu.org (full text, mbox):

From: bbb ee <blasforr <at> gmail.com>
To: 59425 <at> debbugs.gnu.org
Subject: guix can't mount mountpoint path, and the home path.
Date: Mon, 21 Nov 2022 21:31:58 +0100
[Message part 1 (text/plain, inline)]
The new tests show guix can mount all path except mountpoint path, and the
home path.
```
dev_1 <at> dev_1 /mnt/recoverData$ mountpoint . ; guix shell --container
coreutils -- echo Elmo
. is a mountpoint
guix shell: error: mount: mount "/mnt/recoverData" on
"/tmp/guix-directory.Fu8aV9//mnt/recoverData": Invalid argument

dev_1 <at> dev_1 /mnt/recoverData/borg_restore$ mountpoint . ; guix shell
--container coreutils -- echo Elmo
. is not a mountpoint
Elmo

dev_1 <at> dev_1 ~$ mountpoint . ; guix shell --container coreutils -- echo Elmo
. is not a mountpoint
guix shell: error: mount: mount "/home/dev_1" on
"/tmp/guix-directory.shXxIg//home/dev_1": Invalid argument

dev_1 <at> dev_1 ~/Downloads$ mountpoint . ; guix shell --container coreutils --
echo Elmo
. is not a mountpoint
Elmo
```
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#59425; Package guix. (Wed, 23 Nov 2022 14:04:02 GMT) Full text and rfc822 format available.

Message #14 received at 59425 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: bbb ee <blasforr <at> gmail.com>
Cc: 59425 <at> debbugs.gnu.org
Subject: Re: bug#59425: guix shell --container fails to mount host filesystem
Date: Wed, 23 Nov 2022 15:02:57 +0100
Hi,

bbb ee <blasforr <at> gmail.com> skribis:

> dev_1 <at> 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


I believe this was fixed in commit
c585b4bc68813a351d6a87d19b9adf4041506355, see
<https://issues.guix.gnu.org/59185>.

Could you check something like:

  guix time-machine --commit=c585b4bc68813a351d6a87d19b9adf4041506355 -- \
    shell -C coreutils

?

Thanks in advance,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#59425; Package guix. (Wed, 23 Nov 2022 14:22:02 GMT) Full text and rfc822 format available.

Message #17 received at 59425 <at> debbugs.gnu.org (full text, mbox):

From: bbb ee <blasforr <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 59425 <at> debbugs.gnu.org
Subject: Re: bug#59425: guix shell --container fails to mount host filesystem
Date: Wed, 23 Nov 2022 15:20:47 +0100
[Message part 1 (text/plain, inline)]
Nice! That runs. Thank you. I will upgrade my guix.

Le mer. 23 nov. 2022 à 15:03, Ludovic Courtès <ludo <at> gnu.org> a écrit :

> Hi,
>
> bbb ee <blasforr <at> gmail.com> skribis:
>
> > dev_1 <at> 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
>
>
> I believe this was fixed in commit
> c585b4bc68813a351d6a87d19b9adf4041506355, see
> <https://issues.guix.gnu.org/59185>.
>
> Could you check something like:
>
>   guix time-machine --commit=c585b4bc68813a351d6a87d19b9adf4041506355 -- \
>     shell -C coreutils
>
> ?
>
> Thanks in advance,
> Ludo’.
>
[Message part 2 (text/html, inline)]

bug closed, send any further explanations to 59425 <at> debbugs.gnu.org and bbb ee <blasforr <at> gmail.com> Request was from bbb ee <blasforr <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 23 Nov 2022 14:22:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 22 Dec 2022 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 125 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.