diff options
author | Sébastien Luttringer <seblu@seblu.net> | 2017-09-06 23:27:50 +0200 |
---|---|---|
committer | Sébastien Luttringer <seblu@seblu.net> | 2017-09-11 21:21:51 +0200 |
commit | fecf107c37062323cf77e08be7d2192e05cb6255 (patch) | |
tree | aa0f1fd6cf9ec965b9b1acf8fd225e0a6a2e34a8 | |
parent | bd826752c9dc8f01917ee831302b6220ad09603a (diff) | |
download | devtools-fecf107c37062323cf77e08be7d2192e05cb6255.tar.xz |
arch-nspawn: Force PATH to be the Arch default
systemd-nspawn use a default environ PATH value of:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Since filesystem 2017.08, this is no more overrided by /etc/profile
to the Arch default:
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
-rw-r--r-- | arch-nspawn.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in index 0cdaf6b..5205bf4 100644 --- a/arch-nspawn.in +++ b/arch-nspawn.in @@ -113,6 +113,7 @@ eval "$(grep '^CARCH=' "$working_dir/etc/makepkg.conf")" exec ${CARCH:+setarch "$CARCH"} systemd-nspawn -q \ -D "$working_dir" \ + -E "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin" \ --register=no --keep-unit \ "${mount_args[@]}" \ "$@" |