Skip to content

Commit

Permalink
Limit NCPUS to 6 max
Browse files Browse the repository at this point in the history
  • Loading branch information
fabnicol authored Aug 18, 2024
1 parent b1b8fa4 commit 3c3a2a9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/mkgentoo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,8 @@ Run 'sudo usermod -a -G vboxusers'"
# effectively correcting first pass assignment.
# This can be done only when cl is entirely parsed.

CREATE_ISO="false"
CREATE_ISO="false"

fi
if [ -n "${ISO_OUTPUT}" ]
then
Expand All @@ -495,6 +496,13 @@ Run 'sudo usermod -a -G vboxusers'"
[ -n "${VM}" ] && [ "${VM}" != "false" ] && [ "${FROM_VM}" != "true" ] \
&& ${LOG[*]} "[MSG] A Virtual machine will be created with name ${VM}"

# One has to limit NCPU values to 6, the max nbumber of threads of the preprocessed Gentoo install disk

if [ "${NCPUS}" -gt 6 ]
then
NCPUS=6
fi

return 0
}

Expand Down

0 comments on commit 3c3a2a9

Please sign in to comment.