NVIDIA / enroot

A simple yet powerful tool to turn traditional container/OS images into unprivileged sandboxes.
Apache License 2.0
648 stars 94 forks source link

Enroot not following /etc/enroot/enroot.conf #190

Closed michaelmyc closed 7 months ago

michaelmyc commented 7 months ago

I'm using the latest 3.4.1 version of enroot, and I have /etc/enroot/enroot.confconfigured with the following:

image

When I run enroot create, the directory that was created is not in ENROOT_DATA_PATH configured in enroot.conf, but rather in ~/.local/share/enroot (the default location).

When I run enroot create with the environment variable ENROOT_DATA_PATH, enroot now respect the custom location.

3XX0 commented 7 months ago

You can debug what's happening in your setup with bash -x enroot

michaelmyc commented 7 months ago

Thanks! Seems like enroot is reading /usr/local/etc/enroot/enroot.conf. After updating that file everything works.