summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xautoinstall-openbsd-on-qemu2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoinstall-openbsd-on-qemu b/autoinstall-openbsd-on-qemu
index 3f3509e..f18f84e 100755
--- a/autoinstall-openbsd-on-qemu
+++ b/autoinstall-openbsd-on-qemu
@@ -35,7 +35,7 @@ DISK_FILE="${DISK_FILE-disk.qcow2}"
DISK_SIZE="${DISK_SIZE-64G}"
# Number of virtual CPUs.
-CPU_COUNT="${CPU_COUNT-4}"
+CPU_COUNT="${CPU_COUNT-$(grep -c ^processor /proc/cpuinfo)}"
# Size of virtual memory.
MEMORY_SIZE="${MEMORY_SIZE-4G}"
Generated by cgit. See skreutz.com for my tech blog and contact information.