Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conty does not map all volumes #124

Closed
karlstevens opened this issue Apr 6, 2024 · 1 comment
Closed

Conty does not map all volumes #124

karlstevens opened this issue Apr 6, 2024 · 1 comment

Comments

@karlstevens
Copy link

I have several LVM and NFS volumes that Conty doesn't map;

user@workstation1:~$ df
Filesystem                       1K-blocks       Used  Available Use% Mounted on
tmpfs                                32768       1572      31196   5% /run
devtmpfs                              8192          0       8192   0% /dev
/dev/sys/slack15                  72344716   32299504   36610496  47% /
tmpfs                             32913756      69060   32844696   1% /dev/shm
cgroup_root                           8192          0       8192   0% /sys/fs/cgroup
/dev/nvme0n1p2                      510984     170920     340064  34% /boot/efi
/dev/mapper/sys-usr_local_games  103081248   67465012   30545736  69% /usr/local/games
nfs1:/usr/local/doze             51474912   34858624   16599904  68% /usr/local/doze
nfs1:/home                      515930560  481410912   34503264  94% /home
nfs1:/home/common              4793612736 2715496576 2078099776  57% /home/common
tmpfs                              6582748     939188    5643560  15% /run/user/1000
user@workstation1:~$ ~/bin/conty.sh df
Running Conty
Nvidia driver handler is enabled

Filesystem                       1K-blocks       Used  Available Use% Mounted on
unionfs3                         517901760  483382112   34503264  94% /
devtmpfs                              8192          0       8192   0% /dev
tmpfs                             32913756      62508   32851248   1% /dev/shm
cgroup_root                           8192          0       8192   0% /sys/fs/cgroup
/dev/sys/slack15                  72344716   32309548   36600452  47% /tmp
squashfuse3                        1971200    1971200          0 100% /tmp/conty_user_51a0420_f476684/mnt
nfs1:/home                      515930560  481410912   34503264  94% /home
nfs1:/home/common              4793612736 2715496576 2078099776  57% /home/common
tmpfs                                32768       1572      31196   5% /run
tmpfs                              6582748     939188    5643560  15% /run/user/1000
tmpfs                             32913756          0   32913756   0% /tmp/.X11-unix
nfs1:/home/user/.Xauthority     515930560  481410912   34503264  94% /home/user/.Xauthority

Note the absence of /usr/local/games and nfs1:/usr/local/doze when I run df from Conty.

Anything present on these missing volumes can't be used inside Conty:

user@workstation1:~$ cat /usr/local/games/test 
#!/bin/sh

pwd

echo "${0}"

user@workstation1:~$ /usr/local/games/test 
/home/user
/usr/local/games/test
user@workstation1:~$ ~/bin/conty.sh /usr/local/games/test 
Running Conty
Nvidia driver handler is enabled

bwrap: execvp /usr/local/games/test: No such file or directory

If this is intended behaviour, is there documentation as to which volumes get excluded and why?

@Kron4ek
Copy link
Owner

Kron4ek commented Apr 6, 2024

There is a predefined list of what it mounts by default (can be seen here). However, you can manually bind directories and files, like:

$ ~/bin/conty.sh --bind /usr/local /usr/local cat /usr/local/games/test

@Kron4ek Kron4ek closed this as completed Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants