aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/build
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-04-11 14:12:13 +0200
committerAleksandr Nogikh <nogikh@google.com>2024-04-11 12:22:42 +0000
commit95ed9ece851c5ce0f8db8fbe8c852457b4c36a85 (patch)
treed0d7ee57002131a3252f38ac467a87bc989b0413 /pkg/build
parent88e9b099539baad21d4cab4e306c9a54ec86e71d (diff)
pkg/build: run NetBSD in qemu emulation mode
We used to do that before, but somehow we now pass the -enable-kvm flag.
Diffstat (limited to 'pkg/build')
-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 11572da9b..e4390872a 100644
--- a/pkg/build/netbsd.go
+++ b/pkg/build/netbsd.go
@@ -94,10 +94,12 @@ func (ctx netbsd) clean(kernelDir, targetArch string) error {
// Copy the compiled kernel to the qemu disk image using ssh.
func (ctx netbsd) copyKernelToDisk(targetArch, vmType, outputDir, kernel string) error {
+ // Let's run in emulation mode - we don't need to run long and it's most compatible.
vmConfig := `
{
"snapshot": false,
- "mem": 1024
+ "mem": 1024,
+ "qemu_args": ""
}`
// Create config for booting the disk image.
target := targets.Get(targets.NetBSD, targetArch)