Skip to content
Commit 66ab5e1a authored by Pavel Emelyanov's avatar Pavel Emelyanov
Browse files

util: Add "/bin" to PATH when spawning helpers



We call tar, ip, iptables, etc. when restoring container.
The problem is that these stuff is called from inside new
mount namespace after pivot_root(). But the execvp uses
PATH variable inherited from the host system, which may
not reflect real binaries layout.

Add "/bin" to path as temporary workaround.

Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
parent 756229bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment