cmd/qemu: Disable rng on macOS
With rng-random, booting hangs before switching
to the initrd.
fixes
@@ -574,6 +574,9 @@ func buildQemuCmdline(config QemuConfig) (QemuConfig, []string) {
}
}
+ // rng-random does not work on macOS
+ // Temporarily disable it until fixed upstream.
+ if runtime.GOOS != "darwin" {
rng := "rng-random,id=rng0"
if runtime.GOOS == "linux" {
rng = rng + ",filename=/dev/urandom"
@@ -583,6 +586,8 @@ func buildQemuCmdline(config QemuConfig) (QemuConfig, []string) {
} else {
qemuArgs = append(qemuArgs, "-object", rng, "-device", "virtio-rng-pci,rng=rng0")
}
+ }
+
var lastDisk int
for i, d := range config.Disks {
index := i
