summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kreutz <mail@skreutz.com>2023-04-16 02:16:27 +0200
committerStefan Kreutz <mail@skreutz.com>2023-04-16 02:16:27 +0200
commitb7ff8edd60656567087b2f050a7bc37588a78d05 (patch)
treebf085384b45a82b8e0c9fabf0155443a82a612ba
parentec1f23dd77fa69cccfc4fbdc24493d2b982774b9 (diff)
downloadautoinstall-openbsd-on-qemu-b7ff8edd60656567087b2f050a7bc37588a78d05.tar
Change default number of processors
-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.