fsquillace / junest

The lightweight Arch Linux based distro that runs, without root privileges, on top of any other Linux distro.
GNU General Public License v3.0
2.08k stars 111 forks source link

Unable to use unshare installed to custom prefix #220

Closed JonnyHaystack closed 5 years ago

JonnyHaystack commented 5 years ago

I'm trying to use junest without any root privileges. The machine I'm on has an old version of unshare which doesn't support the --user option. I've built the latest version of util-linux from source and installed it to ~/.local/, but junest doesn't seem to respect the ordering in my PATH so I'm not sure how to get it to use the unshare binary which I built.

fsquillace commented 5 years ago

Hey @JonnyHaystack

I think it has to do with this line: https://github.com/fsquillace/junest/blob/master/lib/core/common.sh#L29

We should proably change the order and prioritize PATH over the system directories.

JonnyHaystack commented 5 years ago

Yes, agreed 🙂

fsquillace commented 5 years ago

Done.