aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorm00nbsd <42475391+m00nbsd@users.noreply.github.com>2020-05-26 18:40:30 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-05-26 18:50:51 +0200
commit9072c1268eaa464b9adbba5c8e11d308f15d1a92 (patch)
tree96679f5c70000bda682c7b888ac3bd0d1dc71e6c /pkg
parent8ca3b7d2bb7672b5608051fab4b825fdbbf2356a (diff)
pkg/build/netbsd: use mknod rather than MAKEDEV
Diffstat (limited to 'pkg')
-rw-r--r--pkg/build/netbsd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/build/netbsd.go b/pkg/build/netbsd.go
index 35af06762..2a4d15440 100644
--- a/pkg/build/netbsd.go
+++ b/pkg/build/netbsd.go
@@ -140,7 +140,7 @@ func (ctx netbsd) copyKernelToDisk(targetArch, vmType, outputDir, kernel string)
`echo 'mtu 1460' >> /etc/ifconfig.vioif0`,
}...)
}
- commands = append(commands, "cd /dev && ./MAKEDEV vhci")
+ commands = append(commands, "mknod /dev/vhci c 355 0")
commands = append(commands, "sync") // Run sync so that the copied image is stored properly.
outc, errc, err := inst.Run(time.Minute, nil, strings.Join(commands, ";"))
if err != nil {