Ensure CPU tuning is only applied on Debian 11+

This commit is contained in:
2023-09-01 15:42:29 -04:00
parent 6bf827ca13
commit 5a48ec4d79
4 changed files with 7 additions and 2 deletions

View File

@ -3,7 +3,11 @@
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="PVC Parallel Virtual Cluster - Debian"
{% if ansible_distribution_major_version|int >= 11 %}
GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=1 {{ grub_cmdline }}"
{% else %}
GRUB_CMDLINE_LINUX="{{ grub_cmdline }}"
{% endif %}
GRUB_TERMINAL_INPUT="console serial"
GRUB_TERMINAL_OUTPUT="gfxterm serial"
GRUB_SERIAL_COMMAND="{{ grub_serial }}"