Giter VIP home page Giter VIP logo

Comments (2)

HikariKnight avatar HikariKnight commented on June 1, 2024

This depends on how the symlinks are set up.
Relative symlinks will work as long as the container has access to it within the volume (ex. using a symlink that leads to ../../Folder, as long as the container can find Folder 2 directories up from the symlink it will work)
However if you have a symlink for lets say your Pictures folder and it goes to /mnt/disk1/Pictures, the container will not have a valid path to /mnt/disk1/Pictures as it would be under /run/host/mnt/disk1/Pictures inside the container.

I use a bind mount instead of a symlink for when i have things in locations that i want accessible from the home directory but also want accessible through a container, if you have many of these it will look messy in lsblk but it is the only way i have found where the container can access the contents that i would otherwise have symlinked.

from distrobox.

Bujiraso avatar Bujiraso commented on June 1, 2024

While not a terribly fun solution either, you can also do this, taking those exact paths as an example:

distrobox enter whatever
sudo mkdir -p /mnt/disk1/Pictures
sudo mount --bind /run/host/mnt/disk1/Pictures /mnt/disk1/Pictures

This works for me.

I suppose if you put that in the /etc/fstab of your distrobox container and perhaps run a hook or something, it would be automagic and a great solution.

I can't seem to get the hooks to fire on start-up, but that would finish the job.

from distrobox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.