fix: only mount the /etc entries that are actually needed#15
fix: only mount the /etc entries that are actually needed#15netadr wants to merge 1 commit intoNaxdy:mainfrom
Conversation
…bblewrap environment
593827e to
b7ee734
Compare
|
I'm a bit hesitant to change logic that's directly taken from nixpkgs, my thought process is that there's probably a reason as to why they did what they did. If the problem you encounter is that some paths that you need are missing, you can always add them to your mounts FWIW (perhaps adding |
This is a fair concern. When I looked at it I figured they do the W/r/t mounting |
|
There's definitely something missing now as the CI is failing. I think a fair approach would be to list common directories within nix-bwrapper/modules/mounts.nix Lines 61 to 71 in 0b6a553 |
This patch simplifies the
/etcentry mounts significantly and solves problems that can arise when/etcentries in the host are not just symlinks to the Nix store (e.g. when usingsystemd-resolved,/etc/resolv.conflinks to/run/systemd/resolve/stub-resolv.conf-- this results in a broken symlink in the bwrapped fhsenv)