aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/build/netbsd.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/build/netbsd.go')
-rw-r--r--pkg/build/netbsd.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/build/netbsd.go b/pkg/build/netbsd.go
index 8717b8105..11572da9b 100644
--- a/pkg/build/netbsd.go
+++ b/pkg/build/netbsd.go
@@ -100,6 +100,7 @@ func (ctx netbsd) copyKernelToDisk(targetArch, vmType, outputDir, kernel string)
"mem": 1024
}`
// Create config for booting the disk image.
+ target := targets.Get(targets.NetBSD, targetArch)
cfg := &mgrconfig.Config{
Workdir: outputDir,
Image: filepath.Join(outputDir, "image"),
@@ -111,7 +112,8 @@ func (ctx netbsd) copyKernelToDisk(targetArch, vmType, outputDir, kernel string)
TargetOS: targets.NetBSD,
TargetArch: targetArch,
TargetVMArch: targetArch,
- Timeouts: targets.Get(targets.NetBSD, targetArch).Timeouts(1),
+ Timeouts: target.Timeouts(1),
+ SysTarget: target,
},
}
// Create a VM pool.