Add lib support as an option
Some images like `criu` will have extra libs that it requires. This adds lib support via LD_LIBRARY_PATH and InstallOpts Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
2
vendor/github.com/containerd/go-runc/command_linux.go
generated
vendored
2
vendor/github.com/containerd/go-runc/command_linux.go
generated
vendored
@@ -18,6 +18,7 @@ package runc
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
"os/exec"
|
||||
"syscall"
|
||||
)
|
||||
@@ -31,6 +32,7 @@ func (r *Runc) command(context context.Context, args ...string) *exec.Cmd {
|
||||
cmd.SysProcAttr = &syscall.SysProcAttr{
|
||||
Setpgid: r.Setpgid,
|
||||
}
|
||||
cmd.Env = os.Environ()
|
||||
if r.PdeathSignal != 0 {
|
||||
cmd.SysProcAttr.Pdeathsig = r.PdeathSignal
|
||||
}
|
||||
|
||||
5
vendor/github.com/containerd/go-runc/command_other.go
generated
vendored
5
vendor/github.com/containerd/go-runc/command_other.go
generated
vendored
@@ -20,6 +20,7 @@ package runc
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
@@ -28,5 +29,7 @@ func (r *Runc) command(context context.Context, args ...string) *exec.Cmd {
|
||||
if command == "" {
|
||||
command = DefaultCommand
|
||||
}
|
||||
return exec.CommandContext(context, command, append(r.args(), args...)...)
|
||||
cmd := exec.CommandContext(context, command, append(r.args(), args...)...)
|
||||
cmd.Env = os.Environ()
|
||||
return cmd
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user