src/cmdlib: use more cores with supermin
This speeds up things running in supermin. It's not really noticable on
my laptop but it is when running on a many-cored arm server.
@@ -55,6 +55,10 @@ else
*) fatal "Architecture $(arch) not supported"
esac
fi
+
+# only use 1 core on kubernetes since we can't determine how much we can actually use
+grep -q 'kubepods' /proc/1/cgroup && procs=1 || procs="$(nproc)"
+QEMU_KVM+=" -smp $procs"
export QEMU_KVM
_privileged=
