You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
nspawn populates PATH without sbin directories #8698
In case of bug report: Expected behaviour you didn't see
I’m currently trying to use mkosi on Arch Linux. I am hitting a problem where the script fails because the sbin directories are not part of the search path inside the container (when not running a login shell inside the container).
In case of bug report: Unexpected behaviour you saw
This boils down to systemd-nspawn setting PATH=/usr/local/bin:/bin by default which looks incorrect.
Here is a minimal example for reproducing the problem (on Arch Linux!):
Unfortunately, DEFAULT_PATH_SPLIT_USR depends on a specific HAVE_SPLIT_BIN definition and introduces a compatibility issue between distributions that have a split bin and ones that have not.
Activity
poettering commentedon Apr 10, 2018
Hmm, yeah, i figure we should set the most generic PATH for our container payload indeed...
poettering commentedon Apr 18, 2018
Fix waiting in #8756
nspawn: when running nspawn, set a $PATH including both bin + sbin by…
nspawn: when running nspawn, set a $PATH including both bin + sbin by…