diff options
Diffstat (limited to 'vm/gvisor/gvisor.go')
| -rw-r--r-- | vm/gvisor/gvisor.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vm/gvisor/gvisor.go b/vm/gvisor/gvisor.go index a6bc4828e..76e7a2213 100644 --- a/vm/gvisor/gvisor.go +++ b/vm/gvisor/gvisor.go @@ -185,7 +185,9 @@ func (inst *instance) runscCmd(add ...string) *exec.Cmd { "-root", inst.rootDir, "-network=none", } - args = append(args, strings.Split(inst.cfg.RunscArgs, " ")...) + if inst.cfg.RunscArgs != "" { + args = append(args, strings.Split(inst.cfg.RunscArgs, " ")...) + } args = append(args, add...) cmd := osutil.Command(inst.image, args...) cmd.Env = []string{ |
