Skip to content

Commit

Permalink
pkg/build/netbsd: use mknod rather than MAKEDEV
Browse files Browse the repository at this point in the history
  • Loading branch information
m00nbsd authored and dvyukov committed May 26, 2020
1 parent 8ca3b7d commit 9072c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/build/netbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9072c12

Please sign in to comment.