mirror of
https://github.com/strongswan/strongswan.git
synced 2025-12-15 00:00:26 -05:00
testing: Override user environment PATH in chroot
chroot will capture the user environment's PATH variable, which may be wrong (e.g. not include /bin:/sbin, as it is on Arch). We should set a known-working PATH variable in the chroot.
This commit is contained in:
parent
381f6d982c
commit
82b91e113a
@ -50,7 +50,7 @@ execute()
|
||||
# $1 - command to execute
|
||||
execute_chroot()
|
||||
{
|
||||
execute "chroot $LOOPDIR $@"
|
||||
execute "chroot $LOOPDIR env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $@"
|
||||
}
|
||||
|
||||
# write green status message to console
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user