From fecf107c37062323cf77e08be7d2192e05cb6255 Mon Sep 17 00:00:00 2001 From: Sébastien Luttringer Date: Wed, 6 Sep 2017 23:27:50 +0200 Subject: 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 --- arch-nspawn.in | 1 + 1 file changed, 1 insertion(+) (limited to 'arch-nspawn.in') 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[@]}" \ "$@" -- cgit v1.2.3-70-g09d2