pkg/build: create /dev/vhci on NetBSD

This commit is contained in:
m00nbsd 2020-05-24 12:50:49 +02:00 committed by Dmitry Vyukov
parent 96c92ad3ab
commit ce7ca01039

View File

@ -140,6 +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, "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 {