* bug#59425: guix shell --container fails to mount host filesystem
@ 2022-11-20 23:48 bbb ee
2022-11-21 19:50 ` bug#59425: only dir which realpath is in /tmp is mountalbe bbb ee
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: bbb ee @ 2022-11-20 23:48 UTC (permalink / raw)
To: 59425
[-- Attachment #1: Type: text/plain, Size: 2203 bytes --]
## 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
[-- Attachment #2: Type: text/html, Size: 2909 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#59425: only dir which realpath is in /tmp is mountalbe
2022-11-20 23:48 bug#59425: guix shell --container fails to mount host filesystem bbb ee
@ 2022-11-21 19:50 ` bbb ee
2022-11-21 20:31 ` bug#59425: guix can't mount mountpoint path, and the home path bbb ee
2022-11-23 14:02 ` bug#59425: guix shell --container fails to mount host filesystem Ludovic Courtès
2 siblings, 0 replies; 5+ messages in thread
From: bbb ee @ 2022-11-21 19:50 UTC (permalink / raw)
To: 59425
[-- Attachment #1: Type: text/plain, Size: 606 bytes --]
If I access a unmountable dir from /tmp using symlink, I still can't monnt
it:
```
dev_1@dev_1 /tmp$ ln -s ~ .
dev_1@dev_1 /tmp$ cd dev_1
dev_1@dev_1 /tmp/dev_1$ df .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/nvme0n1p7 209921236 180796556 19661028 91% /
dev_1@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@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
[-- Attachment #2: Type: text/html, Size: 749 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#59425: guix can't mount mountpoint path, and the home path.
2022-11-20 23:48 bug#59425: guix shell --container fails to mount host filesystem bbb ee
2022-11-21 19:50 ` bug#59425: only dir which realpath is in /tmp is mountalbe bbb ee
@ 2022-11-21 20:31 ` bbb ee
2022-11-23 14:02 ` bug#59425: guix shell --container fails to mount host filesystem Ludovic Courtès
2 siblings, 0 replies; 5+ messages in thread
From: bbb ee @ 2022-11-21 20:31 UTC (permalink / raw)
To: 59425
[-- Attachment #1: Type: text/plain, Size: 774 bytes --]
The new tests show guix can mount all path except mountpoint path, and the
home path.
```
dev_1@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@dev_1 /mnt/recoverData/borg_restore$ mountpoint . ; guix shell
--container coreutils -- echo Elmo
. is not a mountpoint
Elmo
dev_1@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@dev_1 ~/Downloads$ mountpoint . ; guix shell --container coreutils --
echo Elmo
. is not a mountpoint
Elmo
```
[-- Attachment #2: Type: text/html, Size: 931 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#59425: guix shell --container fails to mount host filesystem
2022-11-20 23:48 bug#59425: guix shell --container fails to mount host filesystem bbb ee
2022-11-21 19:50 ` bug#59425: only dir which realpath is in /tmp is mountalbe bbb ee
2022-11-21 20:31 ` bug#59425: guix can't mount mountpoint path, and the home path bbb ee
@ 2022-11-23 14:02 ` Ludovic Courtès
2022-11-23 14:20 ` bbb ee
2 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2022-11-23 14:02 UTC (permalink / raw)
To: bbb ee; +Cc: 59425
Hi,
bbb ee <blasforr@gmail.com> skribis:
> 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
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’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#59425: guix shell --container fails to mount host filesystem
2022-11-23 14:02 ` bug#59425: guix shell --container fails to mount host filesystem Ludovic Courtès
@ 2022-11-23 14:20 ` bbb ee
0 siblings, 0 replies; 5+ messages in thread
From: bbb ee @ 2022-11-23 14:20 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 59425
[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]
Nice! That runs. Thank you. I will upgrade my guix.
Le mer. 23 nov. 2022 à 15:03, Ludovic Courtès <ludo@gnu.org> a écrit :
> Hi,
>
> bbb ee <blasforr@gmail.com> skribis:
>
> > 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
>
>
> 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’.
>
[-- Attachment #2: Type: text/html, Size: 1750 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-11-23 14:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-20 23:48 bug#59425: guix shell --container fails to mount host filesystem bbb ee
2022-11-21 19:50 ` bug#59425: only dir which realpath is in /tmp is mountalbe bbb ee
2022-11-21 20:31 ` bug#59425: guix can't mount mountpoint path, and the home path bbb ee
2022-11-23 14:02 ` bug#59425: guix shell --container fails to mount host filesystem Ludovic Courtès
2022-11-23 14:20 ` bbb ee
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.